aboutsummaryrefslogtreecommitdiff
path: root/src/PJ_aitoff.c
AgeCommit message (Collapse)Author
2018-05-15IWYU: Partial PJ_aitoff.c..PJ_goode.cKurt Schwehr
2018-03-11Remove angle brackets for proj headers (#849)Thomas Knudsen
* Avoid using angle brackets for PROJ headers. Switching from #include <proj.h> to #include "proj.h", and correspondingly for projects.h and proj_api.h, reduces the risk of accidentally picking up a system installed older version of the header while building a new version of PROJ. * Also handle geodesic.h
2018-01-09Remove or use unused macrosAaron Puchert
Some macros seemed to be leftover from earlier code, so I removed them. Others seemed like they should have been used, but weren't. There should be no functional change, except the following: in floating- point arithmetic, x / y is not the same as x * (1.0 / y). It can be argued that using the multiplication is significantly faster, and the algorithm is approximative anyway. Otherwise, the constants are obviously not required. Also fixes one location in PJ_aitoff.c, where an enumeration value should have been used.
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-11-06Use enumerations where appropriateAaron Puchert
Enumerations have the following advantages over #define: - they clearly connect a variable and the allowed constants, - the meaning of code is not obfuscated by integer values, - they are visible to the compiler, which can warn about (possibly) incorrect usage. There should be no functional change.
2017-10-12Remove first batch of internal self tests, now moved to builtins.gie:Thomas Knudsen
All projections starting with "a". Replace with stubs returning 10000. The two PJ_apply_?gridhift.c files have not been touched
2017-10-06Enable default destructor for all PJ objects.Thomas Knudsen
In most cases memory deallocation is completely removed from the code since it can be handled by the default destructor. In a few special cases a local destructor overrides the default destructor and makes sure that locally allocated memored is cleaned up correctly. Move all deallocation from pj_free to pj_default_destructor Rename pj_latlong.c to fit with the conventional format PJ_latlong.c - freeup was missed here due to wrong naming Clean up pj_init to avoid double deallocation; Also resolve #576 by adding z_0 and t_0 options in pj_init, while cleaning Add a prototype for dealloc_params Added missing errno.h include in pj_ctx.c Temporarily removing ob_tran from testvarious, to be sure that is where the trouble is Make PJ_ob_tran.c use proper initialization for the chained projection proj=ob_tran: make it clear, that we disallow ellipsoidal projections, and, for improved backwards compatibility, turns off default settings, which could inject unwanted ellipsoid definitions ... then also remove the ellipsoid definition from the testvarious test case - which is probably buggy anyway Work around cs2cs spherical init bug in testvarious; Forbid defs for ob_tran in pj_init
2017-07-18Expanded *_ERROR* macros.Kristian Evers
Expanded *_ERROR* macros with calls to proj_errno_set() and proper returns when necessary. Defined a bunch of new PJD_ERR_ constants in projects.h that corresponds to the error numbers in pj_strerrno.c. A few unknown error numbers were replaced by existing ones in pj_strerrno.c.
2017-06-08Add upper limit to number of iterations for all (documented as such) ↵Even Rouault
computations using Newton-Raphson. Credit to OSS Fuzz
2017-02-26Recent clang (e.g MacOSX) warning fixes related to double to _Bool implicit ↵Even Rouault
conversions
2016-12-18Not using proper spherical earth in tests that use a spherical projection. ↵Kristian Evers
+a replaced with +R
2016-12-12Add a scripts/fix_typos.sh script and correct reported errorsEven Rouault
2016-09-01apply patch for #406 to improve Aitoff performance in some situationsHoward Butler
2016-08-22Changed self-test build behaviour from opt-out to opt-inKristian Evers
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).
2016-05-19Removed a few superfluous assignments and an erroneously committed fileThomas Knudsen
An intermediate file, PJ_etmerc.c, was mistakenly committed in 1b17a573ffb07e9565e0df296e2a3a21bce8e971 P->pfree and P->descr were being identically reinitialized in a few of the first files converted - and in the last: proj_etmerc.c
2016-04-05Added regression tests for projections beginning with a and bThomas Knudsen
Continuing alphabetically, with a few detours due to the occasional case of more than one projection in one source file.
2015-05-31Remove unused $Id$ keywords.Elliott Sales de Andrade
2015-02-21src/PJ_aitoff.c: define M_PI and M_PI_2 (needed for Windows) (from Charles ↵Even Rouault
Karney) git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2623 4e78687f-474d-0410-85f9-8d5e500ac6b2
2015-02-17#250: Inverse solution for Winkel Tripel from Drazan TuticHoward Butler
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2609 4e78687f-474d-0410-85f9-8d5e500ac6b2
2015-02-16revert r2605 due to missing files in the patch #250Howard Butler
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2606 4e78687f-474d-0410-85f9-8d5e500ac6b2
2015-02-16apply patch to add Winkel Tripel Inverse #250Howard Butler
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2605 4e78687f-474d-0410-85f9-8d5e500ac6b2
2013-06-26note that aitoff and wintri projections have no inverse (#160, #168)Frank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2369 4e78687f-474d-0410-85f9-8d5e500ac6b2
2010-06-11roll projCtx through various other low level functionsFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1856 4e78687f-474d-0410-85f9-8d5e500ac6b2
2009-01-06removed CVS log messages since they are not maintained by subversionFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1504 4e78687f-474d-0410-85f9-8d5e500ac6b2
2002-12-14updated headerFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1048 4e78687f-474d-0410-85f9-8d5e500ac6b2
2001-02-07Cleaned up various warnings when compiled with -Wall.Frank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@906 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