[GRASS-dev] r.water.outlet for lat/lon

Andy Wickert wickert at colorado.edu
Sat Jul 2 14:39:02 EDT 2011


Hi there,

Just had a long chat with myself on grass-user in which I eventually figured
out that r.water.outlet would need an extra line added to work with lat/lon
grids that involved the 180 meridian wraparound. The modification to main.c
is (with surrounding lines for context) is:

G_usage();
exit(EXIT_FAILURE);
    }

  E = G_adjust_east_longitude(E,window.west); // <-- NEW LINE; for using
lat/lon data that straddle the 180 meridian

    if (E < window.west || E > window.east || N < window.south ||
N > window.north) {

Along with this, should the HTML help be updated to not just say
"northing/easting" for pour point locations, but also say "lat/lon"?

Andy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-dev/attachments/20110702/56a2e43c/attachment.html


More information about the grass-dev mailing list