QGIS - converting or saving temporary scratch layer

8.5k Views Asked by At

I have used the GRASS v.to.rast and r.surf.contour functions in the processing toolbox of QGIS 3.10.13 to generate DTM raster layers from some vector contour layers. However, the DTM layers are flagged as "Temporary layer only!", and QGIS warns that they "will be discarded after closing QGIS". How do I save them as permanent layers in the current project? I'm new to QGIS so it's possible I've missed something obvious, but I've looked everywhere in the software, along with Google and stackoverflow, with no luck so far. Thanks!

2

There are 2 best solutions below

0
On

I'm an infrequent QGIS user (usually heavy user of ArcGIS Pro). Needed Lidar DEM merged. (Raster|Misc|Merge). had to export as geotiff with a new name. didn't realize this created a new layer until struggling for a bit with how to make the merged layer permanent. wound up deleting the "Merged" layer and the two original tiles. New layer seems to be working fine as I just changed the symbology to hillshade successfully. A bit of a workaround but now am able to save without a reminder to save the temporary layer.

0
On

An old question, I know, but for info if someone comes across this using newer versions of QGIS.

In v3.34 and also in some older versions, by clicking on the icon marking the layer as a temporary scratch layer, a "Save scratch layer" dialog will open. The same dialog as for export-> Save features as, but with the difference that when saved this way, the scratch layer will be replaced with the saved layer with all settings transferred from the scratch layer.

I have a temporary scratch layer that I have made a symbology on:

enter image description here

Clikcing on the "IC" icon showing that it is a temporary scratch layer allows me to save it: enter image description here

And I have a permanent layer in my project enter image description here