Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Return a point that is guaranteed to be within each geometry.
GeoSeries
representative_point()
>>> from sedona.spark.geopandas import GeoSeries >>> from shapely.geometry import Polygon, LineString, Point >>> s = GeoSeries( ... [ ... Polygon([(0, 0), (1, 0), (1, 1), (0, 1)]), ... LineString([(0, 0), (1, 1), (1, 0)]), ... Point(0, 0), ... ] ... ) >>> s.representative_point() 0 POINT (0.5 0.5) 1 POINT (1 0.5) 2 POINT (0 0) dtype: geometry
Was this page helpful?