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.

 Réponse acceptée

Cris LaPierre
Cris LaPierre le 19 Nov 2020
Modifié(e) : Cris LaPierre le 19 Nov 2020

0 votes

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 commentaires

Johan Svendsen
Johan Svendsen le 19 Nov 2020
Modifié(e) : Johan Svendsen le 19 Nov 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
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.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB dans Centre d'aide et File Exchange

Produits

Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by