How to extract polygons coordinates from shape file?

조회 수: 14 (최근 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 CenterFile Exchange에서 Elementary Polygons에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by