필터 지우기
필터 지우기

Taking geo data and turn it into cartesian plot

조회 수: 7 (최근 30일)
Johan Svendsen
Johan Svendsen 2020년 11월 19일
댓글: Cris LaPierre 2020년 11월 19일
I have a route which is in cartesian values (X,Y starting at 0,0).
Using the geobasemap on a geoaxes I am able to find the desired boundaries for plot background which I would like to have the satelite image.
But I am not sure how to take that data from the geoaxes and turn it into a cartesian system? am I able to extract the CData, Color map, XX, YY and convert? What is the best way to extract the data from a geobasemap, such that the axis can be manipulated?
Thank you in advance.

채택된 답변

Cris LaPierre
Cris LaPierre 2020년 11월 19일
편집: Cris LaPierre 2020년 11월 19일
Why not take your cartesian X,Y values, and convert them to lat/lon? Use the local2latlon function. You can then plot everything in your geoaxes. All you would need to determine is the lat/lon of your origin (starting point).
  댓글 수: 3
Cris LaPierre
Cris LaPierre 2020년 11월 19일
Unfortunately, I don't think the workflow you describe is possible. I'm pretty sure geo data must be displayed on geoaxes. The closest thing I could find would be to create an image of your map, and add it as a background of your cartesian plot figure.
See these two posts:
  1. https://www.mathworks.com/matlabcentral/answers/358131-png-as-figure-background
  2. https://www.mathworks.com/matlabcentral/answers/96023-how-do-i-add-a-background-image-to-my-gui-or-figure-window.
Cris LaPierre
Cris LaPierre 2020년 11월 19일
The results of wmsread must also be plotted in a geoaxes, so I'm not sure that buys you anything.
I think as long as you set the axes limits in your plot, you can ensure alignment with the map. I do think it might take a bit of work to get it to align, but once it is, it shouldn't need further adjusting.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by