fmeobjects.FMEGeometryTools.getPartCount¶
-
FMEGeometryTools.
getPartCount
(geometry, recursive, splitDonuts, splitPaths)¶ Return the number of parts in the geometry. For multis and aggregates, this is the number of parts, and for paths, the number of segments; otherwise it is one. If recursive is
True
, then aggregates’ parts will be counted recursively.Parameters: - geometry (FMEGeometry) – aggregate or multis whose parts to count.
- recursive (bool) – Boolean indicating whether or not to count recursively.
- splitDonuts (bool) – Boolean indicating whether or not to split donuts.
- splitPaths (bool) – Boolean indictaing whether or to split paths.
Return type: Returns: The number of parts in the geometry.