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 is True, then return the number of primitive parts drilling down into sub aggregates. If flatten is False then it returns the number of high level parts with some parts potentially being aggregates.

  • splitDonuts (bool) – If splitDonuts is True, each ring of a donut will count as a separate part.

Return type:

int

Returns:

The number of parts that make up the feature.