<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi Luke,</p>
<p>Excellent. I should have consulted the GDAL reference myself ;-)
many thanks. This was exactly what I was looking for!<br>
</p>
<p>I can define the DECIMAL_PRECISION parameter as an advanced
option when creating the raster. This works very well.</p>
<p>The only issue I see here is "user friendly-ness". While this
works very well for an experienced user, we can't expect the
average user or even novices to find out these parameters by
themselves by consulting the GDAL documentation.</p>
<p>Thanks,</p>
<p>Andreas<br>
</p>
<div class="moz-cite-prefix">Am 25.01.19 um 03:09 schrieb Luke
Pinner:<br>
</div>
<blockquote type="cite"
cite="mid:CAE8LFTxdw-aaKzAV8Xnu_HLX8HcaXAkX3=Mk7=LXASX095pLAQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="auto"><span style="font-family:sans-serif">For</span> ASCII
grids, the gdal doc[1] notes:
<div dir="auto"><br>
</div>
<div dir="auto"><span style="font-family:"times new
roman";font-size:medium">When writing floating-point
values, the driver uses the "%.20g" format pattern as a
default. You can consult a </span><a
href="http://en.wikipedia.org/wiki/Printf"
style="font-family:"times new
roman";font-size:medium" moz-do-not-send="true">reference
manual</a><span style="font-family:"times new
roman";font-size:medium"> for printf to have an idea of
the exact behaviour of this ;-). You can alternatively
specify the number of decimal places with the
DECIMAL_PRECISION creation option. For example,
DECIMAL_PRECISION=3 will output numbers with 3 decimal
places(using %lf format). Starting with GDAL 1.11, another
option is SIGNIFICANT_DIGITS=3, which will output 3
significant digits (using %g format).</span><br>
<div dir="auto"><br>
</div>
<div dir="auto">I don't know if you can specify gdal creation
options for AAIGRID output in QGIS 3 though.</div>
<div dir="auto"><br>
</div>
<div dir="auto">1 <a
href="https://www.gdal.org/frmt_various.html"
moz-do-not-send="true">https://www.gdal.org/frmt_various.html</a></div>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr">On Thu., 24 Jan. 2019, 18:59 Andreas Neumann <<a
href="mailto:a.neumann@carto.net" moz-do-not-send="true">a.neumann@carto.net</a>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div
style="font-size:10pt;font-family:Verdana,Geneva,sans-serif">
<p>Hi,</p>
<p>I have two questions about saving rasters in QGIS 3.4:</p>
<p>1.</p>
<p>If I use "Right-klick layer" --> "Export" --> "Save
AS" then I can't choose the ESRI ASCII Grid format
described in "Settings" --> "Options" --> "GDAL" as
"AAIGrid".</p>
<p>Any idea why this format is not available for exporting
rasters?</p>
<p>2.</p>
<p>As an alternative I can use the "Raster" -->
"Extraction" --> "Clip raster by extent". This works
fine, but I can't set the number of decimal places after
the comma.</p>
<p>E.g. if I export a terrain model I would like to use 2-3
places after the decimal, not the full 8 digits, which is
a false accuracy.</p>
<p>Any way I can set the accuracy for the export?</p>
<p>Thanks,</p>
<p>Andreas</p>
</div>
_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org"
target="_blank" rel="noreferrer" moz-do-not-send="true">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a
href="https://lists.osgeo.org/mailman/listinfo/qgis-developer"
rel="noreferrer noreferrer" target="_blank"
moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a
href="https://lists.osgeo.org/mailman/listinfo/qgis-developer"
rel="noreferrer noreferrer" target="_blank"
moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></blockquote>
</div>
</blockquote>
</body>
</html>