[GRASS5] Updating PolyLine attributes with Containing Polygons
Allan Metts
ametts2 at mindspring.com
Thu Mar 17 09:08:38 EST 2005
Hi All,
I have a polyline layer in a shape file, and I'd like to populate an attribute of this layer when the polyline is contained in another layer's polygon (i.e., another shape file).
Let me clarify with a hypothetical example: Assume that I have a shape file of streets, and another shape file of city boundaries. In the Streets layer, I'd like to fill in the name of the City for each street that falls within a city boundary. For the streets that fall outside of city boundaries, the City attribute will remain untouched.
I've been experimenting and digging through the GRASS 6 man pages, and I cannot find a straightforward way to do this. Can someone offer any advice?
I don't mind doing a little scripting if that's what it takes.
Thanks in advance,
Allan
More information about the grass-dev
mailing list