2

I am working with a shapefile of 10km grid regions of the UK obtained from digimap.

enter image description here

I need to convert this to a raster in order to do some analysis in R regarding agricultural intensity of 10km UK sites.

Everytime I load the vector file in QGIS and do raster->conversion -> rasterize I get an error which reads:

The following layers were not correctly generated.

  • /private/var/folders/q3/vldvgpt970g5mn1y_46n4jjr0000gn/T/processing_cf35adc2256045b9b004c26c6ce46245/94b6409973714574a8226988cee87064/OUTPUT.tif
You can check the 'Log Messages Panel' in QGIS main window to find more information about the execution of the algorithm.

I know there are a lot of other questions about this but none of the answers have helped me to solve what I am trying to do.

Perhaps I am not inputting the correct parameters in the dialog box, could anyone help me with this? I've tried using layer extent and canvas extent in the output extent box and both have not worked.

dialog box

9
  • 2
    you can't have a resolution of 0 - try 100 or 1000 depending on how many pixels per cell you want
    – Ian Turton
    Commented Aug 5, 2019 at 8:23
  • @IanTurton thanks! is it best to select canvas or layer extent? sorry I have never used QGIS before..! Commented Aug 5, 2019 at 8:53
  • either will be fine, canvas is what you are looking at, layer is all of the data
    – Ian Turton
    Commented Aug 5, 2019 at 9:02
  • @IanTurton the command worked however I have no image, just a blank white space! any ideas? Commented Aug 5, 2019 at 9:04
  • @user2856 the only values in my attribute table are the names of the grid squares e.g. NT16, NT19 etc ? Commented Aug 5, 2019 at 9:56

1 Answer 1

2
  • Use a value other than 0.0 for the burn-in value, such as 1.0.
  • Use the extent of the land cover raster or the 10km grid
  • Change output raster size units to map instead of pixel,
  • Specify 10000 (your map units are metres, i.e 10km) for the resolution.

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.