aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2018-06-19pj_transform.c:projected_to_geographic: Convert literal -17 to ↵Kurt Schwehr
PJD_ERR_NON_CONV_INV_MERI_DIST (#993)
2018-06-18Set error codes in proj_create and proj_create_argvAaron Puchert
When there are no arguments, we set PJD_ERR_NO_ARGS, just like the old API does in that case. On allocation failure we set ENOMEM as usual.
2018-06-15Do not scan past the end of the read data in pj_ctx_fgetsKurt Schwehr
use-of-uninitialized-value third_party/proj4/proj/src/pj_fileapi.c:pj_ctx_fgets Found with autofuzz msan
2018-06-13whitespace cleanup pj_fileapi.cKurt Schwehr
2018-06-08bump version numbers to 5.2.0Kristian Evers
2018-06-08Export proj target to scope visible for test/unit targetMateusz Loskot
Refines #1034
2018-06-07Add googletest 1.8.0 framework in test/googletest, and use it with autoconf ↵Even Rouault
builds only (CMake integration to be done)
2018-06-06Correct bad use of proj_dmstor in gie.Kristian Evers
The previous commits were added way to prematurely. The code was not properly tested and it turned out to do more bad than good. This commit hopefully fixes that. And this time it is backed up by tests! DMS style coordinates should now be fully functional in gie. Finger crossed.
2018-06-06Remove leftover debugging print statementKristian Evers
2018-06-06Merge pull request #1031 from kbevers/gie-read-dmsKristian Evers
Make gie read dms style coordinates
2018-06-05Make gie read dms style coordinatesKristian Evers
proj_strtod doesn't read values like 123d45'678W so we need a bit of help from proj_dmstor. proj_strtod effectively ignores what comes after "d", so we use that fact that when dms is larger than d the value was stated in "dms" form. This could be avoided if proj_dmstor used the same proj_strtod() as gie, but that is not the case (yet). When we remove projects.h from the public API we can change that.
2018-06-04pj_transform.c: Use errno symbols, not numeric literals (#1029)Kurt Schwehr
2018-06-02use modern URL for DOIMike Toews
2018-06-02use shortened URL from StackExchange websitesMike Toews
2018-06-01Do not pivot over WGS84 when doing cs2cs-emulation with geocentKristian Evers
2018-05-31Fix buffer overflow in gie.c:append_args() (#1023)Kurt Schwehr
Observed a buffer overflow in append_args with autofuzz with the strcpy in append_args. I think the +2 is required to account for both a nul char and the space.
2018-05-30Merge pull request #1022 from schwehr/gie-operation-overflowKristian Evers
Ensure that operations are less than MAX_OPERATION long.
2018-05-30Merge pull request #1021 from rouault/add_test_frameworkKristian Evers
Add test framework, C++11 compilation mode and warning fixes
2018-05-30Merge pull request #1018 from schwehr/gie-fprintfKristian Evers
gie T.fout output cleanup
2018-05-30Replace suspicious use of strncat(), despite correct in that particular case ↵Even Rouault
(detected by gcc 8.1)
2018-05-30Fix warnings found by clang with new warning flags to be added in later commitEven Rouault
Fixes consist in: - no use of comma operator for multi statement purpose - avoid confusing comma in for loops first and third clauses - avoid implicit long to int casts by storing to long, or explicit bound checking before cast
2018-05-29Ensure that operations are less than MAX_OPERATION long.Kurt Schwehr
Buffer overflow found with autofuzz.
2018-05-26cct.c: add missing va_end() in error code path (spotted by cppcheck)Even Rouault
2018-05-24Fix libtool versioning, using the proper number for 'age'Kristian Evers
2018-05-24gie T.fout output cleanupKurt Schwehr
- printf -> fprintf in more places - puts -> fprintf - Move list_err_codes to after where T.fout is set This makes fuzzing easier by allowing more of the output to be sent to /dev/null. Found with autofuzz.
2018-05-24Update version numbers for 5.1.0 releaseKristian Evers
2018-05-24Merge pull request #949 from kbevers/return-nans-quicklyKristian Evers
Return NaN coordinate immediately when receiving NaN input
2018-05-24Temporal gridshifting (#1015)Kristian Evers
Temporal gridshifts allow [h|v]gridshift operations to be used as step functions in a pipeline. This is useful in transformations dealing with deformations caused by earthquakes. See the included documentation for details.
2018-05-24Handle double to int typecasts in ISEA betterKristian Evers
Originally the code was doing double to int conversions like y = (int)(x + 0.5) which results in rounding when typecasting. In an earlier attempt to avoid buffer overflows in integer typecasts this was changed to y = lround(x + 0.5) which doesn't give the origial results. We fix that here by instead doing y = lround(x) It is safe to so as long as x is positive.
2018-05-24Merge pull request #1013 from schwehr/proj_strtod_headerKristian Evers
Use proj_strtod.h for proj_strtod and proj_atof
2018-05-23Use proj_strtod.h for proj_strtod and proj_atofKurt Schwehr
2018-05-23Add pj_isnan to proj.def to avoid linking errors for some MSVC versionsKristian Evers
2018-05-23Merge branch 'master' into return-nans-quicklyKristian Evers
2018-05-22Limit the number of round trips to 1 million and check for underflowsKurt Schwehr
Why was fabs applied to ntrips? And why is it parsed as a float? Also add documentation for roundtrip. External rst docs do not match this function.
2018-05-22Horner degree must be a positive integer (#1005)Kurt Schwehr
Found with autofuzz
2018-05-20isea: Use PJ_TODEG and PJ_TORAD (#991)Kurt Schwehr
2018-05-19Partial clean isea defines and includesKurt Schwehr
- Move includes to the top - Move #defines to the top after includes - Get M_PI and DEG90 from projects.h
2018-05-19Merge pull request #1004 from rouault/fix_1002Kristian Evers
Vertical grid shift: do not interpolate node values at nodata value (fixes #1002)
2018-05-19Undef isnan if already defined before redefining it (typically with MSVC)Even Rouault
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-15IWYU: Partial PJ_gstmerc.c..PJ_molodensky.cKurt Schwehr
2018-05-15IWYU: Partial PJ_aitoff.c..PJ_goode.cKurt Schwehr
2018-05-14Partial changes for IWYUKurt Schwehr
2018-05-13ISEA_STATIC -> static (#995)Kurt Schwehr
As this is a part of PROJ, having these functions possibly not static is confusing. Time to declare this is just a part of PROJ.
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-05-08Handle HUGE_VAL input better in fwd and inv functionsKristian Evers
2018-05-08Add round() and lround() to proj_math.hKristian Evers
2018-05-08Add NAN definition to proj_math.hKristian Evers
2018-05-08Merge pull request #989 from kbevers/clang-tidyingKristian Evers
Clang tidying