필터 지우기
필터 지우기

Plot shape file on a 3D map

조회 수: 4 (최근 30일)
Pepe Grillo
Pepe Grillo 2022년 5월 18일
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개)

카테고리

Help CenterFile Exchange에서 Geodesy and Mapping에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by