Problem processing Slovenian LiDAR DTM with GDAL (and QGIS)

by youlion   Last Updated October 10, 2019 15:22 PM

If I want to apply GDAL (version 2.2.3) on the LiDAR derived DTM (ASCII) from Slovenia (Link to Slovenian DTM below), I run into this error:

gdalinfo input.asc

ERROR 1: Ungridded dataset: At line 214, too many stepY values
gdalinfo failed - unable to open 'input.asc'.

The files can neither be loaded into QGIS (3.4.12).

I read here, that there is a XY swap in the files and sort can be used to get rid of the XY swap:

sort -k2 -n -k1 -t ';' input.asc -o output.xyz

However, after applying this to the .asc, I run into the following error:

gdalinfo output.xyz 

ERROR 1: Ungridded dataset: At line 1002, too many stepY values
gdalinfo failed - unable to open 'output.xyz'.

What am I doing wrong here? What can I do to apply GDAL to the data? Thanks for the hints.

The LiDAR can be accessed for free here: ARSO. Here is a direct download link to a sample ASCII file (D48GK projection): GK1_444_106.asc

Tags : qgis gdal dem lidar


Related Questions


Updated April 20, 2017 14:22 PM

Updated January 15, 2019 11:22 AM

Updated September 12, 2016 08:09 AM

Updated July 26, 2016 08:09 AM

Updated March 13, 2016 08:09 AM