aboutsummaryrefslogtreecommitdiff
path: root/src/rtodms.c
AgeCommit message (Collapse)Author
2016-05-28Change math constants, similar to PR #372. Use M_ namespace with the de ↵Micah Cochran
facto standard M_PI and its ilk. Change names that are widely used in the project to be in the M_ namespace, so HALFPI becomes M_HALFPI. HALFPI is #defined as M_PI_2 (the defacto standard name). #defines _USE_MATH_DEFINES for MS Visual Studio (I didn't personally test this part, but Appveyor will not build otherwise).
2015-10-14Avoid strcpy of overlapping strings.Elliott Sales de Andrade
The source and destination for strcpy must not overlap, and failure to ensure that's true causes a crash on OS X. memmove does not have such a restriction.
2015-08-13Fix the constants used for degree/radian conversions.Charles Karney
In dmstor.c an inaccurate constant was used for pi/180. This meant that 90deg converted to radians and back to degrees gave a result which was larger than 90deg. The constant has been replaced by DEG_TO_RAD (defined in proj_api.h). In rtodms.c, the trailing digits in CONV were wrong; the constant has been truncated so that all the digits are corrent.
2009-01-26remove SCCSID and lint stuff from all source filesFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1515 4e78687f-474d-0410-85f9-8d5e500ac6b2
2006-11-02Fix computation of degree per bug described on the mailing list.Frank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1375 4e78687f-474d-0410-85f9-8d5e500ac6b2
1999-03-18NewFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@776 4e78687f-474d-0410-85f9-8d5e500ac6b2