官术网_书友最值得收藏!

Reprojecting and converting vector and raster data

In Chapter 2, Viewing Spatial Data, we talked about CRS and the fact that QGIS offers on the fly reprojection to display spatial datasets, which are stored in different CRS, in the same map. Still, in some cases, we might want to permanently reproject a dataset, for example, to geoprocess it later on.

In QGIS, reprojecting a vector or raster layer is done by simply saving it with a new CRS. We can save a layer by going to Layer | Save as... or using Save as… in the layer name context menu. Pick a target file format and filename, and then click on the Select CRS button beside the CRS drop-down field to pick a new CRS.

Besides changing the CRS, the main use case of the Save vector/raster layer dialog, as depicted in the following screenshot, is conversion between different file formats. For example, we can load a Shapefile and export it as GeoJSON, MapInfo MIF, CSV, and so on, or the other way around.

The Save raster layer dialog is also a convenient way to clip/crop rasters by a bounding box, since we can specify which Extent we want to save.

Furthermore, the Save vector layer dialog features a Save only selected features option, which enables us to save only selected features instead of all features of the layer (this option is active only if there are actually some selected features in the layer).

Tip

Enabling Add saved file to map is very convenient because it saves us the effort of going and loading the new file manually after it has been saved.

主站蜘蛛池模板: 嵩明县| 沙雅县| 秭归县| 宝兴县| 浙江省| 彭水| 罗山县| 阜康市| 桦川县| 广安市| 探索| 双鸭山市| 贵州省| 泊头市| 安溪县| 兴山县| 马鞍山市| 汕头市| 南岸区| 孟津县| 沙坪坝区| 凤山市| 民勤县| 台东县| 江川县| 醴陵市| 沽源县| 镇坪县| 恩平市| 嘉义市| 治县。| 冀州市| 宁国市| 同心县| 莒南县| 剑川县| 天台县| 舞钢市| 习水县| 伽师县| 于都县|