0

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
TomazicM
27.3k25 gold badges33 silver badges43 bronze badges
asked Nov 24, 2021 at 8:33
6
  • 2
    Obviously there's something "wrong" with your CRS. Which one are you using? Commented 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 Commented Nov 24, 2021 at 8:54
  • Which extent does your shapefile have? Commented 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? Commented 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 Commented Nov 24, 2021 at 10:57

1 Answer 1

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.

answered Nov 24, 2021 at 11:17
0

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.