Plot shape file on a 3D map
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (0)
Ver también
Categorías
Más información sobre Geodesy and Mapping en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!