aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2018-03-14geodesic.c: initialize various variables to please CLang Static AnalyzerEven Rouault
2018-03-14cct.c: fix memory leak (spotted by clang static analyzer)Even Rouault
2018-03-14Fix 'Variable 'XXXX' is reassigned a value before the old one has been used' ↵Even Rouault
warnings
2018-03-14Add a few cppcheck suppressionsEven Rouault
2018-03-14Add comment to justify 718495c62ed00d6bf2a60be3b67ecf7e2e8da2d2Even Rouault
2018-03-14fixupEven Rouault
2018-03-14PJ_isea.c: Remove unused structureEven Rouault
2018-03-12Fix 'Consecutive return, break, continue, goto or throw statements are ↵Even Rouault
unnecessary' cppcheck warnings
2018-03-12Fix 'Either the condition 'fromProj!=0' is redundant or there is possible ↵Even Rouault
null pointer dereference: fromProj' cppcheck warning
2018-03-12Fix 'src/nad2bin.c:80,style,arrayIndexThenCheck,Array index 'i' is used ↵Even Rouault
before limits check' false positive cppcheck warning
2018-03-12Fix 'src/pj_internal.c:346,style,unreadVariable,Variable 'n' is assigned a ↵Even Rouault
value that is never used' cppcheck warning
2018-03-12Avoid cppcheck false positive 'Variable 'nadgrids' is assigned a value that ↵Even Rouault
is never used' and make code more readable
2018-03-12PJ_pipeline: remove unused sructure member (spotted by cppcheck)Even Rouault
2018-03-12geodesic.c: fix multiple occurences of 'Clarify calculation precedence for ↵Even Rouault
'&' and '?'' cppcheck warnings
2018-03-12Fix 'src/proj.c:224,style,multiCondition,Expression is always false because ↵Even Rouault
'else if' condition matches previous condition at line 221' cppcheck warning
2018-03-12Fix 'bufferAccessOutOfBounds,Buffer is accessed out of bounds' cppcheck warningsEven Rouault
2018-03-12Fix 'src/cct.c:235,error,resourceLeak,Resource leak: fout' cppcheck warningEven Rouault
2018-03-12Merge pull request #857 from kbevers/return-error-instead-of-zerosKristian Evers
Make sure that transient errors are returned correctly
2018-03-12Make sure to pass any existing errno's on after the coordinate operation is doneKristian Evers
2018-03-11Don't fetch lat_0 value twiceKristian Evers
It is not necessary to read +lat_0 with pj_param in projection setup. It is read by default in pj_init().
2018-03-11Make sure that transient errors are returned correctlyKristian Evers
The prepare/finalize steps in pj_fwd*/pj_inv* now checks the error level of the PJ object before returning the coordinate. If an error is detected proj_coord_error() is returned.
2018-03-11Merge pull request #852 from kbevers/remove-pj_-prefix-from-static-functionsKristian Evers
Remove 'pj_' prefix from static functions
2018-03-11Merge pull request #853 from rouault/typo_fixesKristian Evers
Typo fixes
2018-03-11mingw32 travis: reduce number of iterations for multistresstestEven Rouault
2018-03-11Various typo fixesEven Rouault
2018-03-11typo fix: Rename PJD_ERR_UNKNOW_UNIT_ID as PJD_ERR_UNKNOWN_UNIT_IDEven Rouault
Original mispelled constant kept for backward compatibility.
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.
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-03-11Merge pull request #847 from kbevers/proj_strerrnoKristian Evers
Add proj_errno_string function
2018-03-09Add proj_errno_string functionKristian Evers
Equivalent to pj_strerrno.
2018-03-09Repair PR #845: Scale vertical coords properly. (#848)Thomas Knudsen
Thanks to Bas Couwenberg <sebastic@debian.org> for spotting this horrible bug!
2018-03-09Merge pull request #844 from kbevers/tidy-proj_transKristian Evers
Use consistent names for PJ_COORD's in declarations
2018-03-09Refactor pj_transform, reintroduce support for vertical scaling (#845)Thomas Knudsen
* Refactor pj_transform, reintroduce support for vertical scaling
2018-03-08Use consistent names for PJ_COORD's in declarationsKristian Evers
Changes use of 'PJ_COORD coo' to 'PJ_COORD coord' so that variable names in public function prototypes are consistent. Closes #842.
2018-03-06Remove angle brackets in include proj.hThomas Knudsen
The #include <proj.h> in proj_internal.h has been changed to #include "proj.h" in order to avoid accidentally including an old installed proj.h file while building a new version of libproj.
2018-03-06fix a few typos (again)Mike Toews
2018-03-05Merge pull request #832 from awulkiew/fix/parametersKristian Evers
Improve consistency of parameters
2018-03-05Merge pull request #830 from kbevers/revert-issue-22-fixKristian Evers
Revert fix to #22
2018-03-02Improve consistency of parameters in omerc and tpers projections.Adam Wulkiewicz
2018-03-01Update release date5.0.0Kristian Evers
2018-03-01Revert fix to #22Kristian Evers
The fix in #22 solved the problem at hand and doing what was expected from the specified parameters. Unfortunately it also removed the slightly hacky "feature" that makes the web mercator work in pj_transform. The web mercator is special since the latitude is computed on the ellipsoid, but behaves as if if was defined on a sphere. Hence it is problematic to change the ellipsoid parameters when using the web mercator, even though that is the geodetically correct thing to do. The web mercator is used in more or less any web mapping application and is thus one of the most frequently used transformations in PROJ. This justifies re-introducing the minor bug reported in #22. The problem will have to be taken care of properly when pj_transform is removed from the library in favour of the transformation pipelines based API.
2018-02-24Relax some the tests in geodtest.Charles Karney
This attempts to address the geodtest failures noted in #819. @sebastic can you re-run your tests?
2018-02-23Don't reset errno when skipping tests.Kristian Evers
The error number should not be reset until a new instance of "operation ..." is reached. The ignore-feature initially worked by accident since pj_errno was not being reset when calling proj_errno_reset. This was fixed in #808, which subsequently caused ignored tests to fail.
2018-02-23Merge pull request #816 from cffk/geod-1.49.2Charles Karney
Fix issue #812
2018-02-23Add tests to improve the code coverage.Charles Karney
Now all of geodesic.c is covered except for 3 lines (and 2 of these are intentionally dead code). This corresponds to tag v1.49.2-c in the GeographicLib code base. While testing polygons which encircle the globe multiple times, I uncovered a problem where the range of the area was not reduced to the allowed range (either [0, area0) or (-area0/2, area0/2]) correctly. Since the documentation explicity restricted the calculation of polygon areas to simple polygons, we'll defer fixing this for now. (However the intention was always to handle the area "algebraically" so that, for example, a "bowtie" has zero area. So I will plan on fixing this for 1.50.) Update copyright dates + NEWS.
2018-02-22Fix issue #812Charles Karney
Implement Polygon AddEdge fix in C library (will be version 1.49.2 of C library for proj 5.0.0). Still to do: add tests to expand code coverage. This will only affect geodtest.c which is not part of the compiled library.
2018-02-23Tidy a few typosMike Toews
2018-02-22gie expect: ignore unspecd dims, improve reporting/builtinsThomas Knudsen
In pipelines including a Helmert shift, we need to run the test through the 4D transformation interface, even though the input coordinate system may be 2D. This can be enforced by appending "0 0" to the 2D coordinate pair in the accept instruction, which is sufficiently recognizable to be considered an idiom for selecting 4D. On return, however, (i.e. in the expect instruction), the last dimensions will contain garbage, and this garbage will be compared with "0 0" when computing the deviation. This obviously leads to nonsensical results, which this commit repairs by zeroing all dimensions *not given* in expect, before computing the deviation. Additionally, the test tolerance for geo/cartesian roundtrip precision has been relaxed from picometer to nanometer level. These tests have shown to intermittently bomb, and as the pm level tolerance is probably a leftover from when deviation was computed in degrees, not meter (and hence a factor of 111000 more tight than intended at its introduction) relaxing it by a factor of 1000 makes ample sense. Also, two new features, introduced while debugging this case has been left in the code: - improved reporting, for verbosity levels higher than 2 - a "skip" instruction, forcing all remaining work to be skipped (i.e. run until something strange happens - then stop to handle debugging, while avoiding additional garbage)
2018-02-22horner: support westings/southings in complex caseThomas Knudsen
2018-02-19proj_errno_reset: Also reset pj_errnoRaul Marin