You must sort the data beforehand
- the y position must be sorted properly (ASC or DESC)

Standard linux sort program:

sort -k2 -n -k1 392_5810.xyz -o 392_5810.sort.xyz

(2nd column (y) as numeric, then first column (x) -o = output file

As a zip file you can also do:

unzip -p 390_5820.zip | sort -k2 -n -k1 -o ../xyz/390_5820.dhhn92.txt

that would deal with problem in 1 step.

ogr needs to know the range/area to build (minx,miny,maxx, maxy), so when
the y switches it assumes a new column.

Mark
_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to