0

How I can to draw using GDAL in python or c a polygon shapefile shape.shp with a GeoTIFF as background background.tiff file?

Both files are in the same projection.

The result could be a PNG, JPEG or whatever. To clarify I'm going to put screen shoots of the done with QGIS. First one is the shapefile, second the GeoTIFF, and finally the union.

Shapefile File

GeoTIFF file

GeoTIFF as background and shape as shadow

nmtoken
  • 13,355
  • 5
  • 38
  • 87
Mquinteiro
  • 265
  • 3
  • 13

1 Answers1

0

One method would be to rasterize the shapefile using gdal_rasterize, and then overlay it onto the other raster file.

A similar question exists and is available here: how to overlay shapefile and raster?

Alec Bennett
  • 161
  • 9