aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-09-23Merge pull request #1630 from snowman2/promoteKristian Evers
promote proj_assign_context to proj.h from proj_experimental.h
2019-09-22promote proj_assign_context to proj.h from proj_experimental.hsnowman2
2019-09-22Merge pull request #1629 from cffk/geod-1.50Charles Karney
Update to version 1.50 of the geodesic library.
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-22Merge pull request #1626 from cffk/vs-version-checkCharles Karney
Improve Visual Studio compatibility check in CMake.
2019-09-22Merge branch 'master' into vs-version-checkCharles Karney
Incorportate fix to travis/linux_gcc/before_install.sh
2019-09-22Merge pull request #1627 from ↵Even Rouault
rouault/fix_linux_gcc_config_wrt_sphinxontrib_bibtex Travis linux_gcc: force sphinxcontrib-bibtex version to avoid issue with installing sphinx >= 2.0
2019-09-22Travis linux_gcc: force sphinxcontrib-bibtex version to avoid issue with ↵Even Rouault
installing sphinx >= 2.0
2019-09-22Revert travis change -- it didn't work.Charles Karney
2019-09-21Manually install sphinxcontrib-bibtex for travis/linux_gcc to resolve travis ↵Charles Karney
error
2019-09-21Back out of previous commit mistakenly pushed to masterCharles Karney
2019-09-21Manually install sphinxcontrib-bibtex for travis/linux_gcc to resolve travis ↵Charles Karney
error
2019-09-21Improve Visual Studio compatibility check in CMake.Charles Karney
Make the setting of major toolset version variables parallel that for cross-compilation. Add comments so it's easier for the next person looking at this code to figure what's going on. Note: no need to unset variables at the end of the version check file (the file is read in a nested scope).
2019-09-20Merge pull request #1625 from hobu/cmake-proj_lib-testsKristian Evers
set PROJ_LIB on test targets for CMake
2019-09-19Merge pull request #1624 from cffk/c99-upgradeCharles Karney
Require C99 compiler see #1621
2019-09-19address PR commentsHoward Butler
2019-09-19set PROJ_LIB on test targets for CMakeHoward Butler
2019-09-19Require C99 compiler see #1621Charles Karney
cmake and autoconf now stipulate C99 change c89 to c99 in travis jobs remove HAVE_C99_MATH checks (unrelated) relax Visual Studio compatibility check in cmake/project-config-version.cmake.in (VS 2019 can use a VS 2015 library but not vice versa).
2019-09-19Merge pull request #1618 from cffk/c99-math-updateCharles Karney
Remove unneeded C99 compatibility functions from math.cpp and proj_math.h I'll do the clean up of the -std=c89 flags etc. as a separate pull request.
2019-09-18Manually delete pj_isnan in scripts/reference_exported_symbols.txt.Charles Karney
Evidently the order of entries matters and the order might depend the platform used to create libproj.so
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-18math.cpp removed since its isnan isn't used. Keep proj_math.h (whichCharles Karney
just includes math.h and limits.h) since it's included in a score of places.
2019-09-18Get rid of dead code. The end result of this chain of commits is toCharles Karney
eliminate most of math.cpp. All that is left is the handling of isnan (and I've this because math.cpp notes that gie.c uses pj_isnan). geodesic.c now handles supplying C99 math functions internally and this can go away once C99 support is mandated.
2019-09-18Merge pull request #1620 from rouault/ossfuzz_17190_and_othersEven Rouault
Assorted set of fixes for boring oss-fuzz related errors (mostly divisions by zero in odd situations)
2019-09-18Let geodesic.c use its own versions of C99 math functions if necessary.Charles Karney
2019-09-18Try removing C99 math functions from math.cpp (but leave isnan).Charles Karney
2019-09-17ell_set.cpp: avoid division by zero in R_lat_a case. Fixes ↵Even Rouault
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16130
2019-09-17helmert: validate scale parameter to avoid later division by zero. Fixes ↵Even Rouault
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16106
2019-09-17aea_e_inverse(): avoid calling asin() with invalid argument which results in ↵Even Rouault
NaN being propagated. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=15336
2019-09-17pj_Convert_Geocentric_To_Geodetic(): avoid division by zero on weird input ↵Even Rouault
coordinates and ellipsoid values. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=15148&
2019-09-17isea: avoid undefined behaviour on left shift of negative value. Fixes ↵Even Rouault
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=15009
2019-09-17pj_Convert_Geocentric_To_Geodetic(): avoid division by zero on weird input ↵Even Rouault
coordinates and ellipsoid values. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14766
2019-09-17standard_fuzzer.cpp: tweak to be able to compile it against libproj.soEven Rouault
2019-09-17geos: avoid division by zero. Fixes ↵Even Rouault
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14666
2019-09-17eqdc: avoid potential division by zero. Fixes ↵Even Rouault
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=17190
2019-09-17Fix floating-point number into integer warning in math.cppCharles Karney
2019-09-17Fix typo in geodesic.cCharles Karney
2019-09-17Add atanh, copysign, cbrt, remainder, remquo to math.cpp.Charles Karney
The supported C99 math functions provided by math.cpp are thus hypot log1p asinh atanh copysign cbrt remainder remquo round lround Make compiler checks in CMakeLists.txt and configure.ac consistent with this set. Make geodesic.c use the math.cpp defined (instead of the internally defined) versions of hypot atanh copysign cbrt This is keyed off the presence of the PROJ_LIB macro. I had at one time https://github.com/OSGeo/PROJ/pull/1425 suggested supplying an additional macro PROJ_COMPILATION when compiling geodesic.c. However, PROJ_LIB seems to fill the bill OK. The *next* version of geodesic.c (due out in a few weeks) will also use remainder remquo All of this is only of concern for C compilers without C99 support. So this may become an historical footnote at some point.
2019-09-17Update link to Austrian grid files. Fixes #1546Kristian Evers
2019-09-16Merge pull request #1582 from rschmunk/patch-1Kristian Evers
Debug Bertin1953
2019-09-16Update doc image for bertin1953Kristian Evers
2019-09-15Merge pull request #1614 from rouault/fixes_related_to_1597Kristian Evers
Fixes related to #1597
2019-09-15testdatumfile: fix axis order issue in testEven Rouault
2019-09-15Merge pull request #1611 from rouault/fix1563Even Rouault
cs2cs: autopromote CRS to 3D when there's a mix of 2D and 3D (fixes #1563)
2019-09-15Doc: add a section to document backward incompatibilies regarding the ↵Even Rouault
support of +init=epsg:XXXX syntax (relates to #1597)
2019-09-15DatabaseContext::lookForGridInfo(): avoid setting PROJ context errno. Fixes ↵Even Rouault
issue with test/gigs/5208.gie with previous commit when ntf_r93.gsb grid is not available
2019-09-15createFromPROJString(): ignore +no_defs when instanciating a ↵Even Rouault
'+init=epsg:xxxx +no_defs' string (related to #1597)
2019-09-15Ingestion of +proj=somerc +type=crs: avoid adding twice alpha, gamma, lon_0 ↵Even Rouault
(related to #1597)
2019-09-15Merge pull request #1608 from ↵Kristian Evers
rouault/improve_transforms_fromto_wgs84_gXXXX_realizations Improvements in transformations from/to WGS 84 (Gxxxx) realizations and vertical <--> geog transormations
2019-09-13Merge pull request #1610 from rouault/fix1601Even Rouault
Fix support for +proj=ob_tran +o_proj=lonlat/latlong/latlon (only +o_proj=longlat worked) (fixes #1601)