- QGIS 2 Cookbook
- Alex Mandel Víctor Olaya Ferrero Anita Graser Alexander Bruy
- 258字
- 2021-07-16 11:12:37
Saving a raster layer
Raster layers can be exported to a different file. The export process can be used to crop the layer or perform resampling, creating a modified layer. This recipe shows you how to do this.
Getting ready
Open the elev_lid792_1m
layer in your QGIS project.
How to do it…
- Right-click on the name of the raster layer in the QGIS table of contents and select the Save as... menu. You will see the following window:
- In the Resolution fields, replace both of them with a value of
2
. The original resolution (the size of the cell) is1
, as you saw in a previous recipe. - Enter an output file path in the Save as field.
- Click on OK. The layer will be saved with a coarser resolution than the original one.
How it works…
The GDAL library is used to save the file. Not all formats supported for input are also supported for output, but the most common ones are supported for both operations.
There's more…
The layer can be exported with a reduced extent. In the QGIS canvas, zoom to a small part of the raster layer. Then open the Save as dialog. In the Extent section, click on the Map view extent button. The bounding coordinates of the current map view will be placed in the four coordinate fields.
Enter a file path to save the file to and click on OK. A layer with a reduced extent covering only the region shown in the map view will be exported.
- C# 7 and .NET Core Cookbook
- 國際大學(xué)生程序設(shè)計競賽中山大學(xué)內(nèi)部選拔真題解(二)
- 密碼學(xué)原理與Java實現(xiàn)
- Java Web及其框架技術(shù)
- FreeSWITCH 1.6 Cookbook
- INSTANT Sencha Touch
- Unity 5.x By Example
- Microsoft System Center Orchestrator 2012 R2 Essentials
- 大模型RAG實戰(zhàn):RAG原理、應(yīng)用與系統(tǒng)構(gòu)建
- ExtJS Web應(yīng)用程序開發(fā)指南第2版
- 微課學(xué)人工智能Python編程
- Mastering HTML5 Forms
- Drupal 8 Development:Beginner's Guide(Second Edition)
- HTML5移動Web開發(fā)
- Learning TypeScript