I am not able to rasterize shp file with Rasterize tool. I keep getting this error :

Could not reproject layer extent: Could not transform bounding box to target CRS.

I have selected following parameters:

  • input layer: shp file
  • output raster size units: pixels
  • width and height: same as raster
  • output extent: raster file
  • output data type: same as raster(byte), tried putting int,float32 but no change
  • rasterized: saved as a tif file
  • 2
    Obviously there's something "wrong" with your CRS. Which one are you using?
    – Erik
    Nov 24, 2021 at 8:40
  • 1
    @Erik for shp:- Default CRS: EPSG:4326-WGS 84 for tif:- EPSG:32606-WGS 84 /UTM Zone 6N
    – itsChibi
    Nov 24, 2021 at 8:54
  • Which extent does your shapefile have?
    – Erik
    Nov 24, 2021 at 10:10
  • You probably have values beyond the expected -180, 180, -90, 90 boundaries of the WGS84. Maybe your data is not really in 4326? Nov 24, 2021 at 10:52
  • @Erik shp Extent:- -147.4958466764738318,65.1294385784811993 : -147.4768937754956823,65.1354042941769791 tif Extent:- 476690.6698999999789521,7222409.4579999996349216 : 477996.2334000000264496,7223816.8580000000074506
    – itsChibi
    Nov 24, 2021 at 10:57

1 Answer 1


You can not use a raster in a different CRS as a reference for the output extent, because for WGS84 the raster's extents make no sense.

Use the projection tool to convert your vector data into EPSG:32606, then use the rasterize tool.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.