GlacioHack / geoutils

Analysis of georeferenced rasters and vectors
https://geoutils.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
81 stars 19 forks source link

Add option to add background basemap to plots #566

Open adehecq opened 2 months ago

adehecq commented 2 months ago

Is your feature request related to a problem? Please describe. It would be great when making a plot to easily have a basemap in the background. I think it would be easy to do with contextily.

Describe the solution you'd like Something like:

rst = gu.Raster("my_raster.tif")
rst.plot(basemap="OpenStreetMap")
plt.show()

Describe alternatives you've considered No alternative considered.

Additional context None

rhugonnet commented 2 months ago

Would be nice indeed. Here I refer to the plotting expertise of @friedrichknuth. My guess is that, once we have the Xarray accessor, we will have access to plotting tools in the Xarray landscape that likely already support this?