[GRASS-dev] [GRASS GIS] #2417: r.profile should report distance in location units
GRASS GIS
trac at osgeo.org
Thu Sep 25 01:20:38 PDT 2014
#2417: r.profile should report distance in location units
--------------------------------+-------------------------------------------
Reporter: annakrat | Owner: grass-dev@…
Type: enhancement | Status: new
Priority: major | Milestone: 7.0.0
Component: Projections/Datums | Version: svn-trunk
Keywords: r.profile, units | Platform: All
Cpu: Unspecified |
--------------------------------+-------------------------------------------
Comment(by neteler):
While we are at it, I checked the entire source code for more "private"
feet definitions, there are some to be fixed:
{{{
[neteler at pgis_north grass71]$ find . -type f | xargs grep 3048 | grep -v
'pristine'
./general/g.setproj/README: feet:foot:0.3048
./general/g.setproj/main.c: G_set_key_value("meters",
"0.30480060960121920243",
./general/g.setproj/main.c: G_set_key_value("meters",
"0.3048", in_unit_keys);
./raster/r.ros/spot_dist.c: h0 = 0.3048 * (1.055 * sqrt(E));
./raster/r.watershed/ram/Gwater.h:#define METER_TO_FOOT (1 /
0.3048)
./raster/r.watershed/seg/Gwater.h:#define METER_TO_FOOT (1 /
0.3048)
./raster/r.shaded.relief/main.c: /* 1 international foot =
0.3048 meters */
./raster/r.shaded.relief/main.c: scale = 1. / 0.3048;
./raster/r.buffer/distance.h:#define FEET_TO_METERS 0.3048
./ps/ps.map/distance.h:#define FEET_TO_METERS 0.3048
./scripts/r.buffer.lowmem/r.buffer.lowmem.py: 'feet': 0.3048,
./vector/v.split/main.c:#define FROM_FEET 0.3048
}}}
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2417#comment:12>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list