Module fmeobjects :: Class FMEPartIterator
[hide private]
[frames] | no frames]

Class FMEPartIterator

object --+
         |
        FMEPartIterator

init()

FMEPartIterator should not be constructed directly. Instead, use the iterator semantics of FMEFeature to get an FMEPartIterator which can be used to iterate over its parts.

Instance Methods [hide private]
 
__init__()
x.__init__(...) initializes x; see help(type(x)) for signature
 
__iter__(x)
iter(x)
a new object with type S, a subtype of T
__new__(T, S, ...)
int
dimension()
Get the part's dimension.
list of tuples of floats
getAllCoordinates()
Get all the part's coordinates in a list.
tuple of floats
getCoordinate(index)
Get the coordinate at the specified index.
the next value, or raise StopIteration
next(x)
int
numVertices()
Get the number of vertices.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__()
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__

__new__(T, S, ...)

 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__

dimension()

 

Get the part's dimension. Returns either FME_TWO_D or FME_THREE_D

Returns: 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.

Returns: list of tuples of floats
A list of the part's coordinates.

getCoordinate(index)

 

Get the coordinate at the specified index. The dimension of the tuple equals the dimension of the part.

Parameters:
  • index (int) - The index at which the coordinate is retrieved.
Returns: tuple of floats
The coordinate at the given index.