fmeobjects.FMEFeature.getGeometry
- FMEFeature.getGeometry(geometryName)
Get all the geometries on a feature or a named geometry if requested and a match is found. When no geometry name is given, all existing geometries are returned as an aggregate.
- Parameters:
geometryName (str) – (Optional) The name of the geometry to get.
- Return type:
FMEGeometry or None
- Returns:
None is returned if a geometry name is specified and a match is not found, else a geometry object is returned. Note: This method returns a terminal geometry type of the
FMEGeometry;
i.e. one of the leaf classes in the
FMEGeometryinheritance graph. For example, aFMEPointis returned if the geometry truly is a point.