Difference between revisions of "Convert vector types"

From GRASS-Wiki
Jump to: navigation, search
(v.category)
 
m (See also)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''Q:''' I want to change closed lines into areas. I tried to convert lines into boundaries with v.type, but now, how to add centroids to turn them into areas?
+
'''Q:''' I want to change closed lines into areas. I tried to convert lines into boundaries with {{cmd|v.type}}, but now, how to add centroids to turn them into areas? The lines look as follows. In {{cmd|v.digit}}:
  
'''GRASS 6:'''
 
  
* Run v.category:
+
[[Image:V_digit.png]]
  
    v.category in=boundaries out=areas option=add
+
 
 +
'''A:''' Run {{cmd|v.centroids}} to add centroid(s).
 +
 
 +
== See also ==
 +
 
 +
* [[Convert points to lines]]
 +
* [[Convert lines to areas]]
  
 
[[Category:FAQ]]
 
[[Category:FAQ]]
 +
[[Category:Vector]]

Latest revision as of 08:59, 29 December 2011

Q: I want to change closed lines into areas. I tried to convert lines into boundaries with v.type, but now, how to add centroids to turn them into areas? The lines look as follows. In v.digit:


V digit.png


A: Run v.centroids to add centroid(s).

See also