[GRASS-dev] latlong problem

Martin Landa landa.martin at gmail.com
Wed Mar 7 08:03:58 EST 2007


Hi,

there is a significant problem in LatLong location. Try the following:

g.region n=80 s=-80 w=-170 e=170 res=1;
v.in.region out=reg;
g.region n=90 s=-90 w=-180 e=180 res=1;
d.erase;d.vect reg
[1] should be [2]

I prepared a simple patch to fix this bug.

I am not sure whether it is OK. Anyway testing "(east1 - east2) > 180"
does not make sense to me... or am I wrong?

Martin

[1] http://gama.fsv.cvut.cz/~landa/.../grass/reg.png
[2] http://gama.fsv.cvut.cz/~landa/.../grass/reg2.png

-- 
Martin Landa <landa.martin at gmail.com> * http://gama.fsv.cvut.cz/~landa *
-------------- next part --------------
A non-text attachment was scrubbed...
Name: plot.c.diff
Type: application/octet-stream
Size: 839 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20070307/99936837/plot.c.obj


More information about the grass-dev mailing list