[GRASS-user] Re: v.breach addon

Maciej Sieczka msieczka at sieczka.org
Tue Dec 15 12:24:59 EST 2009


M S pisze:
> Kubuntu 9.10 64bit, using GRASS 6.5.
> 
> I ran v.breach on a stream network extracted with r.stream.extract.
> It runs through the program, and puts up an error dialogue at
> v.parallel.  Attached is the log file.  It looks like a negative
> number is being passed to v.parallel.  I saw in the documentation this
> might be a problematic module in the script for non-metric coordinate
> system.  Below is the portion of the output box from the module.  Note
> the error 11 lines down.
> 
> -------------------------------------------------------
> Building topology for vector map <breach_pt_segm_2l_r_tmp_5636_0_v_breach_sh>...
> Registering primitives...
> 100 primitives registered
> 259 vertices registered
> Building areas...
> 0 areas built
> 0 isles built
> Attaching islands...
> Attaching centroids...
> Number of nodes: 100
> ERROR: value <-0.00001> out of range for parameter <distance>
> Number of primitives: 100
> Number of points: 0
> Number of lines: 100
> Number of boundaries: 0
> Number of centroids: 0
>        Legal range: 0-100000000
> Description:
>  Creates parallel line to input vector lines.
> Keywords:
>  vector, geometry
> -------------------------------------------------------
> 
> Should I look in the script for this portion, and check if it is a
> metric issue? or does this seem like a different problem?

A different one. v.parallel used to accept negative offsets to 
distinguish left/right. Now (after v.parallel2 replaced it) it doesn't 
accept negative offsets anymore.

Maciek

> 2009/12/14 Maciej Sieczka <msieczka at sieczka.org>:
>> Luís Ferreira pisze:
>>> I used v.breach with both SQLite and dbf, with ETRS89 metric negative
>>>  coordinates, from 20m to 2m resolution and worked fine.
>>>
>>> System: Ubuntu 9.10 Karmic Koala, 64 bits, GRASS 6.4SVN.
>>>
>>> But I remember to see some warnings like yours. Are these warnings
>>> critical? Visually, the interpolated DEMs with v.surf.rst are
>>> coherent.
>> I'll let you know next time I take a hobbyist look at v.breach. But I
>> really don't know when it will be.
>>
>> Good luck.
>>
>> Maciek
>>
>>> On Mon, 2009-12-14 at 04:57 +0100, Maciej Sieczka wrote:
>>>
>>>> @Luís: I applied most your of patch. Thanks! Are you sure that's
>>>> all errors? I keep on getting warnings like:
>>>>
>>>> WARNING: Unable to get point on line: cat = 1 offset = 2.831711
>>>> (line length = 0)
>>>>
>>>> at v.segment calls in the script, and a crash at v.in.ascii.
>>>
>>>
>>>
>>
>> --
>> Maciej Sieczka
>> http://www.sieczka.org
>>
>> _______________________________________________
>> grass-user mailing list
>> grass-user at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/grass-user
>>


-- 
Maciej Sieczka
http://www.sieczka.org



More information about the grass-user mailing list