28.05.2013 Views

QGIS User Guide - OSGeo Download Server

QGIS User Guide - OSGeo Download Server

QGIS User Guide - OSGeo Download Server

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

9.9 La barra strumenti GRASS<br />

Contents, then check transparency of the colored gtopo30 layer. You should see that the 3D<br />

effect stands out more strongly compared to the first shaded relief map.<br />

Figura 41: Displaying shaded relief created with the GRASS module r.shaded.relief<br />

Raster statistics in a vector map<br />

The next example shows how a GRASS module can aggregate raster data and add columns of<br />

statistics for each polygon in a vector map.<br />

• Again using the Alaska data, refer to 9.4 to import the trees shapefile from the<br />

vmap0_shapefiles directory into GRASS.<br />

• Now an intermediary step is required: centroids must be added to the imported trees map to<br />

make it a complete GRASS area vector (including both boundaries and centroids).<br />

• From the toolbox choose Vector -> Manage features, and open the module v.centroids.<br />

• Enter as the output vector map forest_areas and run the module.<br />

• Now load the forest_areas vector and display the types of forests - deciduous, ever-<br />

green, mixed - in different colors: In the layer Properties window, symbology tab, choo-<br />

se Legend type Unique value and set the Classification field VEGDESC to VEGDESC.<br />

<strong>QGIS</strong> 1.4.0 <strong>User</strong> <strong>Guide</strong> 121

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!