~ubuntu-branches/ubuntu/precise/grass/precise

« back to all changes in this revision

Viewing changes to vector/v.build.polylines/description.html

  • Committer: Bazaar Package Importer
  • Author(s): Francesco Paolo Lovergine
  • Date: 2011-04-13 17:08:41 UTC
  • mfrom: (8.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20110413170841-ss1t9bic0d0uq0gz
Tags: 6.4.1-1
* New upstream version.
* Now build-dep on libjpeg-dev and current libreadline6-dev.
* Removed patch swig: obsolete.
* Policy bumped to 3.9.2, without changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<h2>DESCRIPTION</h2>
2
2
 
3
3
<em>v.build.polylines</em> builds polylines from the lines or
4
 
boundaries in a vector map.  <!-- ???? and copies the attribute
5
 
and category files from the original file. -->
6
 
<P>
 
4
boundaries in a vector map.
 
5
 
 
6
<p>
7
7
A line is a single straight line segment defined by one start node, one end 
8
8
node and no other nodes. A polyline is also defined by one start node, one end 
9
9
node and no other nodes, but is made of two or more consecutive straight line 
10
10
segments. The connections between the constituent line segments of a polyline 
11
11
do not appear as nodes in the vector map.
12
 
<P>
 
12
 
 
13
<p>
 
14
<em>v.build.polyline</em> picks a line and from its start node, walks
 
15
back as long as exactly one other line is connected to this node. Line
 
16
directions are reversed as required, i.e. it does not matter if the
 
17
next line is connected to the current node by its start or end
 
18
node. Once the start line of a polyline is identified, it walks
 
19
forward and adds all vertices (in reverse order if needed) of
 
20
connected lines to the start line, i.e. the start line and connecting
 
21
lines are reversed as needed. That is, if a line is reversed depends
 
22
on what node is initially picked for building polylines. If the
 
23
direction of lines is important (it's not for boundaries to build
 
24
areas), you have to manually change line directions with
 
25
either <em><a href="v.edit.html">v.edit</a></em>, <em><a href="v.digit.html">v.digit</a></em>,
 
26
or the <em><a href="wxGUI.Vector_Digitizing_Tool.html">wxGUI vector
 
27
digitizer</a></em>.
 
28
 
 
29
<p>
13
30
Polylines provide the most appropriate representation of curved lines when it 
14
31
is important that nodes serve to define topology rather than geometry. Curved 
15
32
lines are usually digitized as polylines, but these are sometimes broken into 
18
35
polylines. 
19
36
 
20
37
<h2>NOTES</h2>
21
 
<p>
22
38
 
23
39
If the lines that make up a polyline are of different types, then 
24
 
<i>v.build.polylines</i> will set the type from the first constituent line.  
25
 
<!--
26
 
<i>v.build.polylines </i> will issue a warning unless the flag <b>-q</b> has 
27
 
been set. It is possible to keep a list of all such warnings by redirecting 
28
 
standard output to a file. 
29
 
-->
 
40
<em>v.build.polylines</em> will set the type from the first constituent line.  
 
41
 
30
42
<p>
31
 
 
32
43
Category number(s) are assigned to a polyline based on <b>cats</b> parameter.
33
44
 
34
45
<ul>
35
 
  <li>cats=no - No category number is assigned to a polyline. Also
36
 
  attributes tables linked to the input vector map are not copied to
37
 
  the output vector map.</li>
38
 
  <li>cats=first - Assign to a polyline category number of the first
39
 
line. All linked attributes tables are copied to the output vector map.</li>
40
 
  <li>cats=multi - If the lines that make up a polyline have different category numbers
41
 
    then <em>v.build.polylines</em> will set the multiple catetory numbers to a polyline.
42
 
    Also all linked attributes tables are copied to the output vector map.</li>
 
46
  <li><b>cats=no</b> - No category number is assigned to a
 
47
  polyline. Also attributes tables linked to the input vector map are
 
48
  not copied to the output vector map.</li>
 
49
  <li><b>cats=first</b> - Assign to a polyline category number of the
 
50
first line. All linked attributes tables are copied to the output
 
51
vector map.</li>
 
52
  <li><b>cats=multi</b> - If the lines that make up a polyline have
 
53
    different category numbers then <em>v.build.polylines</em> will
 
54
    set the multiple catetory numbers to a polyline.  Also all linked
 
55
    attributes tables are copied to the output vector map.</li>
43
56
</ul>
44
57
 
45
 
<p>
46
58
<em>v.build.polylines</em> correctly handles <b>input</b> vector maps
47
59
containing lines, boundaries, centroids and points. Lines and
48
60
boundaries will be converted to polylines of the desired type.  Areas
49
61
are only guaranteed to be preserved if the constituent lines of the
50
62
polylines that define them are all boundaries in the input vector map.
51
63
 
52
 
<!-- Points will remain points provided that <b>type</b> has been set to `source'.
53
 
It is possible to convert lines and area edges to points or vice versa, but this 
54
 
is rarely useful.   [type no longer exists, other behaviour still true??] -->
55
 
 
 
64
<!-- Points will remain points provided that <b>type</b> has been set
 
65
to `source'.  It is possible to convert lines and area edges to points
 
66
or vice versa, but this is rarely useful.  [type no longer exists,
 
67
other behaviour still true??] -->
56
68
 
57
69
<h2>ACKNOWLEDGEMENTS</h2>
 
70
 
58
71
This program was originally written during Mark Lake's tenure of a 
59
72
Leverhulme Special Research Fellowship at University College London. 
60
73
 
61
74
<h2>SEE ALSO</h2> 
 
75
 
62
76
<em>
63
 
<a href=v.build.html>v.build</a>,
64
 
<a href=v.in.ascii.html>v.in.ascii</a>,
65
 
<a href="v.split.html">v.split</a>,
66
 
<a href="v.edit.html">v.edit</a>
 
77
  <a href="v.build.html">v.build</a>,
 
78
  <a href="v.in.ascii.html">v.in.ascii</a>,
 
79
  <a href="v.split.html">v.split</a>,
 
80
  <a href="v.edit.html">v.edit</a>
67
81
</em>
68
82
 
69
83
<h2>AUTHORS</h2>
71
85
Major rewrite by Radim Blazek, October 2002<br>
72
86
Category mode added by Martin Landa, FBK-irst, Trento, Italy, October 2007
73
87
 
74
 
<p><i>Last changed: $Date: 2007-10-10 13:49:16 +0200 (mer, 10 ott 2007) $</i>
 
88
<p>
 
89
<i>Last changed: $Date: 2010-10-20 14:11:19 +0200 (Wed, 20 Oct 2010) $</i>