Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python convert polygone to centroid

# copy poly to new GeoDataFrame
points = poly.copy()
# change the geometry
points.geometry = points['geometry'].centroid
Source by gis.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #python #convert #polygone #centroid
ADD COMMENT
Topic
Name
2+5 =