How to extract polygons coordinates from shape file?

15 ビュー (過去 30 日間)
Reema Alhassan
Reema Alhassan 2018 年 6 月 10 日
コメント済み: Reema Alhassan 2018 年 6 月 11 日
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,

採用された回答

KSSV
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 ExchangeElementary Polygons についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by