fmeobjects.FMEGeometryTools.offset
- FMEGeometryTools.offset(geometry, point)
Offsets the geometry by the coords specified by ‘point’. The returned geometry may or may not be the original object that was passed in. If a different object is returned, the original object will be destroyed.
- Parameters:
geometry (FMEGeometry) – The geometry to offset by point.
point (FMEPoint) – The point to offset the geometry by.
- Return type:
- Returns:
The geometry offset by point. Note: This method returns a terminal geometry type of the
FMEGeometry
; i.e. one of the leaf classes in theFMEGeometry
inheritance graph. For example, aFMEPolygon
is returned if the geometry truly is a polygon.- Raises:
FMEException – An exception is raised if an error occurred.