How to extract polygons coordinates from shape file?
10 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
KSSV
2018-6-11
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
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Elementary Polygons 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!