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.

 Respuesta aceptada

Cris LaPierre
Cris LaPierre el 19 de Nov. de 2020
Editada: Cris LaPierre el 19 de Nov. de 2020

0 votos

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 comentarios

Johan Svendsen
Johan Svendsen el 19 de Nov. de 2020
Editada: Johan Svendsen el 19 de Nov. de 2020
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
Cris LaPierre
Cris LaPierre el 19 de Nov. de 2020
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 el 19 de Nov. de 2020
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.

Iniciar sesión para comentar.

Más respuestas (0)

Productos

Versión

R2020b

Preguntada:

el 19 de Nov. de 2020

Comentada:

el 19 de Nov. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by