<div dir="ltr">Thanks Norman. I'd already seen that page but failed to read it!<div>However, having tested it, it's not functioning as the manual says.</div><div><br></div><div>As best I can tell, DECIMAL_PRECISION=3 should give me 3 decimal places. But what it instead does it give me 3 significant figures. So 98.354 has become 98.3.</div>

<div>This becomes a problem because many of my heights are hovering around 100. So some will either have to be 1 character too long to ensure no data loss for the rest.</div><div><br></div><div>Is this a bug? The documentation on the page linked to is quite clear it should be decimal places.</div>

<div><br></div><div>Less of an issue, but it also didn't make any difference to:</div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

xllcorner    432000.000000000000<br>yllcorner    242000.000000000000<br>cellsize     2.000000000000</blockquote></div><div><br></div><div>GDAL 1.10.1, released 2013/08/26<br></div><div><br></div><div><br></div><div><div>
Cheers,</div>
<div>Jonathan<br><div class="gmail_extra"><div><br></div>
<br><br><div class="gmail_quote">On 24 January 2014 15:11, Norman Vine <span dir="ltr"><<a href="mailto:nhv@cape.com" target="_blank">nhv@cape.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">


<div style="word-wrap:break-word">try<br><blockquote type="cite"><div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">


gdal_translate -of AAIGrid -co DECIMAL_PRECISION=3  abc.vrt abc.asc</blockquote></div></blockquote><div>see <a href="http://www.gdal.org/frmt_various.html" target="_blank">http://www.gdal.org/frmt_various.html</a></div>HTH<div>


Norman</div><div><br><div><div><div><div>On Jan 24, 2014, at 10:01 AM, Jonathan Moules <<a href="mailto:jonathanmoules@warwickshire.gov.uk" target="_blank">jonathanmoules@warwickshire.gov.uk</a>> wrote:</div>
<br></div></div><blockquote type="cite"><div><div><div dir="ltr">Hi List,<div>I'm trying to mosaic some ASCII grid tiles into a single large ASCII file (which can then easily be handled).<br></div><div><br>
</div><div>I'm using this process:</div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">


REM Create list of files<br>dir /b /s *.asc > asc_list.txt<br></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">





REM Turn into VRT<br>gdalbuildvrt -srcnodata "-9999" -vrtnodata "0" -a_srs "EPSG:27700" -input_file_list "asc_list.txt" abc.vrt<br></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">





REM actual mosaicing<br>gdal_translate -of AAIGrid abc.vrt abc.asc</blockquote></div><div><br></div><div>The input files are like:</div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">





ncols         500<br>nrows         500<br>xllcorner     432000.000<br>yllcorner     243000.000<br>cellsize      2<br>nodata_value  -9999.0<br>98.354 98.449 98.658 98.874 99.038 99.096</blockquote><div><br></div><div>But the outputs are like:</div>





<div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">fncols        500<br>nrows        1000<br>




xllcorner    432000.000000000000<br>
yllcorner    242000.000000000000<br>cellsize     2.000000000000<br>NODATA_value  0<br> 98.353996276855469 98.448997497558594 98.657997131347656 98.874000549316406 </blockquote></div><div>
<div><br></div><div>Suddenly everything has a dozen extra decimal places. Not only does this induce the False Precision problem (we don't have heights to the femtometer!), it also massively increases the filesize.</div>





</div><div><br></div><div>How can I get this to not happen?</div><div><br></div><div>Thanks,</div><div>Jonathan</div><div><br></div></div>

<br>
</div></div><span style="color:rgb(34,34,34);font-family:arial,sans-serif">This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.</span>_______________________________________________<br>


gdal-dev mailing list<br><a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a></blockquote>


</div><br></div></div></blockquote></div><br></div></div></div></div>

<br>
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.</span>