Taking geo data and turn it into cartesian plot

9 visualizzazioni (ultimi 30 giorni)
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.

Risposta accettata

Cris LaPierre
Cris LaPierre il 19 Nov 2020
Modificato: Cris LaPierre il 19 Nov 2020
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 Commenti
Cris LaPierre
Cris LaPierre il 19 Nov 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 il 19 Nov 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.

Accedi per commentare.

Più risposte (0)

Prodotti


Release

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by