[GRASS-dev] [grass-code I][511] v.segment: fails to process segment
if it's located exactly at the end of the input line
grass-dev at grass.itc.it
grass-dev at grass.itc.it
Fri Oct 12 11:04:41 EDT 2007
code I item #511, was opened at 2007-10-12 17:04
Status: Open
Priority: 3
Submitted By: Maciej Sieczka (msieczka)
Assigned to: Nobody (None)
Summary: v.segment: fails to process segment if it's located exactly at the end of the input line
Issue type: module bug
Issue status: None
GRASS version: CVS HEAD
GRASS component: vector
Operating system: all
Operating system version:
GRASS CVS checkout date, if applies (YYMMDD): 071012
Initial Comment:
The input offsets for v.segment are as following:
$ cat offsets
P 1 1 0
P 5 1 4.6981381500000001
P 10 1 10.440307
v.segment refuses to process the last offset, saying it's not on the input line, while it falls exactly at the of the line:
$ cat offsets | v.segment llayer=1 input=line_cat output=line_cellcnt
WARNING: Cannot get point on line: cat = 1 offset = 10.440307 (line length
= 10.440307)
P 10 1 10.440307
Building topology ...
2 primitives registered
Building areas: 100%
0 areas built
0 isles built
Attaching islands:
Attaching centroids: 100%
Topology was built.
Number of nodes : 2
Number of primitives: 2
Number of points : 2
Number of lines : 0
Number of boundaries: 0
Number of centroids : 0
Number of areas : 0
Number of isles : 0
3 points read from input
2 points written to output map (1 lost)
0 lines read from input
0 lines written to output map (0 lost)
----------------------------------------------------------------------
You can respond by visiting:
http://wald.intevation.org/tracker/?func=detail&atid=204&aid=511&group_id=21
More information about the grass-dev
mailing list