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:

FMEGeometry

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 the FMEGeometry inheritance graph. For example, a FMEPolygon is returned if the geometry truly is a polygon.

Raises:

FMEException – An exception is raised if an error occurred.