How to plot polygon from shapefile in Matlab
32 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Yoni Verhaegen -WE-1718-
am 23 Jan. 2021
Beantwortet: MathWorks Support Team
am 11 Jul. 2023
Hi all,
I have the following polygon, which should represent the borders of Belgium, The Netherlands and Luxemburg.
I am however not able to plot these using Matlab on top of an imagesc. Can anyone help me? The file is in attachment.
T=shaperead('BENELUX_POLYGON.shp','usegeo', true);
Thanks already
0 Kommentare
Antworten (2)
MathWorks Support Team
am 11 Jul. 2023
As of R2021b, you can read the shapefile with readgeotable and plot the data with geoshow:
T = readgeotable('BENELUX_POLYGON.shp');
geoshow(T)
In addition, you can plot the image data as a raster object using geoshow, provided you have a raster reference object.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Map Display finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!