[gdal-dev] Opening gridded xyz data that is out of order
Mark Johnson
mj10777 at googlemail.com
Mon Sep 11 07:12:10 PDT 2017
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20170911/5a1e2b75/attachment.html>
More information about the gdal-dev
mailing list