There was a question about processing ungridded .asc DTM files: Problem processing Slovenian LiDAR DTM with GDAL (and QGIS): "too many stepY values" error
The answer helped a lot already, but I don't understand how you calculate -txe and -txy for the gdal_grid command?
When I look into the example file "GK1_444_106.asc", the first point (lower left) is:
and the last point (upper right) is:
I would assume the georeferenced extents of the gdal_grid command would be:
-txe <xmin> <xmax> => -txe 444000.00 444999.96 -tye <ymin> <ymax> => -tye 106000.15 106999.15
But in the answer it is:
-txe 443999.5 445000.5 -tye 106999.65 105999.65
- Why was there 0.5 added (to max) and subtracted (from min) to the values (and why were they rounded)?
- Why are the -tye values in a reversed order (max first, then min)?