<div dir="ltr">You must sort the data beforehand<div>- the y position must be sorted properly (ASC or DESC)</div><div><br></div><div>Standard linux sort program:</div><div><br></div><div>sort -k2 -n -k1 <a href="http://392_5810.xyz">392_5810.xyz</a> -o <a href="http://392_5810.sort.xyz">392_5810.sort.xyz</a><br></div><div><br></div><div>(2nd column (y) as numeric, then first column (x) -o = output file</div><div><br></div><div>As a zip file you can also do:</div><div><br></div><div>unzip -p 390_5820.zip | sort -k2 -n -k1 -o ../xyz/390_5820.dhhn92.txt<br></div><div><br></div><div>that would deal with problem in 1 step.</div><div><br></div><div>ogr needs to know the range/area to build (minx,miny,maxx, maxy), so when the y switches it assumes a new column.</div><div><br></div><div>Mark</div></div>