i transformed my lines into boundaries (v.type) and added than centroids
(v.centroids) to make areas out of them.
GRASS 6.4.0RC5+39438 (BMN):~ > v.type input=FNF output=FNFType
type=line,boundary --overwrite
WARNING: Vector map <FNFType> already exists and will be overwritten
Building topology for vector map <FNFType>...
Registering primitives...
597 primitives registered
1035130 vertices registered
Building areas...
100%
597 areas built
597 isles built
Attaching islands...
100%
Attaching centroids...
100%
Number of nodes: 597
Number of primitives: 597
Number of points: 0
Number of lines: 0
Number of boundaries: 597
Number of centroids: 0
Number of areas: 597
Number of isles: 597
Number of areas without centroid: 597
GRASS 6.4.0RC5+39438 (BMN):~ > v.centroids input=FNFType output=FNFTypeCent
Processing features...
597 new centroids placed in output map
Copying attribute table(s)...
Building topology for vector map <FNFTypeCent>...
Registering primitives...
1194 primitives registered
1035727 vertices registered
Building areas...
100%
597 areas built
597 isles built
Attaching islands...
100%
Attaching centroids...
100%
Number of nodes: 1194
Number of primitives: 1194
Number of points: 0
Number of lines: 0
Number of boundaries: 597
Number of centroids: 597
Number of areas: 597
Number of isles: 597
Number of duplicate centroids: 116
Number of areas without centroid: 116
v.category complete. 597 features modified.
How you can see, there are just green crosses, that means that every
boundary should be closed? Or not?
But why then there are 116 areas without centroid after runnig v.centroids?
How you can see, there are just green crosses, that means that every
boundary should be closed? Or not?
But why then there are 116 areas without centroid after runnig v.centroids?
Because there are also 116 duplicate area centroids. The total number
of centroids is identical to the total number of areas.
You would have to clean the area vector without centroids first with
the tools break,rmdupl, maybe also with rmsa: repeat
tool=break,rmdupl,rmsa until rmsa does no more modifications.
What i need is is a vector-map, where all closed lines are transformed into
areas. As you can see in the screenshot this happens just for some areas,
but not for all areas (see the white ones): http://osgeo-org.1803224.n2.nabble.com/file/n5784297/Screenshot-Map_Display_1-1.png
But why? What can I do to transform all closed lines into areas?
Well, you could try to do it just like done there if you first export
the boundary vector (without centroids) to a shapefile and then
reimport the shapefile using the commands in the links above.
Can't think of anything else to get the overlap of the areas.