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
- Chanakya TV serial, online on youtube, Vol 1-8, All episodes 1-47
- Download the free Voipian software for free and cheap calls
- int2str and str2num in fortran, How convert string to integer number of vice versa.
- How to add or endorse Spouse/ Husband /Wife name of the passport
No comments:
Post a Comment