aboutsummaryrefslogtreecommitdiff
path: root/src/pj_apply_vgridshift.c
AgeCommit message (Collapse)Author
2018-12-26cpp conversion: minimal steps to fix compilation errors, not warningsEven Rouault
2018-05-23Merge branch 'master' into return-nans-quicklyKristian Evers
2018-05-19Vertical grid shift: do not interpolate node values at nodata value (fixes ↵Even Rouault
#1002)
2018-05-15IWYU: Partial PJ_natearth.c..rtodms.cKurt Schwehr
2018-05-08Replace int typecasts with calls to lround to avoid bad conversions on NaN ↵Kristian Evers
input. Added test to check for those cases.
2018-04-23Add isnan() to proj_math.hKristian Evers
Code updated to use isnan() instead of pj_is_nan().
2018-03-23Use pj_is_nan rather than x == x or x != x in pj_apply_vgridshift.c (#894)Kurt Schwehr
2018-03-14Avoid 'duplicateExpression,Same expression on both sides of '!='' false ↵Even Rouault
positive with older cppcheck versions
2018-03-11Remove 'pj_' prefix from static functionsKristian Evers
Functions should only be prefixed with 'pj_' when they can be used in other parts of the code base and not just within a single file. Takes care of the last step in #675.
2017-11-01Resolves several OSS-Fuzz issues: 3944, 3947, 3955.Kristian Evers
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3944 https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3947 https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3955 Credit to OSS-Fuzz.
2017-10-29Refactor grid shift functions.Kristian Evers
This refactoring of the grid shift functions allows for easier access to the actual grid values, as well as making it possible to perform horizontal grid shift on a single coordinate without using the pj_apply_gridshift* functions. The latter simplifies the execution path of the forward and inverse functions in PJ_hgridshift.c. This commit introduces proj_*grid_init, proj_*grid_value and proj_hgrid_apply. The init functions initialises horizontal and vertical grids respectivelive (wrappers for pj_gridlist_from_nadgrids with simpler parameters). The proj_*grid_value functions returns the specific grid value at coordinate lp. The proj_hgrid_apply function applies the grid offset to the input coordinate and outputs the adjusted coordinate.
2017-05-31pj_apply_vgridshift(): avoid integer overflow / read heap-buffer-overflow. ↵Even Rouault
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1950. Credit to OSS Fuzz
2017-02-26Vertical grids: avoid out-of-bounds read on east and south edges (#396)Even Rouault
2016-12-12Add a scripts/fix_typos.sh script and correct reported errorsEven Rouault
2016-02-02GTX grids: ignore shift values whose abs value is > 1000Even Rouault
This partially reverts https://github.com/OSGeo/proj.4/commit/338ea581 (#271) to solve issue with naptrans2008.gtx grid mentioned in http://lists.maptools.org/pipermail/proj/2016-February/007327.html
2015-05-31Remove unused $Id$ keywords.Elliott Sales de Andrade
2015-05-20apply patch from #271 to use GTX null value 88.88880f for vertical shiftsHoward Butler
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2655 4e78687f-474d-0410-85f9-8d5e500ac6b2
2014-09-17fix NTv2 parent relationship problems (#177)Frank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2548 4e78687f-474d-0410-85f9-8d5e500ac6b2
2011-11-18Avoid unused warningsFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2119 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-09-20use pj_log, fix bug with apply_vgridshiftFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1903 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