aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2019-03-25pj_strerrno: enable system error messagesChris Mayo
HAVE_STRERROR is defined in proj_config.h.
2019-03-25Database: add operation_version column to coordinate operation tablesEven Rouault
2019-03-25WKT2_2018: always export ID of SOURCECRS/TARGETCRS and STEPsEven Rouault
even if there is one on upper node This is a particular logic allowed by paragraph 7.3.3 Identifier of OGC 18-010r6
2019-03-25WKT2_2018: always export ID in base crs node, even if there is one on upper nodeEven Rouault
This is a particular logic allowed by paragraph 7.3.3 Identifier of OGC 18-010r6
2019-03-25WKT2_2018: export ID in base crs node, when there is none on top of upper nodeEven Rouault
This is the standard logic, that is now possible since ID is allowed in BASEGEOGCRS and similar node
2019-03-25crs.cpp: remove non-intented (harmless here) pass by reference of a pointerEven Rouault
2019-03-25projinfo.cpp: formatting fixEven Rouault
2019-03-25Merge pull request #1360 from rouault/update_parser_to_ogc_18_010r6Kristian Evers
WKT2 parser: update to OGC 18-010r6
2019-03-25Merge pull request #1359 from rouault/fix_ossfuzz_13892_and_othersKristian Evers
Fix ossfuzz 13892, 13893, 13894, 13895
2019-03-24Merge pull request #1358 from rouault/fix_ossfuzz_13891Kristian Evers
Fix ossfuzz 13891
2019-03-24WKT2 parser: update to OGC 18-010r6Even Rouault
- Allow ID[] in base CRS of Derived CRS - Allow VERSION[] in non-conversion coordinate operations - Use VERSION[] to set operationVersion member of CoordinateOperation - Export operationVersion in WKT2:2018
2019-03-24stere: avoid division by zeroEven Rouault
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13895 Credit to OSS Fuzz
2019-03-24vandg inverse: avoid division by zeroEven Rouault
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13894 Credit to OSS Fuzz
2019-03-24tmerc inverse: avoid division by zeroEven Rouault
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13893 Credit to OSS Fuzz
2019-03-24lcc: avoid division by zeroEven Rouault
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13892 Credit to OSS Fuzz
2019-03-24urm5: avoid division by zeroEven Rouault
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13891 Credit to OSS Fuzz
2019-03-24strerrno.cpp: fix inverted messages for PJD_ERR_LAT_1_OR_2_ZERO_OR_90 and ↵Even Rouault
PJD_ERR_LAT_0_OR_ALPHA_EQ_90
2019-03-24Merge pull request #1355 from kbevers/cs2cs-4dKristian Evers
Make cs2cs support 4D coordinates.
2019-03-24Doc: consistently use +opt and bracketsChris Mayo
+opt represents one parameter. An ellipsis indicates additional instances of the previous parameter may be given. Spaces are used between parameters and before an ellipsis, not purely to format brackets. See man(1) SYNOPSIS conventions.
2019-03-24isea: really fix integer overflow of ↵Even Rouault
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2390
2019-03-24Make cs2cs support 4D coordinates.Kristian Evers
This is a bit of a hack, 4D coordinates *will* be written to STDOUT but the output format speficied with -f is not respected for the t component, rather it is forward verbatim from the input. Fixes #1354
2019-03-23Fix GCC 9 warning about useless std::move()Even Rouault
2019-03-22Really fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2390Even Rouault
2019-03-22Merge pull request #1345 from cjmayo/proj_configKristian Evers
strtod.cpp: remove support for no proj_config.h
2019-03-22Merge pull request #1336 from cjmayo/strerrorKristian Evers
Build: automatically enable system error messages
2019-03-21strtod.cpp: remove support for no proj_config.hChris Mayo
The nmake build system has been dropped in favour of CMake which is used to create proj_config.h.
2019-03-21Build: automatically enable system error messagesChris Mayo
Define HAVE_STRERROR during configuration. Before: $ cs2cs +proj=latlong +to +proj=latlong dummy <cs2cs>: Sys errno: 2: <system mess. texts unavail.> dummy After: $ cs2cs +proj=latlong +to +proj=latlong dummy <cs2cs>: Sys errno: 2: No such file or directory dummy
2019-03-21aea: avoid division by zeroEven Rouault
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13827 Credit to OSS Fuzz
2019-03-21Add -k ellipsoid option to projinfo (#1338)Nyall Dawson
Allows querying of ellipsoid definitions by auth:code lookup
2019-03-20lcc: avoid division by zeroEven Rouault
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=12935 Credit to OSS Fuzz
2019-03-20isea: detect various int overflows and div by zeroEven Rouault
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2199 https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2241 https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2390 https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7674 Credit to OSS Fuzz
2019-03-20ob_tran: detect potential recursionEven Rouault
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=12266 Credit to OSS Fuzz
2019-03-20pj_calc_ellipsoid_params(): reject f=1Even Rouault
To avoid division by zero of b. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13830 Credit to OSS Fuzz
2019-03-20laea: error out if |lat_0|>90Even Rouault
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13829 Credit to OSS Fuzz
2019-03-20imw_p: prevent division by zero in inverse pathEven Rouault
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13828 Credit to OSS Fuzz
2019-03-20sterea: prevent division by zeroEven Rouault
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13790 Credit to OSS Fuzz
2019-03-19Merge pull request #1330 from mwtoews/cmakeKristian Evers
Normalize CMake with cmakelint, 2-space indent
2019-03-19proj_create_crs_to_crs: better deal with coordinates outside of bbox (fixes ↵Even Rouault
#1329) In case several coordinate operations are returned for a CRS to CRS transformation, we currently determine the one to use by selecting the first operation whose bounding box contains the input point. This commit adds a fallback case where after doing that first iteration and finding no appropriate candidate, we try again by selecting the first operation available that does not involve grid based transformations.
2019-03-19Doc: impove doc about OGC URNEven Rouault
2019-03-19Normalize CMake with cmakelint, 2-space indentMike Taves
2019-03-17Fix some issues raised by latest cppcheckEven Rouault
- coordinateoperation_internal.hpp: missing 'explicit' keyword - proj.cpp: unused 'generic' member in enumeration - init.cpp: useless assignment to a_orig and es_orig, because done again a few lines below. - crs.cpp: unused variable - datum.cpp: inefficient use of find() function - io.cpp: * missing 'static' qualifier for method * useles ternary test (left and right have same value) - aeqd.cpp: useless assignment of inv and fwd, snice done again a few lines below - isea.cpp: useless assignment of resolution and aperture since done again a few lines below, and with default values when params are absent - mod_ster.cpp: useless assignment of lp.lam, overriden in below code paths. - stere.cpp: false positive, but better not modify another variable than the iterator in a for() loop.
2019-03-17Merge pull request #1326 from rouault/fix_1323Kristian Evers
createOperation(): fix geocent <--> nadgrids+geoidgrids case (fixes #1323)
2019-03-17Merge pull request #1322 from rouault/ossfuzz_fixesKristian Evers
Various ossfuzz fixes
2019-03-16createOperations(): fix nadgrids -> nadgrids+geoidgridsEven Rouault
2019-03-16createOperations(): fix nadgrids+geoidgrids -> nadgrids+geoidgridsEven Rouault
2019-03-16createOperation(): fix geocent <--> nadgrids+geoidgrids case (fixes #1323)Even Rouault
2019-03-16Merge pull request #1324 from kbevers/molodensky-eccentricityKristian Evers
Use 1st eccentricity instead of 2nd eccentricity
2019-03-16Run scripts/reformat_cpp.shEven Rouault
2019-03-16Fix doc generation with Breathe 4.12.0Even Rouault
Breathe 4.12.0 (as pulled by MacOSX builds such as https://travis-ci.com/OSGeo/proj.4/jobs/185395222) does not seem to like default initialization in documented C++ structs (regression/bug) /Users/travis/build/OSGeo/proj.4/docs/source/development/reference/cpp/io.rst:6:Parsing of expression failed. Using fallback parser. Error was: Error in postfix expression, expected primary expression or type. If primary expression: Invalid definition: Expected identifier in nested name. [error at 67] std::string osgeo::proj::io::AuthorityFactory::CRSInfo::authName = {} -------------------------------------------------------------------^ If type: Invalid definition: Expected identifier in nested name. [error at 67] std::string osgeo::proj::io::AuthorityFactory::CRSInfo::authName = {} -------------------------------------------------------------------^
2019-03-16Use 1st eccentricity instead of 2nd eccentricityKristian Evers
By mistake the second eccentricity was used in a few places in the Molodensky transform. According to the literature the first eccentricity should always be used in the eccentricity. This only affects the output slightly. Reported test coordinates differed by less than a millimeter. Fixes #1321