[GRASSLIST:4858] Re: close vector polylines

Hamish hamish_nospam at yahoo.com
Tue Nov 16 23:20:03 EST 2004


> > I have imported a shape-file with lines and I want to create
> > Polygons from these lines.
> > The lines are arranged in a way that I only need to connect one end
> > of the line with the other end in order to close a polygon.
> >
> > 1. Is there a modul that automizes this task (connecting one end of
> > a line with the other end of the same line)?
> >
> > 2. How can I assign a single Value to the polygons created in the
> > procedure mentioned in 1. ?
>
>   IN GRASS 5.7
> I guess the automatic way to connect your lines is using v.clean
> setting tools=snap, be aware with the thresold value.

yes


> Also with v.digit you could assign a Value to each polygons (I usually
> assign values to centrois).

also 'v.category option=add' and 'd.what.vect -e' (after adding column
with db.execute or v.digit?).


> I'm not sure if all the features are working in the same way on older
> GRASS versions.

probably not.


> But if you are able to create the polygons then you
> could export the file to a shapefile and edit the DBF file with (for
> example) OpenOffice (using tools->Data source).

I think that is more work than is needed, 5.7 should have all the low
level tools.



Hamish




More information about the grass-user mailing list