[GRASS-dev] Vect_get_area_boundaries() and negative ids

Markus Metz markus.metz.giswork at googlemail.com
Fri Jan 20 03:16:22 EST 2012


On Wed, Jan 18, 2012 at 10:50 PM, Martin Landa <landa.martin at gmail.com> wrote:
> Hi,
>
> ids of area boundaries can be negative (N2->N1), I think that
> Vect_get_area_boundaries() should return list of non-negative ids [1].
>
> Vect_list_append(List, abs(line));
>
> Similar for Vect_get_isle_boundaries() or am I wrong?

The sign indicates in which direction the boundary should be read
(negative for backward). Therefore negative ids are correct.

Markus M

>
> Martin
>
> [1] http://trac.osgeo.org/grass/browser/grass/trunk/lib/vector/Vlib/area.c#L192
>
> --
> Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev


More information about the grass-dev mailing list