fmeobjects.FMEReprojector.reprojectGeometry
- FMEReprojector.reprojectGeometry(geometry)
This reprojects the given geometry using the coordinate systems currently set. The type of geometry returned may not be the same as the geometry given. For instance, if a
FMEArc
was given, aFMELine
may be returned. This will throw an exception if the coordinate systems are not set or invalid, or if the reprojection cannot be completed. IfNone
is passed in,None
is returned.- Parameters:
geometry (FMEGeometry or None) – The geometry to reproject.
- Return type:
Same type as input geometry.
- Returns:
The input geometry after reprojection.
- Raises:
FMEException – An exception is raised if an error occurred.