File: description.html

package info (click to toggle)
grass 6.0.2-6
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 40,044 kB
  • ctags: 31,303
  • sloc: ansic: 321,125; tcl: 25,676; sh: 11,176; cpp: 10,098; makefile: 5,025; fortran: 1,846; yacc: 493; lex: 462; perl: 133; sed: 1
file content (58 lines) | stat: -rw-r--r-- 2,269 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<h2>DESCRIPTION</h2>

<em>v.clean</em> allows the user to automatically change (repair) vector files.
The user does <em>not</em> have to run  <em><a HREF="v.build.html">v.build</a></em> afterwards.

<h2>NOTES</h2>

<h3>What is a bridge?</h3>
A bridge is an area type connection of an island (polygon in a polygon) to the outer
polygon. This is topologically incorrect (but OGC Simple Features allow it). <em>v.clean</em>
can be used to optionally change the line type to fulfill the topology rules or to
remove the bridge from the map:

<pre>
    +-------------+             +-------------+   +-------------+
    |            P|  P: polygon |            P|   |            P|
    |    +---+    |  I: island  |    +---+    |   |    +---+    |
    |    | I |    |  B: bridge  |    | I |    |   |    | I |    |
    |    |   |    |  :  line    |    |   |    |   |    |   |    |
    |    +-+-+    |             |    +---+    |   |    +-.-+    |
    |      |      |             |             |   |      .      |
    |      | B    |             |             |   |      . L    |
    |      |      |             |             |   |      .      |
    +------+------+             +-------------+   +-------------+
</pre>

<h2>EXAMPLES</h2>

<h3>Snap lines to vertex in threshold</h3>

<b>v.clean input=</b><em>testmap</em> <b>output=</b><em>cleanmap</em> <b>tool=</b><em>snap</em> <b>thresh=</b><em>1</em>
<p>


<h3>Cleaning OGR imported data (Simple Feature data)</h3>

The import of areas with <a HREF="v.in.ogr.html">v.in.ogr</a> requires a subsequent run of
<a HREF="v.clean.html">v.clean</a> to update the map to a topologically
valid structure (removal of duplicate collinear lines etc). The tools
used for that are 'rmdupl' and 'bpol':
<p>
<b>v.clean input=</b><em>areamap</em> <b>output=</b><em>areamap_clean</em> <b>tool=</b><em>rmdupl,bpol</em> <br>


<h3>Extracting intersection points of vector lines</h3>

<b>v.clean input=</b><em>lines1</em> <b>output=</b><em>lines2</em> <b>err=</b><em>points</em> <b>tool=</b><em>break</em> <br>

Intersection points are written to 'points' map.

<h2>AUTHOR</h2>

David Gerdes, U.S. Army Construction Engineering 
Research Laboratory
<br>
Radim Blazek, ITC-Irst, Trento, Italy

<p><i>Last changed: $Date: 2004/08/07 15:56:22 $</i>