aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-12-18Merge pull request #674 from aaronpuchert/const-globalsEven Rouault
Declare non-local variables as const where possible
2017-12-18Enable wildcard globbing for MSVC builds (#714)Thomas Knudsen
* Enable wildcard globbing for MSVC builds * Use globbing to run all gie tests * Despite merge title: Also use wildcards on gie tests when using GNU compilers
2017-12-17Declare non-local variables as const where possibleAaron Puchert
Having non-const variables of static lifetime or even global scope is usually a bad idea. These variables are inherently constants, and this should be enforced. This required marking some functions as not modifying input parameters and marking some pointers as pointers to const. One advantage is that the compiler usually puts const static variables in a read-only code segment, so they can't be modified physically. This can be verified with `nm` (on POSIX systems). To avoid changes to the public API, functions returning non-const pointers to data tables were left intact, but the returned data may not be modified. Internally we prefer using the proj_list_* functions over the pj_get_*_ref functions, because the former return const pointers.
2017-12-17Merge pull request #713 from kbevers/travis-c89Kristian Evers
Add -std=c89 to travis targets
2017-12-17Add -std=c89 to travis targets.Kristian Evers
The multistresstest code has been made C89 compliant in the process.
2017-12-17Normalize whitespace in multistresstest.cKristian Evers
2017-12-17Free format everywhere (#693)Thomas Knudsen
* Free format now in cmd lines, in gie, and in init files * Corrected handling of defaults * Add demo of integrated definition and validation * Repair stack-smashing memmove in get_init * repair paralist corruption, clean up debug output * Install test files for nmake builds * Add many improvements following suggestions by @schwehr * Be consistent in requiring lower case everywhere in gie.c Also, this Fixes #703 and Fixes #697
2017-12-17Fix integer overflow in unitconvert.Kristian Evers
For sufficiently large values of modified julian date the mjd_to_yyyymmdd function would integer overflow in the calculation of the return value. This is fixed by implicit type conversion. Credit to OSS-Fuzz. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=4658 and https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=4667
2017-12-17Update epsg file to database v9.2 (fixes #711)Even Rouault
2017-12-16Merge pull request #706 from kbevers/deformation-updateKristian Evers
Updates to deformation operation.
2017-12-14Add time unit yyyymmdd to unitconvert operation (#707)Kristian Evers
Add time unit yyyymmdd to unitconvert operation
2017-12-14Merge pull request #698 from cffk/squelchCharles Karney
Squelch Visual Studio's obnoxious warnings about sprintf being unsafe.
2017-12-14Suppress warning C4996 centrally in CMakeLists.txtCharles Karney
2017-12-14Updates to deformation operation.Kristian Evers
The initial approach taken in the deformation operation was not geodetically sound. The deformation model grids were required to be indexed in lat/long space with the velocities in the grids being in cartesian space. This is quite confusing and it is not a normal way of making deformation models. The usual approach is to keep everything in the east, north, up, or ENU, space. We adopt that tradition in this commit. The velocities are still applied in cartesian space which requires that the grid-velocities are converted from ENU space to cartesian space. As a consequence of this change the operation is changed so that it only works in full 3D mode. That is, both horizontal and vertical grids need to be applied. The inverse operation is changed slightly to accommodate the now fully 3D transformation. In it's present form it is a modification to the original algorithm that also includes the vertical component in the iteration. This is necessary to get a proper mapping from ENU to cartesian space in the loop. The vertical component is overwritten with the initial z-correction at the end of the loop. This approach is not completely accurate and will introduce errors, especially when doing many roundtrip calculations, but it seems to be good enough for a few roundtrips. The PJ_ENU data type is re-introduced to better communicate the what state the grid corrections are in throughout the code.
2017-12-12Merge branch 'fix_macos'Even Rouault
2017-12-12Merge pull request #704 from aaronpuchert/work-around-type-punningEven Rouault
Allow including the new API header in proj.c
2017-12-12Travis MacOSX: install pipEven Rouault
2017-12-11Allow including the new API header in proj.cAaron Puchert
This didn't work before because the elaborate type punning scheme was deactivated by including proj.h. Now we use the type punning from the new API header and build our own. This change is required for #674.
2017-12-08A few updates to Helmert doc pageKristian Evers
2017-12-07Merge pull request #694 from kbevers/helmert-improvementsKristian Evers
Helmert improvements
2017-12-07Override RTD css and make sure that equation numbers are right-alignedKristian Evers
2017-12-07Document the helmert transformKristian Evers
2017-12-07Squelch Visual Studio's obnoxious warnings about sprintf being unsafe.Charles Karney
Also set policy CMP0054 to stop a cmake warning.
2017-12-06CMakeLists.txt: fix typo, copysigna -> copysign.Charles Karney
2017-12-06Use approximate equations instead of exact as default in Helmert.Kristian Evers
2017-12-06Helmer update [wip]Kristian Evers
2017-12-06Add input/output types to gridshift docs [skip ci]Kristian Evers
2017-12-06Update config with version number and correct copyright dates [skip ci]Kristian Evers
2017-12-06Use t_epoch and t_obs instead of epoch and tobs.Kristian Evers
Prefixing with t_ is more consistent with the existing parameters in PROJ, such as x_0 and friends. t_epoch and t_obs is already used in PJ_deformation. Now users can expect consistency across time-varying transformations.
2017-12-06Merge remote-tracking branch 'osgeo/master' into docs-release-4.10.0Kristian Evers
2017-12-05Merge pull request #685 from cffk/geodesic-docCharles Karney
Update documentation on geodesics
2017-12-03Fixes to geodesic documention:Charles Karney
* replace SVG figure by PNG version, * rewrite maths using :math:, * put references in the main reference section, * reformat references for consistency, * put references in alphabetical order, * use USGS URL for Snyder (1987).
2017-11-29CSS override of the RTD theme so that lines are wrapped in tables.Kristian Evers
[skip ci]
2017-11-29Merge pull request #692 from kbevers/remove-selftest-remainsKristian Evers
Remove the last remains of the internal selftest
2017-11-29Fill out Molodensky docs [skip ci]Kristian Evers
2017-11-29Remove the last remains of the internal selftestKristian Evers
2017-11-29Fix bad typedef that surfaces when including proj.h and proj_api.h in the ↵Kristian Evers
same file (#687) Fix bad typedef that surfaces when including proj.h and proj_api.h in the same file
2017-11-28Merge remote-tracking branch 'aaronpuchert/static-assert'Even Rouault
2017-11-28Merge pull request #691 from busstoptaktik/make_assignments_greedyThomas Knudsen
Free formatting of PROJ key=value pairs
2017-11-28Merge pull request #690 from busstoptaktik/hgrid_roundtrip_checkThomas Knudsen
use full error code checking on failure in more_builtins.gie
2017-11-28Free formatting of PROJ key=value pairsThomas Knudsen
2017-11-28use full error code checking on failure in more_builtins.gieThomas Knudsen
2017-11-28Enable selective debug printout through negative PROJ_DEBUG values (#689)Thomas Knudsen
* Enable selective debug printout through negative PROJ_DEBUG values
2017-11-28Add tests for GDA2020 (#688)Thomas Knudsen
Add GDA2020 tests, and correct the PJ_helmert bug they revealed
2017-11-27Added projections parameters to aeqd and airy doc pagesKristian Evers
2017-11-27Restructure coordinate operations docsKristian Evers
2017-11-27Added info table to ccon doc pageKristian Evers
2017-11-27Merge remote-tracking branch 'osgeo/master' into docs-release-4.10.0Kristian Evers
2017-11-27Update documentation on geodesics replacing an ancient page on geodesicCharles Karney
calculations with something more helpful to the beginning user.
2017-11-27Update API reference to reflect recent changes to the APIKristian Evers