Vector Spatial Analysis - GRASS-Wiki

Embed Size (px)

Citation preview

  • 7/27/2019 Vector Spatial Analysis - GRASS-Wiki

    1/4

    GRASS 6 Tutorial/Vector spatial analysis

    From GRASS-Wiki

    < GRASS 6 Tutorial

    Contents

    1 Vector Spatial Analysis

    1.1 Vector Union

    1.2 Vector Intersection

    1.3 Vector Clip

    2 Vector Analysis using the GUI

    Vector Spatial Analysis

    The following examples demonstrate how basic vector data processing operations, such as overlay, union

    and clipping can be performed in GRASS 6.4. These operations are all performed using the GRASS module,

    v.overlay (http://grass.osgeo.org/grass64/manuals/v.overlay.html) , which can either be run using the GUI

    or from the command-line interface. The following examples are demonstrated using the CLI, using two

    vector datasets, namely: urbanarea and census_wake2000 from the North Carolina database.

    d.mon start=x0

    g.region vect=census_wake2000

    d.vect census_wake2000 col=blue

    d.vect urbanarea col=red type=boundary

    Vector Union

    The following command creates a union (operatoror) of the two polygon vectors:

    v.overlay ain=census_wake2000 bin=urbanarea out=urban_census2000 operator=or

    with urban_census2000 created as follows.

    ASS 6 Tutorial/Vector spatial analysis - GRASS-Wiki http://grasswiki.osgeo.org/wiki/GRASS_6_Tutorial/Vector_spatial_ana...

    4 31/07/2013 22:11

  • 7/27/2019 Vector Spatial Analysis - GRASS-Wiki

    2/4

    Vector Intersection

    The following command creates an intersection (operatorand) of the two polygon vectors:

    v.overlay ain=census_wake2000 bin=urbanarea out=urban_census2000_intersect operator=and

    Vector Clip

    The following command clips (cuts out) intersection (operatornot) of the two polygon vectors:

    v.overlay ain=census_wake2000 bin=urbanarea out=urban_census2000_intersect operator=not

    ASS 6 Tutorial/Vector spatial analysis - GRASS-Wiki http://grasswiki.osgeo.org/wiki/GRASS_6_Tutorial/Vector_spatial_ana...

    4 31/07/2013 22:11

  • 7/27/2019 Vector Spatial Analysis - GRASS-Wiki

    3/4

    Vector Analysis using the GUI

    The above examples can be easily replicated using the v.overlay GUI, available underVector --> Overlay

    Vector Maps --> Overlay Vector Maps [v.overlay]. The default tab allows you to select the two vector files

    (ainput and binput):

    The second tab ('Optional') allows you to specify the vector operator (or, and, not, ...) as well as other

    options:

    Once you have made your selections, simply clickRun

    Retrieved from "http://grasswiki.osgeo.org/grass-wiki/index.php?title=GRASS_6_Tutorial

    /Vector_spatial_analysis&oldid=19462"

    This page was last modified on 29 July 2013, at 02:57.

    This page has been accessed 42 times.

    ASS 6 Tutorial/Vector spatial analysis - GRASS-Wiki http://grasswiki.osgeo.org/wiki/GRASS_6_Tutorial/Vector_spatial_ana...

    4 31/07/2013 22:11

  • 7/27/2019 Vector Spatial Analysis - GRASS-Wiki

    4/4

    Content is available under GNU Free Documentation License 1.2.

    ASS 6 Tutorial/Vector spatial analysis - GRASS-Wiki http://grasswiki.osgeo.org/wiki/GRASS_6_Tutorial/Vector_spatial_ana...

    4 31/07/2013 22 11