aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2018-05-08Merge pull request #988 from kbevers/proj-V-errorKristian Evers
Reset errno when running proj in verbose mode.
2018-05-07Clean readability-named-parameter clang-tidy warningsKristian Evers
2018-05-07Clean readability-misleading-indentation clang-tidy warningsKristian Evers
2018-05-07Clean readability-redundant-declaratio clang-tidy warningsKristian Evers
Function prototypes were declared twice for the FFIO framework, probably because FFIO at some point during development existed as a separate file. With this commit the second set of function prototypes is removed leaving only the first entry at the top of the file. Similarly duplicate header inclusions has been removed.
2018-05-07Clean readability-inconsistent-declaration-parameter-name clang-tidy warningsKristian Evers
2018-05-07Clean readability-redundant-control-flow clang-tidy warningsKristian Evers
2018-05-07Reset errno when running proj in verbose mode.Kristian Evers
Fixes #920.
2018-05-07Merge pull request #987 from kbevers/calcofi-refactorKristian Evers
Calcofi refactor
2018-05-07Refactor calcofi so that global parameters are handled in the projection setupKristian Evers
2018-05-06Do not error when setting up geos with +lat_0!=0Kristian Evers
2018-05-05Merge pull request #980 from mwtoews/doc-updateKristian Evers
Update docs for apps / manpages
2018-05-05Merge pull request #978 from rouault/cmake_fix_msysEven Rouault
cmake: fix build with msys where both pthread and win32 threads are detected (fixes #976)
2018-05-05geod usage: remove non-exist 'T', add 'l'mwtoews
2018-05-05cct usage: add 'I' to docs, re-order usage to same as docsmwtoews
2018-05-05proj usage: remove unused 'c', add 'vV' to invprojmwtoews
2018-05-04Add documentation to pj_phi2 by cffk@Kurt Schwehr
2018-05-04Fix C89 build failure with dphi.Kurt Schwehr
error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
2018-05-04Merge pull request #969 from Geomatys/masterKristian Evers
Update documentation and modularize the Java bindings
2018-05-04cmake: fix build with msys where both pthread and win32 threads are detected ↵Even Rouault
(fixes #976)
2018-05-04Convert errno literals to corresponding PJD symbolKurt Schwehr
2018-05-03Minor cleanup of pj_phi2.cKurt Schwehr
- tabs -> spaces - IWYU - #define -> static const typed - Combine definition and initialization - Define one var per statement - Use the defined symbol rather than embedding bare literals -18 -> PJD_ERR_NON_CON_INV_PHI2 Subset of fixes discussed in #971
2018-05-02Rename "Proj" as "PROJ" for the library name.Martin Desruisseaux
2018-05-02Use the #define constant generated by javac instead than a constant ↵Martin Desruisseaux
maintained manually.
2018-04-30Merge pull request #958 from rouault/safe_creation_of_pj_lockKristian Evers
Implement thread-safe creation of proj mutex (fixes #954)
2018-04-30Merge pull request #965 from schwehr/proj_mathKristian Evers
Move include of math.h inside include guard.
2018-04-30Move include of math.h inside include guard.Kurt Schwehr
No reason to include math.h more times. And balance whitespace a bit
2018-04-30Merge pull request #960 from kbevers/remove-pj_is_nan-definitionKristian Evers
Remove unneeded pj_is_nan definition
2018-04-30Remove unneeded pj_is_nan definitionKristian Evers
2018-04-28pj_mutex.c: use PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP when availableEven Rouault
2018-04-28Implement thread-safe creation of proj mutex (fixes #954)Even Rouault
2018-04-27Update the Ant build.xml script for:Martin Desruisseaux
- Generating the C header file during javac task. - Provide more accurate information in META-INF/MANIFEST.MF. - Merge tasks intended to be executed together. The src/org_proj4_PJ.h file has been re-generated with the most recent Java compiler.
2018-04-27Apply the https://github.com/opengeospatial/geoapi/issues/26 patch.Martin Desruisseaux
Update contributor names in copyright header.
2018-04-27Remove src/org_proj4_Projections.h file. This file was not used anywhere, ↵Martin Desruisseaux
since it was replaced by org_proj4_PJ file since 2012.
2018-04-25pj_transform: reset error state before each call to pj_inv/pj_fwdEven Rouault
Fixes issues raised in https://lists.osgeo.org/pipermail/gdal-dev/2018-April/048446.html The use case is that pj_transform() is called from geos projection to something else, with multiple coordinates. If one of the coordinate tuple fails the inverse transform of geos, it fails with PJD_ERR_TOLERANCE_CONDITION. Causing all following coordinates to fail since the error state is not reset.
2018-04-23Merge pull request #937 from kbevers/c99-math-moduleKristian Evers
Collect custom C99 math functions in proj_math.h
2018-04-23Merge pull request #947 from schwehr/pj_isea_cleanupKristian Evers
PJ_isea.c: change local helper functions to void returns
2018-04-23Add isnan() to proj_math.hKristian Evers
Code updated to use isnan() instead of pj_is_nan().
2018-04-22More cleanup and fix last commitKurt Schwehr
Tried building before committing time
2018-04-22PJ_isea.c: change local helper functions to void returnsKurt Schwehr
The return values are not used and do not mean anything. Similar to #423
2018-04-19Rename level -> log_level for proj_log_level to match function definitionKurt Schwehr
Found on https://github.com/OSGeo/proj.4/commit/2f082b70cbdafdea49bb123e027406089e7ad65b http://clang.llvm.org/extra/clang-tidy/checks/readability-inconsistent-declaration-parameter-name.html function 'proj_log_level' has a definition with different parameter names src/pj_internal.c:374:14: the definition seen here src/proj.h:364:14: differing parameters are named here: ('level'), in definition: ('log_level')
2018-04-16Prefer proj_math.h over math.h when geodesic.c is compiled as part of PROJKristian Evers
2018-04-16Collect custom C99 math functions in proj_math.hKristian Evers
We are relying more and more on C99 math functions. On C89 systems where those functions are not available our own custom versions of those functions are used instead. So far these has been spread across the code base. This commit gathers them in the same file and introduces the proj_math.h header. The build system checks for C99 math functions. If not found the proj_math.h header make sure that C99 functions are defined as their pj_ equivalent. Ideally proj_math.h is included instead of math.h. This removes the need for any checks against HAVE_C99_MATH in the code making it easier to read. For this commit the functions hypot, log1p and asinh has been taken care of.
2018-04-16Silence complaints about missing </gie> tagKristian Evers
2018-04-14Dont do false easting/northing on cartesian coordsKristian Evers
False easting and northing should only be applied to projected coordinates (PJ_IO_UNITS_PROJECTED). This commit removes the option of false easting/northing on operations suchs as helmert and deformation that both work on cartesian coordinates.
2018-04-14Merge pull request #924 from kbevers/logging_with_new_apiKristian Evers
Logging with new api
2018-04-13Merge branch 'master' into logging_with_new_apiKristian Evers
2018-04-13Fix segfault in deformationKristian Evers
When transforming coordinates outside the grid model the deformation operation failed spectatularly. This is now fixed by checking that the coordinate is inside the grid. If it isn't an error is returned and a debugging log message is issued. Closes #934
2018-04-13Always ignore out-commented lines in cctKristian Evers
Previous to this commit cct would return the following $ cct -c 2,3,4 -t 0 -I +proj=cart +ellps=GRS80 BLAH 3579685.56545 508396.50343 5236837.50646 8.0832413787 55.5578176654 99.9833 0.0000 8.0832413787 55.5578176654 99.9833 0.0000 where the second input should not be parsed as a valid coordinate. With this commit that no longer happens and the input is returned verbatim back to the user. Closes #932
2018-04-12Use PROJ logging facility in cctKristian Evers
2018-04-12Move logging functions to proj.h APIKristian Evers