Taking geo data and turn it into cartesian plot

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일

0 개 추천

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

Johan Svendsen
Johan Svendsen 2020년 11월 19일
편집: Johan Svendsen 2020년 11월 19일
For the work flow needed, it would be a less efficient way to do it (both before and after). It is something I will do multiple times. so if I can do as described above I think it would be a better solution
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.
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

질문:

2020년 11월 19일

댓글:

2020년 11월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by