How to plot polygon from shapefile in Matlab

96 views (last 30 days)
Yoni Verhaegen -WE-1718-
Yoni Verhaegen -WE-1718- on 23 Jan 2021
Commented: Hermes Andrade on 30 Jun 2022
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

Answers (1)

Deepak Meena
Deepak Meena on 29 Jan 2021
Hi Yoni ,
shaperead only Read vector features and attributes from shapefile, it won't plot those data.
To plot those shapefile you need to use mapshow. I tried this on my end :
T=shaperead('BENELUX_POLYGON.shp','usegeo', true);
and I got the following result :
  1 Comment
Hermes Andrade
Hermes Andrade on 30 Jun 2022
How can I place a polygon from a .shp to a georeferenced .tif image?

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!