How to extract polygons coordinates from shape file?

17 visualizaciones (últimos 30 días)
Reema Alhassan
Reema Alhassan el 10 de Jun. de 2018
Comentada: Reema Alhassan el 11 de Jun. de 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,

Respuesta aceptada

KSSV
KSSV el 11 de Jun. de 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

Más respuestas (0)

Categorías

Más información sobre Elementary Polygons en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by