Hi all,
I have a shapefile with 5.3 million points relating to heights that I want to use gdal_grid to turn into a DEM. The points are derived from a 20m contour interval shapefile so I would like to end up with a 20m x 20m pixel resolution on the DEM. The gdal_grid command I am using is:
gdal_grid -ot UInt16 -of GTiff -zfield "ALTITUDE" -l contour_nodes C:\contour_nodes.shp C:\dem_20m --config GDAL_NUM_THREADS ALL_CPUS
However, without any input regarding grid output size it automatically creates a DEM with a pixel size of 400m x 400m. I can't tell it to use a particular cell size, only the overall output grid size (using -outsize x x).
Can anyone tell me if there is an easy way to determine the appropriate grid size (number of cells and lines) needed to produce the desired cell sizes rather than just undertaking some rough measuring and maths? ie. I would like this to be precise and produce 20m x 20m cells not something that is around about that.
Hope this makes sense :)
Oh and if anyone had any ideas about how to speed up the process (the 400m x 400m DEM took several hours, the 20m x 20m will take forever!) that would be great too.
Cheers,
Barrett
Barrett Higman
GIS Officer
Alpine Shire Council
--
You received this message because you are subscribed to the Google Groups "Australian QGIS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to australian-qgis-use...@googlegroups.com.
To post to this group, send an email to australian-qg...@googlegroups.com.
Visit this group at http://groups.google.com/group/australian-qgis-user-group.
For more options, visit https://groups.google.com/groups/opt_out.
Thanks for the reply Shaun, I must admit I have no experience using gdal_rasterize but I don't think it undertakes any type of interpolation? My points are not regular having coming from a contour dataset so I think that gdal command would simply leave gaps everywhere there are no points. Might be wrong though?
Cheers,
Barrett
Barrett Higman
GIS Officer
Alpine Shire Council
That is a very interesting idea Luke, have you tried it before?
The gdal_grid documentation does state that it creates a regular grid from scattered data so I hadn't thought of making the data regular first... I'll give it a go and see what happens.
Cheers,
Barrett
Barrett Higman
GIS Officer
Alpine Shire Council
From: Luke [mailto:coolha...@gmail.com]
Sent: Thursday, 1 August 2013 9:11 AM
To: australian-qg...@googlegroups.com
Subject: Re: gdal_grid question
Perhaps create the grid first in QGIS using research tools and then intersect with your points