[GRASS-user] intersection between two lines vector to obtain
points
Daniel Lee
lee at isi-solutions.org
Wed Mar 21 18:34:12 EDT 2012
Hi there,
Am 21. März 2012 19:05 schrieb Micha Silver <micha at arava.co.il>:
> 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.
>
Afterwards you could also use v.distance to grab the attributes from the
second table. The manual for v.distance has some examples that could be
used almost 1-1.
Cheers,
Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20120321/4fe6ec5d/attachment.html
More information about the grass-user
mailing list