I am attempting to rasterize a road layer and neither the GRASS nor GDAL routines for this are working in QGIS 3.8.2.

All of my data is in UTM.

Here is my input (GDAL):

{ 'BURN' : 0, 'DATA_TYPE' : 5, 'EXTENT' : '**string of coords** [EPSG:32638]', 'FIELD' : None, 'HEIGHT' : 0, 'INIT' : None, 'INPUT' : 'C:/temp/vector_layers.gpkg|layername=transit_all', 'INVERT' : False, 'NODATA' : 0, 'OPTIONS' : '', 'OUTPUT' : 'C:/temp/vtr.tif', 'UNITS' : 0, 'WIDTH' : 0 }

Here is the error:

ERROR 1: Wrong value for -outsize parameter.

This error is thrown no matter how I select the extent: canvas size, layer, or manual.

  • Don't use 0 as WIDTH and HEIGHT. They define the size of the output as pixels. – user30184 Aug 23 at 6:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.