aboutsummaryrefslogtreecommitdiff
path: root/src/apps
AgeCommit message (Collapse)Author
2020-04-25projinfo: do not emit warnings about missing grids in quiet modeEven Rouault
2020-01-07projinfo: use No. abbreviation instead of UTF-8 character (fixes #1828)Even Rouault
2019-12-25cct: make it honour PROJ_DEBUG if -v/-vv/-vvv are not specifiedEven Rouault
2019-12-25cct: revise end-of-line handling in logging, and always output debug and ↵Even Rouault
trace messages to stderr
2019-12-25projinfo: no longer call createBoundCRSToWGS84IfPossible() for WKT1:GDALEven Rouault
To align with GDAL 3.0.3 behaviour, no longer automatically try to create a boundCRS to WGS84 when exporting to WKT1:GDAL. The user has to explicitly specify --boundcrs-to-wgs84 if he wishes this behaviour.
2019-12-10ob_tran: restore traditional handling of +to_meter with pj_transform() and ↵Even Rouault
proj utility (fixes #1782) Fixes side-effect of https://github.com/OSGeo/PROJ/issues/1525 that went in 6.1.1 The correction is horribly hacky. Sorry...
2019-11-21Fix typos in code commentsEven Rouault
2019-10-28Various fixes/workarounds to make cppcheck 1.72 (Ubuntu 16.04) and ↵Even Rouault
HEAD/1.90dev happy (fixes #1648)
2019-09-23Document the autopromotion to 3D when mix of 2D/3D CRS in ↵Even Rouault
createOperations(), and test it (fixes #1623)
2019-09-22Update to version 1.50 of the geodesic library.Charles Karney
* Allow arbitrarily complex polygons in geod_polygon_*. In the case of self-intersecting polygons the area is accumulated "algebraically", e.g., the areas of the 2 loops in a figure-8 polygon will partially cancel. * Simplify code by using C99 functions remainder and remquo. * More test coverage. Fixes to associated files: * src/pipeline.cpp invoke geod_init with f = es / (1 + sqrt(1 - es)) instead of (the less accurate) f = 1 - sqrt(1 - es) * src/apps/geod_set.cpp remove "#undef f" (a dangling relic?).
2019-09-18Delete proj_math.h. Replace includes by <math.h>; we'll see if anyoneCharles Karney
needs <limits.h>. Update scripts/reference_exported_symbols.txt and src/proj_symbol_rename.h.
2019-09-13cs2cs: autopromote CRS to 3D when there's a mix of 2D and 3D (fixes #1563)Even Rouault
2019-09-11API: add CRS::promoteTo3D(), proj_crs_promote_to_3D() and ↵Even Rouault
proj_crs_create_projected_3D_crs_from_2D() (fixes #1587) Also add a --3d switch to projinfo
2019-09-08Use in API and utilities WKT2_2019 instead of WKT2_2018 (fixes #1518)Even Rouault
- C API: PJ_GUESSED_WKT2_2019 is added, PJ_GUESSED_WKT2_2018 aliased to it - C API: PJ_WKT2_2019[_SIMPLIFIED] is added, PJ_WKT2_2018[_SIMPLIFIED] alias to it - C++ API: similarly for WKTFormatter::Convention::WKT2_2019[_SIMPLIFIED] Those above changes should be fully backward API and ABI compatible. projinfo changes: - accept WKT2_2019 as value for -o switch. WKT2_2018 is still accepted (undocumented) - output now uses 'WKT2_2019 string:', so might break scripts that would rely on that. Other internal code references to WKT2_2018 changes to WKT2_2019, included in tests.
2019-08-26Add a proj_cleanup() function to free global resources, typically at process ↵Even Rouault
termination
2019-08-20Merge pull request #1547 from rouault/json_exportEven Rouault
Add CRS JSON export (refs #1545)
2019-08-09projinfo: document PROJJSON output, and add single-line output capabilityEven Rouault
2019-08-09createFromUserInput(): add capability to import PROJJSONEven Rouault
2019-08-09projinfo: rename JSON to PROJJSONEven Rouault
2019-07-18Remove obsolete Solaris defineedechaux
sys_errlist has been remove from Solaris 8 and after and is replaced by strerror
2019-07-08CRS JSON: export GeographicCRS and Projected CRSEven Rouault
2019-05-05geos: avoid division by zeroEven Rouault
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14602 Credit to OSS Fuzz
2019-05-03cs2cs: set time value to HUGE_VAL if not explicitly specifiedEven Rouault
2019-04-20proj/cs2cs: validate value of -f parameter to avoid potential crashes (fixes ↵Even Rouault
#124)
2019-04-04Reject negative e parameter to avoid division by zeroEven Rouault
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14044 Credit to OSS Fuzz
2019-04-03Merge pull request #1408 from rouault/ossfuzz_14015Kristian Evers
Fixes Ossfuzz 14015 and gie bug
2019-04-02gie: fix tolerance checkingEven Rouault
When comparing expected result with got result, in the case the distance computation returns NaN, gie incorrectly considered the test to be OK. Adapt / comment out a few broken tests revealed after that fix.
2019-04-02Make sure that ISO19111 C++ code sets pj_errno on errorsKristian Evers
2019-03-29Remove duplicate instances of #include "proj_internal.h"Chris Mayo
Introduced by "Merge projects.h into proj_internal.h" 8ab6f683.
2019-03-27projinfo: caught uncaught exception. Coverity CID 193527Even Rouault
2019-03-27optargpm.h: fix remaining memleak in error code path. Coverity CID 193537Even Rouault
2019-03-27Merge pull request #1373 from rouault/coverity_fixesKristian Evers
Coverity fixes
2019-03-26Merge pull request #1349 from cjmayo/manoptsKristian Evers
Doc: Be consistent in use of +opts
2019-03-26cct.cpp: silence Coverity CID 193526Even Rouault
2019-03-26cct.cpp: silence Coverity CID 193536Even Rouault
2019-03-26cs2cs: remove dead code that would leak memory. Coverity CID 193534Even Rouault
2019-03-26proj/emess: fix null pointer dereference. CID 193533Even Rouault
2019-03-26gie.cpp: silence Coverity CID 193520Even Rouault
2019-03-26optargpm.h: fix memory leaks in error code paths. Coverity CID 193537Even Rouault
2019-03-26projinfo: catch potentially uncaugh exception. Coverity CID 193527Even Rouault
2019-03-25projinfo.cpp: formatting fixEven Rouault
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-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-22Merge pull request #1336 from cjmayo/strerrorKristian Evers
Build: automatically enable system error messages
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-21Add -k ellipsoid option to projinfo (#1338)Nyall Dawson
Allows querying of ellipsoid definitions by auth:code lookup
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-09Allow gie to use proj_create_crs_to_crs (#1314)Kristian Evers
The commands crs_src and crs_dst are introduced to allow operation initialization with proj_create_crs_to_crs. This has the benefit of using proj.db to select the proper operation. Additionally axis order is respected for the coordinate systems that are tested. This is beneficial when running the GIGS test suite for instance.
2019-03-06Make gie return non-zero exit code when file can't be openedKristian Evers
2019-02-26Fix build issues on SolarisEven Rouault