fmeobjects.FMEFeature.numParts

FMEFeature. numParts ( flatten,splitDonuts )

Get the number of parts that make up the geometry of the feature.

Parameters:
  • flatten(bool) – If flatten isTrue, then return the number of primitive parts drilling down into sub aggregates. If flatten isFalsethen it returns the number of high level parts with some parts potentially being aggregates.
  • splitDonuts(bool) – If splitDonuts isTrue, each ring of a donut will count as a separate part.
Return type:

int

Returns:

The number of parts that make up the feature.