[GRASS-dev] v.lrs.create: milepost order?

Markus Neteler neteler at itc.it
Fri Mar 23 05:08:36 EDT 2007


Hi,

I am trying to set up a LRS. Even, when trying on a simple
line with some points along in an extra map, I don't get it.

v.lrs.create in_lines=route1 points=stops1 out=route1_lrs \
      err=lrs_error lidcol=myroute pidcol=myroute \
      rstable=route1_lrs thresh=45 --o
...
D0/0: MAKE LR: line_idx = 0, nmposts = 4 first_mpost_idx = 0
D0/0: Check order of MPs along the line
D0/0:   point cat = 31 dist_along = 34.460664
D0/0:     start_mp = 0.000000 start_off = 0.000000 end_mp = 0.000000 end_off = 0.000000
WARNUNG: start of 1. MP >= start of 2. MP for points' cats 31, 30
D0/0:   point cat = 30 dist_along = 57.644936
D0/0:     start_mp = 0.000000 start_off = 0.000000 end_mp = 0.000000 end_off = 0.000000
WARNUNG: start of 1. MP >= start of 2. MP for points' cats 30, 29
D0/0:   point cat = 29 dist_along = 343.508577
D0/0:     start_mp = 0.000000 start_off = 0.000000 end_mp = 0.000000 end_off = 0.000000
WARNUNG: start of 1. MP >= start of 2. MP for points' cats 29, 24
D0/0:   point cat = 24 dist_along = 555.688973
D0/0:     start_mp = 0.000000 start_off = 0.000000 end_mp = 0.000000 end_off = 0.000000
WARNUNG: Incorrect order of points along line cat 1
...
-> cats decreasing, dist_along increasing but I have defined the order
   in column start_mp ( 31 = 1, 30 = 2 and so forth)

Using the "v.flip" from the Addons Wiki, it still fails:

...
D0/0: Check order of MPs along the line
D0/0:   point cat = 24 dist_along = 17.078174
D0/0:     start_mp = 0.000000 start_off = 0.000000 end_mp = 0.000000 end_off = 0.000000
WARNUNG: start of 1. MP >= start of 2. MP for points' cats 24, 29
D0/0:   point cat = 29 dist_along = 229.258570
D0/0:     start_mp = 0.000000 start_off = 0.000000 end_mp = 0.000000 end_off = 0.000000
WARNUNG: start of 1. MP >= start of 2. MP for points' cats 29, 30
D0/0:   point cat = 30 dist_along = 515.122211
D0/0:     start_mp = 0.000000 start_off = 0.000000 end_mp = 0.000000 end_off = 0.000000
WARNUNG: start of 1. MP >= start of 2. MP for points' cats 30, 31
D0/0:   point cat = 31 dist_along = 538.306483
D0/0:     start_mp = 0.000000 start_off = 0.000000 end_mp = 0.000000 end_off = 0.000000
WARNUNG: Incorrect order of points along line cat 1


->> cats increasing, dist_along also - should be fine?

A bug or wrong usage?

Markus




More information about the grass-dev mailing list