[GRASS-user] inner and outer buffer for a boundary

Moritz Lennert mlennert at club.worldonline.be
Wed Nov 5 08:25:24 EST 2008


On 05/11/08 13:46, Otto Dassau wrote:
> Hi,
> 
> I tried to create a bufferzone (inner and outer area) around an area boundary
> using following steps (reproduced with spearfish quads data):
> 
> # change boundary to line
> v.type input=quads output=quadsline type=boundary,line
> # remove centroids from line map
> v.edit map=quadsline type=centroid tool=delete cat=1-3
> 
> v.build quadsline
> Erzeuge Topologie ...
> 3 primitives registriert
> Building areas:  100%
> 0 Flächen erstellt
> 0 Inselflächen erstellt
> Füge Inselflächen hinzu:
> Füge Zentroide hinzu:  100%
> Die Topologie wurde erstellt.
> Anzahl von Knoten     :   2
> Anzahl von Primitives :   3
> Anzahl von Punkten    :   0
> Anzahl von Linien     :   3
> Anzahl von Boundaries :   0
> Anzahl von Zentroiden :   0
> Anzahl von Flächen    :   0
> Anzahl von Inseln     :   0
> 
> Now I tried to buffer the lines, but v.buffer does not recognise there are
> lines (and not boundaries) available in the quadslines file:
> 
> v.buffer in=quadsline out=quadsbuffer buffer=1000 
> Toleranz in Karteneinheiten: 10
> Lines buffers...
>  100%
> Areas buffers...
> Building parts of topology...
> Erzeuge Topologie ...
> 0 primitives registriert
> Die Topologie wurde erstellt.
> Anzahl von Knoten     :   0
> Anzahl von Primitives :   0
> Anzahl von Punkten    :   0
> Anzahl von Linien     :   0
> Anzahl von Boundaries :   0
> Anzahl von Zentroiden :   0
> Anzahl von Flächen    :   -
> Anzahl von Inseln     :   -
> [...]
> 
> Is this a bug or do I need another step, so v.buffer finds the existing lines
> and buffers correctly? When I export the quadslines to a line shape and import
> again, v.buffer works as expected.

Sounds like the lines do not have category values associated to them 
(which is done automatically during import), so you probably need to run 
v.category, before running v.buffer.

Moritz


More information about the grass-user mailing list