MATLAB Answers

Centroid of a shape from .shp file

1 view (last 30 days)
Durga Lal Shrestha
Durga Lal Shrestha on 18 Mar 2015
How can I get centroid of a shape from Shapefile? I have used polygeom from FLEX to compute centroid from a single polygon. But my Shapefile contains many polygons, so I use polybool from mapping toolbox to join the polygons into a sinlge polygon, then use polygeom. However polybool is not always reliable to join the polygons of the shape file.
Is there any other way to get centroil?
Thank you very much. Durga


Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!