I am using gdal_grid to grid my xyz point data into a raster using the minimum value technique.

gdal_grid  -a minimum:radius1=1.0:radius2=1.0:angle=0.0:min_points=0:nodata=0.0 -ot Float32 -of GTiff "C:/INPUT.shp" C:/OUTPUT_RASTER.tif

However, with the above code I am getting a very fuzzy/blocky raster with no definition.

Is there any way to automatically determine the extents for txe and tye for future datasets that I'd like to create rasters from? Or an alternative approach to get a more defined raster?

  • what projection is your raster in 1m seems good, 1 degree is very bad
    – Ian Turton
    Apr 11 at 15:55
  • @IanTurton It is in EPSG:2157 Apr 11 at 18:04
  • -tr xres yres
    – user2856
    Apr 11 at 22:09
  • @user2856 sorry? Apr 12 at 8:56
  • Use -tr xres yres and specify the resolution, instead of letting gdal_grid use a large default value. This doesn't answer the "automatically determine the extents" question, but will stop you getting a blocky output if you choose an appropriate pixel size.
    – user2856
    Apr 12 at 9:17


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.