|
|
行1: |
行1: |
− | <H2>
| + | --[[利用者:Sanak|Sanak]] 2009年10月4日 (日) 13:14 (UTC)このページは削除予定です。 |
− | Loading GRASS raster and vector layers
| + | |
− | </H2>
| + | |
− | | + | |
− | <P>
| + | |
− | With the GRASS plugin, you can load vector or raster layers using the
| + | |
− | appropriate button on the toolbar menu. As an example we use the QGIS alaska
| + | |
− | dataset (see Section [[#label_sampledata]]). It includes a small sample
| + | |
− | GRASS LOCATION with 3 vector layers and 1 raster elevation map.
| + | |
− | | + | |
− | <P>
| + | |
− | | + | |
− | <OL>
| + | |
− | <LI>Create a new folder grassdata, download the QGIS alaska dataset qgis_sample_data.zip from http://download.osgeo.org/qgis/data/ and unzip the file into grassdata.
| + | |
− | </LI>
| + | |
− | <LI>Start QGIS.
| + | |
− | </LI>
| + | |
− | <LI>If not already done in a previous QGIS session, load the GRASS plugin clicking on Plugins > Manage Plugins and selecting GRASS. The GRASS toolbar appears on the toolbar menu.
| + | |
− | </LI>
| + | |
− | <LI>In the GRASS toolbar, click the grass_open_mapsetOpen
| + | |
− | mapset icon to bring up the MAPSET wizard.
| + | |
− | </LI>
| + | |
− | <LI>For Gisdbase browse and select or enter the path to the
| + | |
− | newly created folder grassdata.
| + | |
− | </LI>
| + | |
− | <LI>You should now be able to select the LOCATION alaska
| + | |
− | and the MAPSET demo.
| + | |
− | </LI>
| + | |
− | <LI>Click OK. Notice that some previously disabled tools in the
| + | |
− | GRASS toolbar are now enabled.
| + | |
− | </LI>
| + | |
− | <LI>Click on grass_add_rasterAdd GRASS raster layer,
| + | |
− | choose the map name gtopo30 and click OK. The elevation
| + | |
− | layer will be visualized.
| + | |
− | </LI>
| + | |
− | <LI>Click on grass_add_vectorAdd GRASS vector layer,
| + | |
− | choose the map name alaska and click OK. The alaska
| + | |
− | boundary vector layer will be overlayed on top of the gtopo30 map. You can
| + | |
− | now adapt the layer properties as described in chapter [[#sec:vectorprops]],
| + | |
− | e.g. change opacity, fill and outline color.
| + | |
− | </LI>
| + | |
− | <LI>Also load the other two vector layers rivers and
| + | |
− | airports and adapt their properties.
| + | |
− | </LI>
| + | |
− | </OL>
| + | |
− | | + | |
− | <P>
| + | |
− | As you see, it is very simple to load GRASS raster and vector layers in QGIS.
| + | |
− | See following Sections for editing GRASS data and creating a new
| + | |
− | LOCATION. More sample GRASS LOCATIONs are available at
| + | |
− | the GRASS website at http://grass.osgeo.org/download/data.php .
| + | |
− | | + | |
− | <P>
| + | |
− | <BR>
| + | |
− | | + | |
− | <BR>
| + | |
− | | + | |
− | <P>
| + | |