aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
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
2018-04-12Add --skip-lines option to cctKristian Evers
With this it is possible to skip the header when transforming coordinates from a file.
2018-04-12Use log1p in forward spherical mercatorJavier Goizueta
2018-04-12Fix: use proper double epsilon declarationJavier Goizueta
2018-04-12Enhance the precision of Spherical Mercator projection near the equatorJavier Goizueta
This uses a linear approximation of tan(x+pi/4) for better precision at small latitudes. As a result points of latitude 0 maintain a 0 Y coordinate and 0,0 is transformed to 0,0
2018-04-12Add webmerc projectionEven Rouault
2018-04-12Pipeline: make sure geocentric/cartesian space transform is done with ↵Even Rouault
original ellipsoid parameters (before any projection mess with them)
2018-04-12Merge pull request #923 from kbevers/cct-skip-n-linesKristian Evers
Add --skip-lines option to cct
2018-04-12Use log1p in forward spherical mercatorJavier Goizueta
2018-04-12Fix: use proper double epsilon declarationJavier Goizueta
2018-04-11Enhance the precision of Spherical Mercator projection near the equatorJavier Goizueta
This uses a linear approximation of tan(x+pi/4) for better precision at small latitudes. As a result points of latitude 0 maintain a 0 Y coordinate and 0,0 is transformed to 0,0
2018-04-09Add webmerc projectionEven Rouault
2018-04-07Pipeline: make sure geocentric/cartesian space transform is done with ↵Even Rouault
original ellipsoid parameters (before any projection mess with them)
2018-04-03Add --skip-lines option to cctKristian Evers
With this it is possible to skip the header when transforming coordinates from a file.
2018-03-30Improve log and documentation regarding t_obs in helmert and deformation ↵Even Rouault
operations
2018-03-30Return HUGE_VAL when errors are encounteredKristian Evers
2018-03-27Check for sweep_axis being an empty string in PJ_geos. (#908)Kurt Schwehr
Check for sweep_axis being an empty string in PJ_geos
2018-03-27Merge pull request #901 from mwtoews/dot4Kristian Evers
Rename CMake infrastructure to remove 4
2018-03-27Merge pull request #907 from kbevers/print-helpKristian Evers
Print help
2018-03-27Merge pull request #906 from kbevers/validate-pipeline-unitsKristian Evers
Validate pipeline units
2018-03-27Print help text when callin gie without argumentsKristian Evers
Previously gie would return "Nothing to do" when called without arguments. With this change the help text is returned instead.
2018-03-27Free memory on exitKristian Evers
2018-03-27Print help when calling cct without argumentsKristian Evers
Previously when calling cct without any arguments the following message would be presented to the user: cct: Bad transformation arguments - ((null)) 'cct -h' for help With this change the help instructions are returned instead.
2018-03-27Document --version option in cct and gieKristian Evers
2018-03-27Change units of axisswap to 'whatever'Kristian Evers
Since units are validated during pipeline setup we need to make sure that axisswap can be used for more than just projected outputs.
2018-03-27Validate that units match between pipeline stepsKristian Evers
As suggested in [0], steps in a pipeline are now checked for compliance. If the right side units in step n differ from the left side units in step n+1 the pipeline can't be constructed and an error is raised. [0] https://lists.osgeo.org/pipermail/grass-dev/2018-March/088123.html
2018-03-26Merge pull request #902 from schwehr/gie-timeKristian Evers
gie.c: Initialize test_time other fields.