fmeobjects.FMEPartIterator¶
FMEPartIterator.dimension() |
Get the part’s dimension. |
FMEPartIterator.getAllCoordinates() |
Get all the part’s coordinates in a list. |
FMEPartIterator.getCoordinate(index) |
Get the coordinate at the specified index. |
FMEPartIterator.numVertices() |
Get the number of vertices. |
-
class
FMEPartIterator¶ Bases:
objectFME Part Iterator Class
init()
FMEPartIteratorshould not be constructed directly. Instead, use the iterator semantics ofFMEFeatureto get anFMEPartIteratorwhich can be used to iterate over its parts.-
__init__¶ Initialize self. See help(type(self)) for accurate signature.
-
dimension()¶ Get the part’s dimension. Returns either
FME_TWO_DorFME_THREE_D.Return type: int
-
getAllCoordinates()¶ Get all the part’s coordinates in a list. Each coordinate is a tuple. All returned tuples have the same dimension as the part.
Return type: list[tuple[float]] Returns: A list of the part’s coordinates.
-