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
FMEArcwas given, aFMELinemay be returned. This will throw an exception if the coordinate systems are not set or invalid, or if the reprojection cannot be completed. IfNoneis passed in,Noneis 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.