<div dir="ltr">Even - okay thanks for taking a look, I'll check out the 2.0dev version as you mentioned.<div>Cheers</div><div>S</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 7 June 2014 21:59, Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@mines-paris.org" target="_blank">even.rouault@mines-paris.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Le samedi 07 juin 2014 22:31:09, Sam Franklin a écrit :<br>
<div class="">> Hey Even - me again on this xyz sorting issue.<br>
><br>
> I've got a new xyz file that it is not recognised by gdal even after using<br>
> the sort command you provided earlier in the thread.<br>
><br>
> The problem xyz is here |<br>
> <a href="https://dl.dropboxusercontent.com/u/4086367/001-1.xyz.zip" target="_blank">https://dl.dropboxusercontent.com/u/4086367/001-1.xyz.zip</a><br>
><br>
> The error is:<br>
>  ERROR 1: Ungridded dataset: At line 363, X is 568509.090000, where as<br>
> 568514.090000 was expected (1)<br>
>  gdalinfo failed - unable to open '001-1.xyz'.<br>
><br>
> GDAL seems to fail at the start of a new row of data?<br>
><br>
> I've tried various descend/ascend combinations of the columns = no joy.<br>
><br>
> I'm running GDAL 1.11.0 on OSX 10.9.3.<br>
><br>
> Any ideas?  Thanks again in advance for any help! Very much appreciated.<br>
<br>
</div>The development version 2.0dev has improvements over 1.11 that would help a<br>
bit, but this file would still require additional developments since the<br>
spacing between horizontal or vertical coordinates isn't constant due to<br>
rounding to 2 decimal figures. Some tolerance should be added to the driver to<br>
support it.<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
> Cheers<br>
> Sam<br>
><br>
><br>
> On 27 May 2014 14:09, Sam Franklin <<a href="mailto:mailinglist.samfranklin@gmail.com">mailinglist.samfranklin@gmail.com</a>><br>
><br>
> wrote:<br>
> > Hi Even. Great, that worked for me too when sorting on both columns.<br>
> > Really appreciate you help.<br>
> > Sam<br>
> ><br>
> > On 27 May 2014 01:31, Even Rouault <<a href="mailto:even.rouault@mines-paris.org">even.rouault@mines-paris.org</a>> wrote:<br>
> >> Le mardi 27 mai 2014 00:06:33, Sam Franklin a écrit :<br>
> >> > Hey Even - great tip.  The sort command you suggested worked well with<br>
> >><br>
> >> that<br>
> >><br>
> >> > xyz dataset.<br>
> >> ><br>
> >> > However, I've found a further dataset that does not work with gdal<br>
> >> > even after the sort. This is the error:<br>
> >> ><br>
> >> > mbp-sf:data08 samfranklin$ gdal_translate data08-02-sorted.xyz<br>
> >> > data08-02.tif<br>
> >> > Input file size is 4371, 11210<br>
> >> > 0...10...20...30...40.ERROR 1: At line 1100207, found 48162.000000<br>
> >><br>
> >> instead<br>
> >><br>
> >> > of 48164.000000 for nBlockYOff = 4951ERROR 1: data08-02-sorted.xyz,<br>
> >><br>
> >> band 1:<br>
> >> > IReadBlock failed at X offset 0, Y offset 4951<br>
> >> ><br>
> >> > ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 4951<br>
> >> ><br>
> >> > See screenshot below, the data is arranged into three 'strips'. See<br>
> >><br>
> >> dropbox<br>
> >><br>
> >> > link to the data |<br>
> >> > <a href="https://dl.dropboxusercontent.com/u/4086367/data08-02.xyz.zip" target="_blank">https://dl.dropboxusercontent.com/u/4086367/data08-02.xyz.zip</a><br>
> >> ><br>
> >> > Any workaround you can think of?<br>
> >><br>
> >> Probably an issue with just sorting on column 2. I didn't have the same<br>
> >> error<br>
> >> as you, but anyway you should try :<br>
> >><br>
> >> sort -nk 2 -nk 1 data08-02.xyz > data08-02-sorted.xyz<br>
> >><br>
> >> with that I manage to translate the file.<br>
> >><br>
> >> --<br>
> >> Geospatial professional services<br>
> >> <a href="http://even.rouault.free.fr/services.html" target="_blank">http://even.rouault.free.fr/services.html</a><br>
<br>
--<br>
Geospatial professional services<br>
<a href="http://even.rouault.free.fr/services.html" target="_blank">http://even.rouault.free.fr/services.html</a><br>
</div></div></blockquote></div><br></div>