[GRASS-dev] Re: [GRASS GIS] #343: standardize DEG2RAD() etc
GRASS GIS
trac at osgeo.org
Wed Oct 22 00:29:03 EDT 2008
#343: standardize DEG2RAD() etc
----------------------+-----------------------------------------------------
Reporter: hamish | Owner: grass-dev at lists.osgeo.org
Type: task | Status: new
Priority: minor | Milestone: 6.4.0
Component: default | Version: svn-develbranch6
Resolution: | Keywords:
Platform: All | Cpu: All
----------------------+-----------------------------------------------------
Comment (by hamish):
Replying to [ticket:343 hamish]:
> #define DMS2DD(d,m,s) ((d) + ((m) / 60.0) + ((s) / 3600.0))
>
> - DMS2DD bug: if deg is negative (45:30S) -> -45 + .5 = -44.5
nope, out->n_s is stored separately from out->lat in m.cogo.
This is easy to forget, so dangerous to put in gis.h in hindsight.
Hamish
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/343#comment:1>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list