#3274: v.net: allow connecting centroids when using option=arcs
-----------------------------+-------------------------
Reporter: mlennert | Owner: grass-dev@…
Type: enhancement | Status: new
Priority: normal | Milestone: 7.4.0
Component: Vector | Version: unspecified
Keywords: v.net centroids | CPU: Unspecified
Platform: Unspecified |
-----------------------------+-------------------------
v.net with option arcs allows to connect pairs of points with lines.
However it does not allow connecting centroids. From what I can tell the
following small change would allow this:
{{{
Index: vector/v.net/arcs.c
--- vector/v.net/arcs.c (révision 70027)
+++ vector/v.net/arcs.c (copie de travail)
@@ -80,7 +80,7 @@
list = Vect_new_list();
#3274: v.net: allow connecting centroids when using option=arcs
--------------------------+-----------------------------
Reporter: mlennert | Owner: grass-dev@…
Type: enhancement | Status: new
Priority: normal | Milestone: 7.4.0
Component: Vector | Version: unspecified
Resolution: | Keywords: v.net centroids
CPU: Unspecified | Platform: Unspecified
--------------------------+-----------------------------
Comment (by mlennert):
Replying to [ticket:3274 mlennert]:
> v.net with option arcs allows to connect pairs of points with lines.
However it does not allow connecting centroids.
I've just attached a patch that works for me, and that includes user
choice as a parameter. Both op=arcs and op=connect now work with
centroids.
I would appreciate if someone a bit more knowledgeable with the network
libraries could just have a look before I commit...
After some offlist discussions with MarkusM, he convinced me that the need
to convert centroids to points is a good extra step to ensure that users
are conscious about what they are doing, knowing that centroids have
arbitrary coordinates, and their location thus have no real meaning.