fmeobjects.FMEGeometryTools.refineGeometry

FMEGeometryTools.refineGeometry(geometry, refineType)

This routine offers a number of options to refine geometries. The options are defined as a bitmask whose components are defined in Refine Geometry Type. Options applying to curves will affect area boundaries.

Parameters:
  • geometry (FMEGeometry) – The geometry to refine.

  • refineType (int) – One of the Refine Geometry Types.

Return type:

FMEGeometry

Returns:

The geometry to refine. 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.