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?
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
On Wed, Jan 18, 2012 at 10:50 PM, Martin Landa <landa.martin@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@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev
martinl
3
Hi,
2012/1/20 Markus Metz <markus.metz.giswork@googlemail.com>:
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.
OK, I added note to the API manual in r50315.
Martin
--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa