fmeobjects.FMEPartIterator
Get the part's dimension. |
|
Get all the part's coordinates in a list. |
|
Get the coordinate at the specified index. |
|
Get the number of vertices. |
- class FMEPartIterator
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__(*args, **kwargs)
- dimension()
Get the part’s dimension. Returns either
FME_TWO_D
orFME_THREE_D
.- Return type:
- 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.
- getCoordinate(index)
Get the coordinate at the specified index. The dimension of the tuple equals the dimension of the part.