How to extract polygons coordinates from shape file?

14 views (last 30 days)
Reema Alhassan
Reema Alhassan on 10 Jun 2018
Commented: Reema Alhassan on 11 Jun 2018
hello, I have a shape file which contains 10 polygons I need to extract the coordinates for each polygon how can I do that ?

Accepted Answer

KSSV on 11 Jun 2018
S = shaperead(shapefile) ; % Read shape file
N = length(S) ; % total number of polygons
% GEt coordinates of each polygon
for i = 1:N
[S(i).X ;S(i).Y] ;

More Answers (0)

Community Treasure Hunt

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

Start Hunting!