Why is it so difficult to add basemaps in the Mapping Toolbox?

9 visualizaciones (últimos 30 días)
Darcy Cordell
Darcy Cordell el 20 de Jun. de 2024
I have been a bit frustrated by the MATLAB mapping functionality because it seems like the "mapping" functions are often not compatible. There is the very versatile collection of map plotting functions in the Mapping Toolbox, and then there is another collection of mapping functions which use a "geographic axis" and appear to be wholly separate and incompatible with the Mapping Toolbox
All my scripts are currently written using the axesm-based functions in the Mapping Toolbox (e.g. geoshow, plotm, worldmap, pcolorm, etc.)
I want to add a basemap to these Mapping Toolbox maps. But all the basemap functions that I can find such as geobasemap are not compatible with the axesm-based functions.
The readBaseMapImage function supplies some examples which use mapshow, but the method for converting them to axesm based maps seems awfully convoluted. The help page on the topic is really quite convoluted. You need to first read the basemap image, then "unproject" the image, then get the worldmap projection using getm, and then plot the basemap using geoshow.
I don't understand why MATLAB didn't just wrap this all with the following command:
worldmap
geobasemap('streets')
More broadly, why does MATLAB have two sets of incompatible functions which seems to do very similar things (e.g. geoplot versus plotm, geoscatter versus scatterm, geobasemap versus "all the other steps listed above to get a basemap to plot")?
Thanks

Respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by