[GRASS-user] Calculating distance between 2 point vectors along a line vector

Hi,

given following data :

- data 1 point vector , e.g. sample points along a river
- data 2 point vector, e.g. point pollution Inputs in a river
- data 3 line vector, e. g. rivers or streams

Any ideas how to calculate the distance between the points of data 1 and
data 2 along the vector lines in data 2?

-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Calculating-distance-between-2-point-vectors-along-a-line-vector-tp5241048.html
Sent from the Grass - Users mailing list archive at Nabble.com.

Hi,

v.net.allpairs could be a starting pioint:
https://grass.osgeo.org/grass70/manuals/v.net.allpairs.html

Regards,
Otto

Am Sat, 12 Dec 2015 14:31:48 -0800 (PST)
schrieb Helmut Kudrnovsky <hellik@web.de>:

Hi,

given following data :

- data 1 point vector , e.g. sample points along a river
- data 2 point vector, e.g. point pollution Inputs in a river
- data 3 line vector, e. g. rivers or streams

Any ideas how to calculate the distance between the points of data 1 and
data 2 along the vector lines in data 2?

-----
best regards
Helmut

Otto Dassau-3 wrote

Hi,

v.net.allpairs could be a starting pioint:
https://grass.osgeo.org/grass70/manuals/v.net.allpairs.html

Regards,
Otto

Am Sat, 12 Dec 2015 14:31:48 -0800 (PST)
schrieb Helmut Kudrnovsky &lt;

hellik@

&gt;:

Hi,

given following data :

- data 1 point vector , e.g. sample points along a river
- data 2 point vector, e.g. point pollution Inputs in a river
- data 3 line vector, e. g. rivers or streams

Any ideas how to calculate the distance between the points of data 1 and
data 2 along the vector lines in data 2?

-----
best regards
Helmut

thanks.

after some testing: v.net.distance [1] does the job quite nicely.

- step 1: v.net operation=connect input=line points=samplepoints
output=line_samplepoints node_layer=3

- step 2: v.net operation=connect input=line_samplepoints
points=pollution_points output=line_samplepoints_pollutionpoints
node_layer=4

- step3: v.net.distance input=line_samplepoints_pollutionpoints
output=calculated_distance from_layer=3 to_layer=4

[1] https://grass.osgeo.org/grass71/manuals/v.net.distance.html

-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Calculating-distance-between-2-point-vectors-along-a-line-vector-tp5241048p5241104.html
Sent from the Grass - Users mailing list archive at Nabble.com.

On Sun, Dec 13, 2015 at 9:21 PM, Helmut Kudrnovsky <hellik@web.de> wrote:

after some testing: v.net.distance [1] does the job quite nicely.

- step 1: v.net operation=connect input=line points=samplepoints
output=line_samplepoints node_layer=3

- step 2: v.net operation=connect input=line_samplepoints
points=pollution_points output=line_samplepoints_pollutionpoints
node_layer=4

- step3: v.net.distance input=line_samplepoints_pollutionpoints
output=calculated_distance from_layer=3 to_layer=4

[1] https://grass.osgeo.org/grass71/manuals/v.net.distance.html

If that works, could you turn it into a point pollution example for NC
to be included in the manual page?

... nice to show that v.net.* works for data other than street networks.

thanks,
Markus

Markus Neteler wrote

On Sun, Dec 13, 2015 at 9:21 PM, Helmut Kudrnovsky &lt;

hellik@

&gt; wrote:

after some testing: v.net.distance [1] does the job quite nicely.

- step 1: v.net operation=connect input=line points=samplepoints
output=line_samplepoints node_layer=3

- step 2: v.net operation=connect input=line_samplepoints
points=pollution_points output=line_samplepoints_pollutionpoints
node_layer=4

- step3: v.net.distance input=line_samplepoints_pollutionpoints
output=calculated_distance from_layer=3 to_layer=4

[1] https://grass.osgeo.org/grass71/manuals/v.net.distance.html

If that works, could you turn it into a point pollution example for NC
to be included in the manual page?

... nice to show that v.net.* works for data other than street networks.

thanks,
Markus

done by r67114 and r67115

-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Calculating-distance-between-2-point-vectors-along-a-line-vector-tp5241048p5241191.html
Sent from the Grass - Users mailing list archive at Nabble.com.

On Mon, Dec 14, 2015 at 12:02 PM, Helmut Kudrnovsky <hellik@web.de> wrote:

Markus Neteler wrote

On Sun, Dec 13, 2015 at 9:21 PM, Helmut Kudrnovsky &lt;

hellik@

&gt; wrote:

after some testing: v.net.distance [1] does the job quite nicely.

- step 1: v.net operation=connect input=line points=samplepoints
output=line_samplepoints node_layer=3

- step 2: v.net operation=connect input=line_samplepoints
points=pollution_points output=line_samplepoints_pollutionpoints
node_layer=4

- step3: v.net.distance input=line_samplepoints_pollutionpoints
output=calculated_distance from_layer=3 to_layer=4

[1] https://grass.osgeo.org/grass71/manuals/v.net.distance.html

If that works, could you turn it into a point pollution example for NC
to be included in the manual page?

... nice to show that v.net.* works for data other than street networks.

thanks,
Markus

done by r67114 and r67115

Nice.
I have taken liberty to fix two minor issues in r67120 and r67121
(remove OS specific paths; break long lines).

ciao
Markus