Plot shape file on a 3D map
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi!
I made a map of bathymetrie in 3D, but I want to include in this 3D map shape files, line and others points, that are 2D.
%...
P = m_shaperead('muc');
for j=1:length(P.ncst),
m_line(P.ncst{j}(:,1),P.ncst{j}(:,2), 'LineWidth',3, 'marker','pentagram','markersize',5,'color','r');
end;
n = length(P) ;
x = zeros(n,1) ; y =zeros(n,1) ;
% or using m_line:
m_line(LonNB2, LatNB2,'LineWidth',2,'Color','m');
when I use this code, that works in 2D maps but in the 3D script then give this error:
Output argument "X" (and maybe others) not assigned during call to "m_ll2xy".
Error in m_line (line 49)
[X,Y]=m_ll2xy(long,lat,'clipping',clp);
Is a way to save 2D shapes in 3D or other solution?
Thanks!
0 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Geodesy and Mapping 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!