Rendering a raster in a Cartopy GeoAxes object


john.o.woods@...
 

I tried to send this question once but I'm not sure it went through.

I'm trying to render a rasterio raster onto a Cartopy GeoAxes. This used to be possible, as evidenced here: https://github.com/mapbox/rasterio/issues/1723

I've also tried the method that Alan Snow kindly provided, in his response to this issue: https://github.com/mapbox/rasterio/issues/1724

In both cases, I can render Cartopy features. I cannot get the raster to show up on the same set of axes as the features, however. If I plot only the raster in such a way that it occupies the full plot, I can get the raster, but the Cartopy features won't show up.

Is it still possible to plot Cartopy features together with a raster? Can anyone point me toward a non-deprecated example?

Thank you!
John