On 22/03/2012 09:31, Pierluigi wrote:

Thanks micha
So can I attach the attribuite table from the first vector to the error point vector?


What you'll have to do, as Lee pointed out [1] is use the v.distance module to upload values from each of the line vectors to the new (errors) point vector. So it will be something like:


# setup columns in the point vector

v.db.addcol intersection_pts columns="line1_attr1 double, line1_attr2 text, line2_attr1 double, line2_attr2 text ...."

# upload attributes from one of the line vectors

v.distance from=intersection_pts to=line1 upload=to_attr to_column=attr1 column=line1_attr1


and so on for each attribute from each of the original lines.


HTH,

Micha


[1] http://lists.osgeo.org/pipermail/grass-user/2012-March/064069.html



Il giorno 21/mar/2012, alle ore 19:05, Micha Silver <[email protected]> ha scritto:

On 03/21/2012 06:46 PM, Pierluigi De Rosa wrote:
Hi

I'm looking for a procedure to get a point vector obtained as
intersection of two vector layer.

You can do this with a two step procedure. First patch the two line vectors together with v.patch. Then run v.clean using the "error=..." option. It's not so intuitive, but the "errors" output vector holds the topology "errors". In the case of patching two line vectors, this will be all the intersection points that v.clean creates when building topology. (Note that it's theoretically possible that the two vectors will have an intersection exactly on a node, and then this node will not be in the errors output vector. But if the line vectors are independant, this is highly unlikely)

I want to have the same output of v.overlay (option and) but for two
line vector. So I need as geometry points located exactly at the
intersection of two layers and attribute table as spatial joint of the
two attribute table.

This method will find the intersections between the two line vectors, but it *does not* combine the attribute tables. Only the attribs from the first table listed in v.patch are included.
HTH,
MIcha

does anyones have ideas?
Thanks
Pierluigi

                                    
________________________________________________________________________
Ing. Pierluigi De Rosa (PhD)
Studio Associato GFOSSERVICES

_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user

This mail was received via Mail-SeCure System.




-- 
Micha Silver
GIS Consultant, Arava Development Co.
http://www.surfaces.co.il


This mail was received via Mail-SeCure System.


_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to