I have some super simple code that I'm using to clip raster data to US Highways. However, the clip isn't producing pixels for everywhere that the shapefile intersects the raster and I cannot figure out why this is the case. Here is the code:
gdal.Warp(input_raster_filepath, output_raster_filepath, cutlineDSName=road_buffered_filepath, cropToCutline=True)
I was expecting for there to exist a pixel from the raster at every point along the highway but this is not the case. Can anyone explain why? Or could anyonen provide a better method for doing this?