[Qgis-user] Problem with contour algorithm

Adam Nielsen a.nielsen at shikadi.net
Wed Mar 13 08:55:49 PDT 2024


> I am trying to contour a grid file using the QGIS raster > extract>contour
> and I get getting errors saying "Warning 1: Model file not specified" or
> "ERROR 4: No such file or directory".
> 
> I am using 3.34 and 3.36 and get the same error.

I did this yesterday and it worked fine for me, but my command has:

  -f "SQLite" /tmp/xxx/OUTPUT.sqlite

Instead of the -f parameter in your screenshots.  I'm not sure how to
change this - can you see any options that let you select this output
format?

I am just wondering whether the two formats you've selected need
additional parameters.  The SQLite format appears not to need anything
else.

Cheers,
Adam.

----

QGIS version: 3.36.0-Maidenhead
Qt version: 5.15.12
Python version: 3.11.8
GDAL version: 3.8.4
GEOS version: 3.12.0-CAPI-1.18.0
PROJ version: Rel. 9.4.0, March 1st, 2024
PDAL version: 2.6.3 (git-version: Release)
Algorithm started at: 2024-03-14T01:51:00
Algorithm 'Contour' starting…
Input parameters:
{ 'BAND' : 1, 'CREATE_3D' : False, 'EXTRA' : '', 'FIELD_NAME' : 'ELEV', 'IGNORE_NODATA' : False, 'INPUT' : 'GPKG:/data/input.gpkg:dem_1m', 'INTERVAL' : 10, 'NODATA' : None, 'OFFSET' : 0, 'OUTPUT' : 'TEMPORARY_OUTPUT' }

GDAL command:
gdal_contour -b 1 -a ELEV -i 10.0 -f "SQLite" GPKG:/data/input.gpkg:dem_1m /tmp/processing_tKnWEA/c3d239d7319c4c728a2cadb22ec047d5/OUTPUT.sqlite
GDAL command output:
0...10...20...30...40...50...60...70...80...90...100 - done.
Process completed successfully
Execution completed in 1.13 seconds
Results:
  OUTPUT: /tmp/processing_tKnWEA/c3d239d7319c4c728a2cadb22ec047d5/OUTPUT.sqlite

Loading resulting layers
Algorithm 'Contour' finished


More information about the QGIS-User mailing list