fmeobjects.FMEAggregate.removeLastPart

FMEAggregate.removeLastPart()

This removes and returns the last geometry of the aggregate. If there are no geometries in the aggregate, it will return None. Calling this method will implicitly apply and clear any matrix associated with this aggregate.

Return type:

FMEGeometry or None

Returns:

The last geometry of the aggregate. Note: This method returns a terminal geometry type of the FMEGeometry; i.e. one of the leaf classes in the FMEGeometry inheritance graph. For example, a FMEPoint is returned if the geometry truly is a point.

Raises:

FMEException – An exception is raised if an error occurred.