I'm triyng to use the python bindings of gdal to rasterize a raster using a shapefile. The code I'm using is rather simple:
gdal.RasterizeLayer(target_raster, [1], input_layer ,burn_values=[-9999],options=['INVERSE=TRUE'])
The code runs and doesn't produce any errors, but it is completely ignoring the "inverse" option meaning that it is removing the part of the raster I want to keep.