<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Just wanted to add that I also tried the latest gdal_contour CLI command - with the same result.</div>

<div> </div>

<div>gdalinfo of the raster-tif says:</div>

<div> </div>

<div>
<div>Driver: GTiff/GeoTIFF<br/>
Files: Axx_PPS_1_0000_Z.tif<br/>
Size is 1291, 3701<br/>
Origin = (590694.146499999915250,5311061.004799999296665)<br/>
Pixel Size = (0.050000000000000,-0.050000000000000)<br/>
Image Structure Metadata:<br/>
  INTERLEAVE=BAND<br/>
Corner Coordinates:<br/>
Upper Left  (  590694.146, 5311061.005)<br/>
Lower Left  (  590694.146, 5310875.955)<br/>
Upper Right (  590758.696, 5311061.005)<br/>
Lower Right (  590758.696, 5310875.955)<br/>
Center      (  590726.421, 5310968.480)<br/>
Band 1 Block=1291x1 Type=Float32, ColorInterp=Gray<br/>
  Min=312.351 Max=314.506<br/>
  Minimum=312.351, Maximum=314.506, Mean=313.375, StdDev=0.602<br/>
  NoData Value=-99999<br/>
  Metadata:<br/>
    STATISTICS_MAXIMUM=314.50564575195<br/>
    STATISTICS_MEAN=313.37469987748<br/>
    STATISTICS_MINIMUM=312.35101318359<br/>
    STATISTICS_STDDEV=0.60238892993285</div>

<div> </div>

<div>Anything wrong with it?</div>
</div>

<div>
<div>It has been generated by SAGA by rastering a pointcloud.</div>

<div> </div>

<div>Regards,</div>

<div>Roland</div>

<div> 
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b> Mittwoch, 04. Oktober 2023 um 16:44 Uhr<br/>
<b>Von:</b> "Roland Spielhofer via QGIS-User" <qgis-user@lists.osgeo.org><br/>
<b>An:</b> "QGIS User" <qgis-user@lists.osgeo.org><br/>
<b>Betreff:</b> [Qgis-user] Create contours algorithm does not work</div>

<div name="quoted-content">
<div style="font-family: Verdana;font-size: 12.0px;">
<div>Hi,</div>

<div>I have a 1-band raster representing the surface of a road - the pixels hold the z-values/elevation.</div>

<div>I have loaded it into QGIS and used "contours" as renedering method. The result looks good, I additionally have the same raster with hillshading as rendering - very pleasent - see</div>

<div><a href="https://imgur.com/XMmMmdj" target="_blank">https://imgur.com/XMmMmdj</a></div>

<div>the fuzzy black lines are the contours, the light area is the hillshaded z-raster.</div>

<div> </div>

<div>One drawback of the on-the-fly contours is that they are limited to a minimum interval of 0.1 m. As the surface is very flat (a road), I would like to have a more dense set of contours (0.02 m, e.g.).</div>

<div> </div>

<div>I tried the contours function (GDAL > Raster extraction > contours) from the processing toolbox. It created a new layer with a plausible number of lines, but the lines are not visible, no matter what I try. The log of Contour is below - I do not see anything special.</div>

<div>I tried to calculate the length of the geometries, but I get "nan" for each.</div>

<div> </div>

<div>Any ideas why the contours function does not produce meaningful output while the rendering as contours works beautifully?</div>

<div> </div>

<div>Kind regards,</div>

<div>Roland</div>

<div> </div>

<div> </div>

<div>
<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;"><span style="color: rgb(119,119,119);">QGIS version: 3.32.1-Lima</span></p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;"><span style="color: rgb(119,119,119);">QGIS code revision: 4a078ecf63</span></p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;"><span style="color: rgb(119,119,119);">Qt version: 5.15.3</span></p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;"><span style="color: rgb(119,119,119);">Python version: 3.9.5</span></p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;"><span style="color: rgb(119,119,119);">GDAL version: 3.7.1</span></p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;"><span style="color: rgb(119,119,119);">GEOS version: 3.12.0-CAPI-1.18.0</span></p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;"><span style="color: rgb(119,119,119);">PROJ version: Rel. 9.2.1, June 1st, 2023</span></p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;"><span style="color: rgb(119,119,119);">PDAL version: 2.5.5 (git-version: a7569c)</span></p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;">Algorithm started at: 2023-10-04T16:39:30</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;"><span style="font-weight: 600;">Algorithm 'Contour' starting…</span></p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;">Input parameters:</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;"><span style="font-family: "Courier New";">{ 'BAND' : 1, 'CREATE_3D' : False, 'EXTRA' : '', 'FIELD_NAME' : 'ELEV', 'IGNORE_NODATA' : False, 'INPUT' : 'Q:/RoadSTAR/Archiv/_Diverses ohne Proj.Nr/A02_Detailauswertung/A02_2-1_km28,080_km27,694___230713_1758/A02_2-1_KM28,147_KM27,957_230713_1758/GeoTIFF/A02_2-1_KM28,147_KM27,957_230713_1758_PPS_1_0000_Z.tif', 'INTERVAL' : 0.1, 'NODATA' : None, 'OFFSET' : 0, 'OUTPUT' : 'TEMPORARY_OUTPUT' }</span></p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;"> </p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;">GDAL command:</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;"><span style="font-family: "Courier New";">gdal_contour -b 1 -a ELEV -i 0.1 -f "GPKG" "Q:\\RoadSTAR\\Archiv\\_Diverses ohne Proj.Nr\\A02_Detailauswertung\\A02_2-1_km28,080_km27,694___230713_1758\\A02_2-1_KM28,147_KM27,957_230713_1758\\GeoTIFF\\A02_2-1_KM28,147_KM27,957_230713_1758_PPS_1_0000_Z.tif" C:/Users/lokaladmin/AppData/Local/Temp/processing_lqTuzZ/d902fb853ce246a59f2768d2f0607ba6/OUTPUT.gpkg</span></p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;">GDAL command output:</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;"><span style="font-family: "Courier New";color: rgb(119,119,119);">0...10...20...30...40...50...60...70...80...90...100 - done.</span></p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;">Process completed successfully</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;">Execution completed in 0.39 seconds</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;">Results:</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;"><span style="font-family: "Courier New";">{'OUTPUT': 'C:/Users/lokaladmin/AppData/Local/Temp/processing_lqTuzZ/d902fb853ce246a59f2768d2f0607ba6/OUTPUT.gpkg'}</span></p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;"> </p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;">Loading resulting layers</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;">Algorithm 'Contour' finished</p>
</div>

<div> </div>

<div> </div>

<div><span style="counter-increment: unset;font: unset;white-space: pre;page: unset;top: 0.0px;"><a href="https://imgur.com/XMmMmdjhttps://imgur.com/XMmMmdjhttps://imgur.com/XMmMmdjhttps://imgur.com/XMmMmdjhttps://imgur.com/XMmMmdjhttps://imgur.com/XMmMmdj" target="_blank">https://imgur.com/XMmMmdjhttps://imgur.com/XMmMmdjhttps://imgur.com/XMmMmdjhttps://imgur.com/XMmMmdjhttps://imgur.com/XMmMmdjhttps://imgur.com/XMmMmdj</a></span></div>
</div>
_______________________________________________ QGIS-User mailing list QGIS-User@lists.osgeo.org List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></div>
</div>
</div>
</div></div></body></html>