Vector Analysis
This tutorial shows how to add a vector layer to the map, style it, and run a GRASS vector module on it.
Prerequisites
- A GRASS environment with at least one vector map
- FastGIS connected and an environment selected
1. Add a vector layer
- Click the △ (Add Vector) toolbar button
- Select your vector map from the dropdown
- Click Add to Map
The vector layer appears in the Layer Manager with a V badge.
2. Style the vector
- Click the style button on the vector layer row in the Layer Manager
- The inline style panel expands:
- Pick a Color with the colour picker
- Adjust Alpha (transparency) with the slider
- Set Width for line/polygon stroke
- Changes apply live to the Cesium viewer
3. Set the region to match the vector
- Open the Computational Region panel (click □ in the toolbar)
- Select your vector in the Match raster(s) list
- Click Set region to raster(s)
(GRASS treats this as setting the region bounds to the vector's bounding box.)
4. Run a vector module
As an example, run v.buffer to create a buffer around the vector:
- In Run Module type
v.bufferand click Load ↓ - Fill in:
input→ your vector mapoutput→ e.g.buffer_resultdistance→ buffer distance in map units
- Click ▶ Run
5. Add the result to the map
Once the module finishes, click △ → select buffer_result → Add to Map.
Adjust the opacity and colour via the Layer Manager to overlay the buffer on the original vector.
6. Identify features
Click the ℹ (Identify) toolbar button, then click a location on the map. A popup shows the v.what result for any vector layers at that point.