aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-10-08NTv1 grid shift: fix file offset for reading of shift values in ntv1_can.datEven Rouault
When investigating the format of NTv1 and comparing PROJ code with the actual header of ntv1_can.dat, I discovered that the longitude & latitude shift values started at offset 192, whereas PROJ assumed that the header was 176 bytes only. This caused PROJ to use the wrong offsets values (shift of one grid sample by longitude). So the effect was moderately visible, especially on the latitude, but when comparing with NTv2, one can see that the longitude value after the fix seems to closer to NTv2. old: echo "60.5 -100.5 0" | PROJ_LIB=/usr/share/proj src/cct -d 8 +proj=pipeline +step +proj=axisswap +order=2,1 +step +proj=unitconvert +xy_in=deg +xy_out=rad +step +proj=hgridshift +grids=ntv1_can.dat +step +proj=unitconvert +xy_in=rad +xy_out=deg +step +proj=axisswap +order=2,1 60.50022624 -100.50040292 0.00000000 inf new: echo "60.5 -100.5 0" | PROJ_LIB=/usr/share/proj src/cct -d 8 +proj=pipeline +step +proj=axisswap +order=2,1 +step +proj=unitconvert +xy_in=deg +xy_out=rad +step +proj=hgridshift +grids=ntv1_can.dat +step +proj=unitconvert +xy_in=rad +xy_out=deg +step +proj=axisswap +order=2,1 60.50022403 -100.50041841 0.00000000 inf echo "60.5 -100.5 0" | PROJ_LIB=/usr/share/proj src/cct -d 8 +proj=pipeline +step +proj=axisswap +order=2,1 +step +proj=unitconvert +xy_in=deg +xy_out=rad +step +proj=hgridshift +grids=$HOME/proj/proj-datumgrid/north-america/ntv2_0.gsb +step +proj=unitconvert +xy_in=rad +xy_out=deg +step +proj=axisswap +order=2,1 60.50022348 -100.50041978 0.00000000 inf old: $ echo "80.1 -70.9 0" | PROJ_LIB=/usr/share/proj src/cct -d 8 +proj=pipeline +step +proj=axisswap +order=2,1 +step +proj=unitconvert +xy_in=deg +xy_out=rad +step +proj=hgridshift +grids=ntv1_can.dat +step +proj=unitconvert +xy_in=rad +xy_out=deg +step +proj=axisswap +order=2,1 80.10096789 -70.89746834 0.00000000 inf new: $ echo "80.1 -70.9 0" | PROJ_LIB=/usr/share/proj src/cct -d 8 +proj=pipeline +step +proj=axisswap +order=2,1 +step +proj=unitconvert +xy_in=deg +xy_out=rad +step +proj=hgridshift +grids=ntv1_can.dat +step +proj=unitconvert +xy_in=rad +xy_out=deg +step +proj=axisswap +order=2,1 80.10096858 -70.89749190 0.00000000 inf $ echo "80.1 -70.9 0" | PROJ_LIB=/usr/share/proj src/cct -d 8 +proj=pipeline +step +proj=axisswap +order=2,1 +step +proj=unitconvert +xy_in=deg +xy_out=rad +step +proj=hgridshift +grids=$HOME/proj/proj-datumgrid/north-america/ntv2_0.gsb +step +proj=unitconvert +xy_in=rad +xy_out=deg +step +proj=axisswap +order=2,1 80.10096782 -70.89749276 0.00000000 inf
2018-10-07Merge pull request #1143 from sphynx/uniform-proj-descriptionsKristian Evers
Make PROJ_HEAD descriptions more uniform
2018-10-06Make PROJ_HEAD descriptions more uniformIvan Veselov
Before that, approximately half of the descriptions had a period at the end, e.g. 'Cyl.' or 'Sph.' and the other half did not have those periods. This commit drops all the dots in PROJ_HEAD descriptions.
2018-10-03Remove nmake build systemEven Rouault
2018-10-01Merge pull request #1138 from rouault/geogoffsetKristian Evers
Add geographic offset transformation method.
2018-10-01Add a affine transformation method, and make geogoffset as a particular case ↵Even Rouault
of it (fixes #535)
2018-10-01Add geographic offset transformation method.Even Rouault
The Geographic offsets transformation adds an offset to the geographic longitude, latitude coordinates, and an offset to the ellipsoidal height. This method is normally only used when low accuracy is tolerated. It is documented as coordinate operation method code 9619 (for geographic 2D) and 9660 (for geographic 3D) in the EPSG dataset. It can also be used to implement the method Geographic2D with Height Offsets (code 9618) by noting that the input vertical component is a gravity-related height and the output vertical component is the ellispoid height (dh being the geoid undulation). It can also be used to implement the method Vertical offset (code 9616) It is used for example to transform: - from the old Greek geographic 2D CRS to the newer GGRS87 CRS - from Tokyo + JSLD69 height to WGS 84 - from Baltic 1977 height to Black Sea height It is also useful to document the implicit zero-offset transformation we do in pipelines such as +proj=pipeline +step +inv +proj=longlat +ellps=A +step +proj=longlat +ellps=B that can be explicited as +proj=pipeline +step +inv +proj=longlat +ellps=A +step +proj=geogoffset [+dlon=0 +dlat=0 +dh=0] +step +proj=longlat +ellps=B
2018-09-29Merge pull request #1139 from rouault/fix_doc_make_html_warningKristian Evers
Documentation building fixes
2018-09-29Doc building: enforce warning as errors modeEven Rouault
2018-09-29Doc building: fix warning regarding Altamimi2002 citation not foundEven Rouault
There was an issue since transformation.rst which uses this citation is alphabetically after references.rst. The documented workaround in https://github.com/mcmtroffaes/sphinxcontrib-bibtex/issues/8 is to rename references.rst as zrefereces.rst, so it is alphabetically last.
2018-09-28Merge pull request #1136 from rouault/fix_locale_issue_cs2cs_emulation_setupEven Rouault
cs2cs_emulation_setup: fix issue with non C-locale
2018-09-27cs2cs_emulation_setup: fix issue with non C-localeEven Rouault
in +towgs84 case, we use sprintf() with floating-point formatter to output the ellipsoid parameters. For a locale with decimal separtor != dot, the resulting string will not be parsed correctly by proj_atof(), leading to wrong numeric result. The fix is similar to the one done in pj_latlong_from_proj() Note for later: if using C++, we could use a locale-independent formatting solution to avoid such issue.
2018-09-24snake casePhilippe Rivière
2018-09-24Req. changes for Bertin1953:Philippe Rivière
- classification - tests - coding style
2018-09-24Merge pull request #1134 from sphynx/masterKristian Evers
Fix mistakes in function comments
2018-09-23Fix mistakes in function commentsIvan Veselov
2018-09-22Merge pull request #1131 from kbevers/remove-misspelled-constantKristian Evers
Remove misspelled-constant PJD_ERR_UNKNOW_UNIT_ID
2018-09-22Merge pull request #1130 from kbevers/refactor-projKristian Evers
Refactor proj
2018-09-22Fix typo in Plate Carree projection name (#1132)Philippe Rivière
2018-09-21coding style (https://travis-ci.com/OSGeo/proj.4/jobs/147225960 & ↵Philippe Rivière
https://travis-ci.com/OSGeo/proj.4/jobs/147274068)
2018-09-21the Bertin 1953 projectionPhilippe Rivière
2018-09-21Remove misspelled-constant PJD_ERR_UNKNOW_UNIT_IDKristian Evers
Closes #853
2018-09-21Replace calls to pj_factors with proj_factorsKristian Evers
2018-09-21Replace calls to rtodms/dmstor with proj.h equivalentsKristian Evers
2018-09-20Update plot.py scriptKristian Evers
Added conda environment file too, hopefully making it simpler to get started in the future.
2018-09-20Update data/README (refs #1127)Even Rouault
2018-09-20Remove references to nad/Kristian Evers
Closes #1127
2018-09-20Clean up FAQKristian Evers
This removes some questions that are no longer valid (covered elsewhere in the docs), adjusts the wording in other questions and fixes formatting and making it proper rst/sphinx syntax. With this, #1070 is almost fixed.
2018-09-19Merge pull request #1128 from kbevers/build-docs-from-maintenance-branchKristian Evers
Build docs from maintenance branch
2018-09-19travis/install.sh: cleanupsEven Rouault
2018-09-19autoconf: fix 'make check' on out-of-tree buildsEven Rouault
2018-09-19Merge pull request #1125 from rouault/rename_nad_as_dataKristian Evers
Rename nad/ as data/ and move nad/test* to test/old/*
2018-09-19Bump doc version to 6.0.0Kristian Evers
2018-09-19Build docs from most recent maintenance branchKristian Evers
2018-09-19Merge pull request #1124 from kbevers/version-6-prepKristian Evers
Version 6 preparation
2018-09-18Move data/test* scripts and expected results to test/old/Even Rouault
2018-09-18Rename nad/ directory as data/Even Rouault
2018-09-18Only allow usage of proj_api.h if explicit consent was givenKristian Evers
We want to flag that proj_api_h is now deprecated. With this commit it is now mandatory to #define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H before proj_api.h can be included. proj_api.h is used internally a bunch of places. Therefore ACCEPT_USE_OF_DEPRECATED_PROJ_API_H has been defined in projects.h and a few other necessary files to ensure that PROJ compiles. Closes #836
2018-09-18Do not install projects.hKristian Evers
In version 6 we stop exposing the deprecated projects.h API to the world outside PROJ. Closes #835
2018-09-18Merge pull request #1123 from mwtoews/docsKristian Evers
DOC: Remove free grids from 'Non-Free Grids' section
2018-09-18alphabetize titles in 'Non-Free Grids' section (content unchanged)Mike Toews
2018-09-18Remove free grids from 'Non-Free Grids' sectionMike Toews
These are included with proj-datumgrid: - Australia - Canada: ntv2_0.gsb - Germany: BETA2007.gsb
2018-09-15Bump version numbers after 5.2.0 releaseKristian Evers
2018-09-15Prepare website for 5.2 release5.2.0Kristian Evers
2018-09-11Merge pull request #1117 from mwtoews/intelKristian Evers
Modifications for Intel compilers
2018-09-11workaround Intel's shortcoming with constexprMike Toews
2018-09-11Specify c++11 for Intel compilersMike Toews
Also, workaround issue: CMake Error at test/unit/CMakeLists.txt:7 (string): string sub-command REGEX, mode REPLACE needs at least 6 arguments total to command.
2018-09-11Update release dateKristian Evers
2018-09-11Merge pull request #1116 from sebastic/dont-install-test-executablesEven Rouault
Don't install test executables.
2018-09-11Merge pull request #1115 from sebastic/dont-install-gtestEven Rouault
Don't install gtest libraries.