Fourni par Blogger.

How to generate contours using raster data in Quantum GIS

Publié par elharrak lundi 31 mars 2014

This beginner QGIS tutorial explains how to generate contours directly from raster elevation data by using the GdalTools Contour function.  I suggest users to complete the tutorial called ‘Using QGIS Plugins’ to find out how to properly install and enable the GdalTools Python Plugin. 

qgis_point_contour_output

Once you have downloaded and extracted the raster elevation data, open up QGIS and select Add Raster Layer.  Navigate to the location of the dem_clip.tif file and add it to your current project.

Generating Contours from Raster


To generate contours directly from the raster elevation data, select Raster > Contour to open the GdalTools Contour menu.  In the Contour menu, make sure to select dem_clip as the Input file (raster).  For Output directory for contour lines (shapefile) click on the Select button.  This tool is asking for you to select the parent folder for where the output file contour.shp is to be stored.  Navigate to the location of your raster elevation data, click the Create New Folder icon and name the folder ‘rastercontour’.  Finally select the ‘rastercontour’ directory and click on the Choose button.

qgis_choose_raster_contour_ouput_directory

Back in the GdalTools Contour menu, set the Interval between contour lines to ‘100’.  Place a check next to Attribute Name and leave the name set to ELEV.  Lastly place a checkbox in the Load into canvas when finished option.  Click OK and then Close. 

qgis_gdaltools_contour_menu

You should now see your contour lines overlaid on top of your elevation raster.  In order to better symbolize your contours with graduated colors and appropriate feature labels, continue onto the tutorial titled ‘How to generate contours using point data in Quantum GIS (QGIS)’ and complete the bottom two sections: Adding Symbology to Contours and Labeling Contours.  Once you have completed the tutorial you should have a nice clear map which shows the vector contours with graduated color scheme and feature labels overlaid on top of the original raster elevation data.

qgis_point_contour_output

0 commentaires

Enregistrer un commentaire