Tuesday, November 13, 2018
Quickly plot a shapefile in Matlab
Are you having a trouble in plotting shapefile in Matlab or the geoshow and mapshow is taking too much time to plot your shapefile then you can use the approach shown below. This is very quick.
shpfile=('landareas.shp');
S1 = shaperead(shpfile);
XX=[];YY=[];
for j=1:length(S1)
%Look for your X and Y variables in your shapefile
XX=[XX S1(j).X;];
YY=[YY S1(j).Y;];
end
plot(XX,YY)
Please leave a comment if you have any problem or if this solution has worked for you.
Related queries:
Plot fast shapefile.
Shapefile hangs, very slow
Quickly view a shapefile in Matlab
Posted by
vicky
at
3:43 AM
Subscribe to:
Post Comments (Atom)
Popular
- New Rules to add spouse name in the Indian passport
- How to invite wife or spouse to Italy
- Chanakya TV serial, online on youtube, Vol 1-8, All episodes 1-47
- How to become Official VoIP reseller of betamax and dellmont services
- Convert Longitude 0-360 to -180 to 180 or 180W-180E in fortran and matlab, transform lat lon coordinates
No comments:
Post a Comment