Difference between revisions of "Convert lines to areas"

From GRASS-Wiki
Jump to: navigation, search
(new)
 
m (See also)
 
Line 14: Line 14:
 
== See also ==
 
== See also ==
  
 +
* [[Convert vector types]]
 
* [[Convert points to lines]]
 
* [[Convert points to lines]]
  
 
[[Category: FAQ]]
 
[[Category: FAQ]]
 
[[Category: Vector]]
 
[[Category: Vector]]

Latest revision as of 09:23, 29 December 2011

Q: Is there a way to construct a vector polygon map from closed line rings?

A: Yes, to convert a lines map into an area map, do:

Requirement: the line rings must be closed.

  • run v.type to convert from line type to boundary type
  • run v.centroids to add missing centroids to closed boundaries

Example:

 v.type input=map_l output=map_b type=line,boundary
 v.centroids input=map_b output=map_polygons

See also