aboutsummaryrefslogtreecommitdiff
path: root/src/proj.c
AgeCommit message (Collapse)Author
2018-01-31Renamed PJ_IO_UNITS_RADIANS to PJ_IO_UNITS_ANGULARThomas Knudsen
2017-12-17Declare non-local variables as const where possibleAaron Puchert
Having non-const variables of static lifetime or even global scope is usually a bad idea. These variables are inherently constants, and this should be enforced. This required marking some functions as not modifying input parameters and marking some pointers as pointers to const. One advantage is that the compiler usually puts const static variables in a read-only code segment, so they can't be modified physically. This can be verified with `nm` (on POSIX systems). To avoid changes to the public API, functions returning non-const pointers to data tables were left intact, but the returned data may not be modified. Internally we prefer using the proj_list_* functions over the pj_get_*_ref functions, because the former return const pointers.
2017-12-11Allow including the new API header in proj.cAaron Puchert
This didn't work before because the elaborate type punning scheme was deactivated by including proj.h. Now we use the type punning from the new API header and build our own. This change is required for #674.
2017-11-15Support numerical factors only (#664)Thomas Knudsen
* Support numerical factors only * Make sure h positive. Improve some comments * Let pole overshoot check have effect even for geocentric latitudes * Factor-typological constants, now all returning false, for backwards compatibility
2017-11-13Removed remaining traces of the built in selftest system (#661)Thomas Knudsen
* Removed remaining traces of the builtin selftest system. Moved all functionality to test/gie * Updated Appveyor and Travis build scripts * Another appveyor script update
2017-10-06Remove superfluous checks for PJ.left being PJ_IO_UNITS_CLASSICThomas Knudsen
2017-09-05proj: Do rad->deg conversion if output units warrants it.Kristian Evers
With the introduction of transformation pipelines it is possible to create a pipeline that has degrees as it's output unit. If that is the case the output coordinate will be in radians internally. This commit makes sure that a conversion to degrees is applied before printing to stdout.
2017-09-05Reformat proj.c before making functional changes.Kristian Evers
Mixed usage of tabs and spaces replaced with spaces. Code slightly reformatted to present a consistent style from top to bottom.
2017-08-21Added myself and Kristian Evers to AUTHORS file; Removed attribution … (#558)Thomas Knudsen
* Added myself and Kristian Evers to AUTHORS file; Removed attribution for my 1999 contribution from proj.c * Add missing lf before eof
2017-07-05Respect -r flag when calling proj with -V. Fixes #184.Kristian Evers
2017-06-22Use *pj_get_errno_ref() instead of pj_errno because it seems pj_errno is not ↵Kristian Evers
set correctly on some versions of VS. Fixes #484.
2017-05-02Fixed spelling error: conpute -> computeKristian Evers
2017-02-26Raise MSVC warning level to /W4Even Rouault
2017-02-26Recent clang (e.g MacOSX) warning fixes related to double to _Bool implicit ↵Even Rouault
conversions
2017-02-26Fix warnings related to -Wshadow -Wnull-dereference -Wfloat-conversionr ↵Even Rouault
-Wmissing-prototypes -Wmissing-declarations
2017-02-25proj: add missing continue for 'V' switch (raised by GCC 7 ↵Even Rouault
-Wimplicit-fallthrough)
2016-12-12Add a scripts/fix_typos.sh script and correct reported errorsEven Rouault
2016-06-10Make proj -VC selftest return exit code of number of test failures.Micah Cochran
2016-04-05Minor correctionsThomas Knudsen
Removed som debugging leftovers, and corrected the behaviour of new proj option -C / -VC, for checking internal regression tests.
2016-04-05Some initial work on internal regression testsThomas Knudsen
Need these to reduce the chance I'm screwing up something during this rather intrusive code surgery
2010-03-03avoid warningsFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1827 4e78687f-474d-0410-85f9-8d5e500ac6b2
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
2007-06-04pj_free() the definition to simplify leak testing.Frank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1399 4e78687f-474d-0410-85f9-8d5e500ac6b2
2006-11-16Fixed VC++ 8.0 warnings.Mateusz Loskot
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1376 4e78687f-474d-0410-85f9-8d5e500ac6b2
2006-10-10 Increase MAX_LINE to 1000 per request from Dan Scheirer.Frank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1352 4e78687f-474d-0410-85f9-8d5e500ac6b2
2004-10-28avoid using global variables from DLLFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1255 4e78687f-474d-0410-85f9-8d5e500ac6b2
2003-03-18dont list latlong, longlat, or geocent for this programFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1111 4e78687f-474d-0410-85f9-8d5e500ac6b2
2002-07-08ensure clean C++ buildsFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1025 4e78687f-474d-0410-85f9-8d5e500ac6b2
2001-08-11disallow +proj=latlong with proj commandFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@969 4e78687f-474d-0410-85f9-8d5e500ac6b2
2000-07-06added -ld option, reformattedFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@847 4e78687f-474d-0410-85f9-8d5e500ac6b2
2000-07-04added patches from Thomas Knudsen to fix binary file io on DOS/WindowsFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@844 4e78687f-474d-0410-85f9-8d5e500ac6b2
2000-03-21changed UV to projUVFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@782 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