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:
object
FME Part Iterator Class
init()
FMEPartIterator
should not be constructed directly. Instead, use the iterator semantics ofFMEFeature
to get anFMEPartIterator
which 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_D
orFME_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.
-