[GRASS-dev] r34409: Replace r.buffer with a script using r.grow.distance

Hamish hamish_b at yahoo.com
Fri Nov 21 22:50:22 EST 2008


H:
> > > re. r34409: Replace r.buffer with a script using r.grow.distance
> > > 
> > > I am wondering, does r.grow.distance do the right thing in Lat/Lon?
G:
> > No.
> > 
> > I'll look into adding metric=geodesic, but I'm not entirely certain
> > that it's compatible with the algorithm.
> 
> Done, and modified the r.buffer script to use it.

why add metric=geodesic for lat/lon instead of automatically switching
to geodesic distance if the location is LL? adherence to strict
definition of "euclidean"? is there another word that would cover both?
Eucl. dist in lat/lon doesn't really make any sense to me.


if (strcmp(opt.met->answer, "euclidean") == 0) {
  if (window.proj == PROJECTION_LL)
       G_fatal_error(_("metric=euclidean is not valid for lat/lon"));
  ...
?


> The results appear to be identical to the C version.

good stuff. any reason to keep the C version then?


Hamish



      



More information about the grass-dev mailing list