point_in_geom

gis.geom.point_in_geom(ft)

Create a point within a polygon.

This is in essence a very lazy centroid. Keep in mind though, it can differ quite a bit from the actual centroid.

Parameters

Name Type Description Default
ft ogr.Feature The feature (polygon or linestring) in which to create the point. required

Returns

Type Description
tuple The x and y coordinate of the created point.
Back to top