[GRASSLIST:6477] Re: Maintaining line attributes after building polylines

Hamish hamish_nospam at yahoo.com
Fri Apr 15 01:10:05 EDT 2005


> I have a vector of a lake shoreline that is a series of connected line
> segments that close in on each other to form a graphic polygon, not a true
> polygon. Each line segment has several attributes, including a unique ID. I
> converted the segments into a polygon, or boundary vector type, using
> v.build.polylines. My problem is that none of the attributes exist in my new
> polygon. When queried, I get the map name, mapset, feature type, and area,
> but none of the attributes that previously existed in the individual
> segments. Is there a way to attach the attributes of the old line segments
> to the new polygon? 
> 
> I thought that v.db.connect might help, but as there are no cat numbers  or
> IDs associated with the new boundary feature, so this wouldn't work.


have a look at the script in this post:

  http://grass.itc.it/pipermail/grassuser/2005-April/028570.html


maybe some good clues there.



Hamish




More information about the grass-user mailing list