[GRASS-dev] [GRASS GIS] #2417: r.profile should report distance in location units
GRASS GIS
trac at osgeo.org
Sat Sep 20 18:05: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 annakrat):
Replying to [comment:7 neteler]:
> I have created a patch (attached) which introduces US_USFEET as
suggested years ago
> by Glynn. It contains one TODO where I don't know how to distinguish the
special
> State Plane feet case. How to do that properly? with PROJECTION_SP_USF?
It seems that the PROJECTION_SP is not recognized anyway
[http://trac.osgeo.org/grass/browser/grass/trunk/lib/proj/convert.c#L303
see GPJ_osr_to_grass]. I attached a fixed patch, r.profile seems to report
units now correctly (tested with
[http://courses.ncsu.edu/mea582/common/media/01/nc_spf.zip nc_spf
location]).
>
> TODO: GS_geodistance() in ogsf/GS_util.c comes with hardcoded values!
> Instead G_meters_to_units_factor() should be used, stuff to be merged.
This function is not used (but it should be merged anyway).
If there are no objections, I will commit it.
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2417#comment:8>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list