0

I want to plot my geopandas objects on top of a raster. Other people have asked this question here before and all answers seems to be:

convert numpy array(raster) into Rasterio object.

Is there a solution to plot this without Rasterio? Seems crazy that I need to convert my gdal object into Rasterio just to plot it?

Qiicken
  • 43
  • 3
  • 1
    there are lots of examples on stackoverflow and in docs showing how to plot a numpy array (lots of ways) and also how to plot a geodataframe. just use the same matplotlib axis object. for anything more detailed we'll need to know more about what exactly you're trying to do, and what you've tried. – Michael Delgado Sep 21 '22 at 07:06
  • You don't need to use RasterIO for something like that. – Rutger Kassies Sep 21 '22 at 09:16
  • e.g. https://stackoverflow.com/questions/61980063/python-how-to-place-a-shapefile-on-top-of-raster-file-in-one-plot-and-then-sa/70297437#70297437 – AlexWach Sep 22 '22 at 12:04

0 Answers0