[GRASS-dev] Vect_line_buffer tolerance setting

Maris Nartiss maris.gis at gmail.com
Sun May 18 03:22:26 EDT 2008


Thanks Hamish, Росен.

Unfortunately this is a quite big problem for GRASS if nobody from
-dev ML can not explain how GRASS internal stuff works :(
I hope You, Росен, will spend some time to add comments and examples
to existing vector lib functions to make them more non-ūbercoder
friendly.

On Spearfish example that I used to test my initial version of my
module I managed to get "flat" buffer ends instead of "round caps" by
setting tolerance to 1000. Still I have no idea why it works and how
large should tolerance value bee for other buffer sizes/locations. I
will take a look on Vect_line_parallel solution as it will be not so
hackish.

Thanks for hints!
Maris.

2008/5/18 Hamish <hamish_b at yahoo.com>:
> Maris:
>> I was going to use Vect_line_buffer function but was unable to
>> understand it's tolerance parameter. Could somebody
>> extend a bit documentation to make it more clean what does it mean.
>
> I am not 100% sure,
>
>> For my module I need to create buffer around line without any "round
>> caps" at line end -> buffer must look like square and not extend
>> beyond input line end. Ideas how to tweak tolerance setting
>> to get such functionality out of Vect_line_buffer?
>
> maybe 'v.parallel distance=' for both left and right side of line?
>
> or v.segment / v.lrs.segment with offset.
>
>
> Hamish
>
>
>
>
>
>


More information about the grass-dev mailing list