How to extract polygons coordinates from shape file?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Reema Alhassan
le 10 Juin 2018
Commenté : Reema Alhassan
le 11 Juin 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 ?
thanks,
0 commentaires
Réponse acceptée
KSSV
le 11 Juin 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] ;
end
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Computational Geometry dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!