fmeobjects.FMEFeature.generatePointInPolygon

FMEFeature.generatePointInPolygon(pretty)

Generate a point somewhere inside the polygon. If the feature is 3D, the Z value is calculated to be the average of all points on the feature.

Parameters:

pretty (bool) – (Optional) Generate a point that has a more central position, however more computational time may be required (default is False).

Return type:

tuple[float]

Returns:

A point somewhere inside the polygon.

Raises:

FMEException – An exception is raised if an error occurred.