aboutsummaryrefslogtreecommitdiff
path: root/src/pj_transform.c
AgeCommit message (Collapse)Author
2017-11-23Add description for PJD_ERR_INVALID_ARGThomas Knudsen
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-05-29pj_compare_datums(): fix null pointer dereference.Even Rouault
Can happen when any of the src/dest projection has a +catalog parameter. Fix a memory leak on catalog_name as well. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1799 Credit to OSS Fuzz
2017-05-23pj_transform(): fix segfault when z == NULL and dest defn has a fwd3dEven Rouault
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1794 Credit to OSS Fuzz
2017-05-23Avoid potentially very long loop when normalizing longitudes around ↵Even Rouault
long_wrap_center Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1809 Credit to OSS Fuzz
2017-03-08Fix commentEven Rouault
2017-02-26Fix warnings related to -Wshadow -Wnull-dereference -Wfloat-conversionr ↵Even Rouault
-Wmissing-prototypes -Wmissing-declarations
2017-02-25Fix GCC 7 warnings related to misleading indentations, fallthrough cases and ↵Even Rouault
unused variable
2016-12-12Add a scripts/fix_typos.sh script and correct reported errorsEven Rouault
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-11Portability cleanups for the code in PR #6 (and a few additional source files)Thomas Knudsen
Eliminated mixed code and declarations, converted C++ style comments and probably did a few more things highlighted by running gcc with the "-W -Wall -Wextra -pedantic" flags
2015-10-23- API Extension to include fwd3d / inv3dPiyush Agram
- New SCH coordinate system for radar imaging systems
2015-08-25pj_transform(): fix crash with z == NULL if vertical grid shift is required ↵Even Rouault
(#292)
2015-05-31Remove unused $Id$ keywords.Elliott Sales de Andrade
2011-05-10add support for vunits/vto_meter parameters to specify vertical unitsFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2000 4e78687f-474d-0410-85f9-8d5e500ac6b2
2010-09-20fix vgrid inverse and error handlingFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1904 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
2010-06-11preliminary implementation of projCtx APIFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1854 4e78687f-474d-0410-85f9-8d5e500ac6b2
2010-05-11preliminary addition of vertical datum shifting capabilityFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1839 4e78687f-474d-0410-85f9-8d5e500ac6b2
2010-03-16Rework the translation of nadgrids parameters into a list of gridshift files Frank Warmerdam
to avoid use of static "lastnadgrids" information which screws up multithreading. Changes the PJ structure. git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1831 4e78687f-474d-0410-85f9-8d5e500ac6b2
2010-03-03various improvements to error handling so corrupt grids are reported (#66)Frank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1828 4e78687f-474d-0410-85f9-8d5e500ac6b2
2010-03-01added preliminary support for +axis (#18)Frank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1825 4e78687f-474d-0410-85f9-8d5e500ac6b2
2010-01-24fix seriously broken lon_wrap support (#62)Frank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1789 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
2007-12-03Improve WGS84 ES precision to avoid unnecesary transformation (#1531)Frank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1414 4e78687f-474d-0410-85f9-8d5e500ac6b2
2007-11-26Modified PJ structure to hold a_orig, es_orig, ellipsoid definition beforeFrank Warmerdam
adjustment for spherical projections. Modified pj_datum_transform() to use the original ellipsoid parameters, not the ones adjusted for spherical projections. Modified pj_datum_transform() to not attempt any datum shift via geocentric coordinates if the source *or* destination are raw ellipsoids (ie. PJD_UNKNOWN). All per PROJ bug #1602, GDAL bug #2025. git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1406 4e78687f-474d-0410-85f9-8d5e500ac6b2
2007-09-11mark the transient error array constFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1404 4e78687f-474d-0410-85f9-8d5e500ac6b2
2007-09-11avoid use of static variables to make reentrantFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1403 4e78687f-474d-0410-85f9-8d5e500ac6b2
2006-10-12Added experimental +lon_wrap argument to set a "center point" forFrank Warmerdam
longitude wrapping of longitude values coming out of pj_transform(). git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1353 4e78687f-474d-0410-85f9-8d5e500ac6b2
2006-05-10Don't apply to_meter in pj_transform() if the value is HUGE_VAL.Frank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1336 4e78687f-474d-0410-85f9-8d5e500ac6b2
2006-05-01make out of range errors in geodetic to geocentric a transient errorFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1335 4e78687f-474d-0410-85f9-8d5e500ac6b2
2006-03-20pj_geodetic_to_geocentric returns -14 now for lat out of rangeFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1326 4e78687f-474d-0410-85f9-8d5e500ac6b2
2006-02-17ERANGE/EDOM treated as transient errorsFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1323 4e78687f-474d-0410-85f9-8d5e500ac6b2
2005-12-04use symbolic names as per patch from Martin VermeerFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1315 4e78687f-474d-0410-85f9-8d5e500ac6b2
2004-11-05Fixed pj_geocentric_to_geodetic() to not try and process HUGE_VAL valuesFrank Warmerdam
(those that have failed some previous transform step). Related to bug:5B http://bugzilla.remotesensing.org/show_bug.cgi?id=642 git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1279 4e78687f-474d-0410-85f9-8d5e500ac6b2
2004-10-25make names of geodetic funcs from geotrans uniqueFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1246 4e78687f-474d-0410-85f9-8d5e500ac6b2
2004-05-03Altered so that raw ellpses are treated as a essentially having aFrank Warmerdam
+towgs84=0,0,0 specification so ellpisoid shifts are applied. Fixed so that prime meridian shifts are applied if the coordinate system is not lat/long (ie. if it is projected). This fixes: http://bugzilla.remotesensing.org/show_bug.cgi?id=510 git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1183 4e78687f-474d-0410-85f9-8d5e500ac6b2
2004-01-24pj_transform() will no longer return an error code if any of the points areFrank Warmerdam
transformable. In this case the application is expected to check for HUGE_VAL to identify failed points. As part of the implementation, I added a list of pj_errno values that are transient (ie per-point) rather than indicating global failure for the coordinate system definition. We use this in deciding which pj_fwd and pj_inv error codes are really fatal and should be reported. git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1165 4e78687f-474d-0410-85f9-8d5e500ac6b2
2003-08-21added a bunch of HUGE_VAL checkingFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1155 4e78687f-474d-0410-85f9-8d5e500ac6b2
2003-03-26added check that an inverse transformation func existsFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1121 4e78687f-474d-0410-85f9-8d5e500ac6b2
2002-12-14implement units support for geocentric coordinatesFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1060 4e78687f-474d-0410-85f9-8d5e500ac6b2
2002-12-14added geocentric supportFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1057 4e78687f-474d-0410-85f9-8d5e500ac6b2
2002-12-09added prime meridian supportFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1041 4e78687f-474d-0410-85f9-8d5e500ac6b2
2002-12-01applied fix for 7 param shift in pj_geocentric_from_wgs84, see bug 194Frank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1040 4e78687f-474d-0410-85f9-8d5e500ac6b2
2002-02-15provide default Z array if none passed in in pj_datum_transform()Frank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@994 4e78687f-474d-0410-85f9-8d5e500ac6b2
2001-04-04do arcsecond/radian and ppm datum parm transformation in pj_set_datum()Frank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@922 4e78687f-474d-0410-85f9-8d5e500ac6b2
2001-04-04rewrote 7 param datum shift to match EPSG:9606, now works with exampleFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@920 4e78687f-474d-0410-85f9-8d5e500ac6b2
2000-07-06NewFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@848 4e78687f-474d-0410-85f9-8d5e500ac6b2