aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2022-03-06Merge pull request #3089 from rouault/fix_3077Even Rouault
Fix wrong results with SQLite 3.38.0 (fixes #3077)
2022-03-05Increase MAX_ITER so Mollweide forward projection works near the poles. (#3082)backport-3082-to-9.0erykoff
2022-02-23Simple SOVERSION (#3066)9.0.0Mike Taves
Co-authored-by: Bas Couwenberg <sebastic@xs4all.nl>
2022-02-23Rename "Kavraisky" to transliteration "Kavrayskiy" used by Snyder1993 (#3071)Mike Taves
2022-02-22geog3DToVertTryThroughGeog2D(): avoid potential nullptr deref (CID 383355)Even Rouault
2022-02-22WKTParser::Private::buildProjectedCRS(): avoid potential nullptr deref (CID ↵Even Rouault
383362)
2022-02-22ProjectedCRS::_exportToWKT(): avoid false positive warning about nullptr ↵Even Rouault
deref (CID 383356)
2022-02-22UnitOfMeasure::operator=(UnitOfMeasure &&): avoid use of moved member (CID ↵Even Rouault
383358)
2022-02-22CTable2Grid::open(): add missing call to extent.computeInvRes() (CID 383359)Even Rouault
2022-02-22proj_grid_info(): check pj_find_file() output (CID 383357)Even Rouault
2022-02-19Fix nullptr dereference in utilities whan argv[0] == NULLEven Rouault
https://lwn.net/Articles/?offset=50 was an entertaining reading where we learn that the fact that argv[0] contains the name of the binary is purely a convention, normally taken by the shell that launches the process, but not guaranteed by the execve() system call that does the job. The following test program tested against cct, cs2cs, geod, gie and proj make them cause a null pointer dereference ``` #include <unistd.h> #include <stdio.h> extern char **environ; int main() { char* argv[] = { NULL }; printf("%d\n", execve("/path/to/some/proj/binary", argv, environ)); return 0; } ```
2022-02-15Update version numbers for 9.0.0Kristian Evers
2022-02-14Fix importing CRS definition with +proj=peirce_q and +shape different from ↵Even Rouault
square or diamond. Follow-up of #3014. Fixes #3056. master only
2022-02-14Better deal with importing strings like '+init=epsg:XXXX +over' (refs ↵Even Rouault
MapServer/MapServer#6478)
2022-02-14Merge pull request #3049 from rouault/proj_ini_ca_bundle_pathEven Rouault
proj.ini: add a 'ca_bundle_path' variable
2022-02-14CMake: split configuration files for apps and tests (#3048)Mike Taves
2022-02-12proj.ini: add a 'ca_bundle_path' variableEven Rouault
Cf thread https://lists.osgeo.org/pipermail/gdal-dev/2022-February/thread.html#55391
2022-02-09createOperations(): fix transformations from/to a BoundCRS of a ↵Even Rouault
DerivedGeographicCRS coming from WKT
2022-02-09filemanager.cpp: reformat [ci skip]Even Rouault
2022-02-07CMake: make BUILD_SHARED_LIBS=ON the default even on WindowsEven Rouault
2022-02-04Merge pull request #3037 from direvus/2529-err-code-unknown-formatEven Rouault
Set more precise error code for parsing errors in proj_create().
2022-02-04Set more precise error code for parsing errors in proj_create().Brendan Jurd
If proj_create() catches a ParsingException, and the error code hasn't otherwise been set internally, set the error code to PROJ_ERR_INVALID_OP_WRONG_SYNTAX instead of allowing it to default to the generic PROJ_ERR_OTHER. Ref #2529
2022-02-03Allow PROJ_LIB paths wrapped with double quotes (#3031)Mateusz Łoskot
This improvement is mostly useful on Windows, where users are used to wrapping paths with whitespaces with double quotes. For example, these should now be allowed (correctly concatenated): PROJ_LIB="C:\Program Files\PROJ";C:\Users\mloskot\PROJ
2022-01-31Drop autotools; move remaining useful m4 macros (#3027)Mike Taves
2022-01-24Merge pull request #3024 from rouault/fix_cygwin_buildEven Rouault
filemanager.cpp: fix build issue with Cygwin
2022-01-20lookForGridInfo(): make it work properly when passed the old PROJ nameEven Rouault
Fixes https://github.com/qgis/QGIS/issues/45470 That is, if the file for the old PROJ name is not found, but the file for the new PROJ name is found, then use the later for fullFilename and gridAvailable.
2022-01-18networkfilemanager.cpp: fix build issue with CygwinEven Rouault
2022-01-18filemanager.cpp: fix build issue with CygwinEven Rouault
2022-01-13Specify CMAKE_INSTALL_RPATH for macOS; use -rpath LDFLAGS for tests (#3009)Mike Taves
2022-01-12Conversion::_exportToPROJString(): fix potential crash introduced in recent ↵Even Rouault
commit. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=43546
2022-01-12Merge pull request #3010 from rouault/fix_2739Even Rouault
Implement Geographic3D to Depth/Geog2D+Depth as used by ETRS89 to CD Norway depth
2022-01-11Merge pull request #3014 from rouault/fix_3011Even Rouault
peirce_q: rename +type parameter wrongly introduced in 8.2.1 to +shape (fixes #3011)
2022-01-09Minor cppcheck fixesEven Rouault
2022-01-09peirce_q: add inversion of +shape=square and diamond through generic ↵Even Rouault
inversion method
2022-01-07Map peirce_q to pseudo WKT2 and ESRI WKTEven Rouault
2022-01-07peirce_q: rename +type parameter wrongly introduced in 8.2.1 to +shape ↵Even Rouault
(fixes #3011)
2022-01-07labrd: document in the tagline and documentation that lat_0 is required (#2997)Bert Huijben
2022-01-07Merge pull request #3013 from rouault/fix_3012Even Rouault
proj_get_crs_info_list_from_database(): report PJ_TYPE_GEODETIC_CRS for IAU_2015 -ocentric geodetic CRS (fixes #3012)
2022-01-06proj_get_crs_info_list_from_database(): report PJ_TYPE_GEODETIC_CRS for ↵Even Rouault
IAU_2015 -ocentric geodetic CRS (fixes #3012)
2022-01-06Implement Geographic3D to Depth/Geog2D+Depth as used by ETRS89 to CD Norway ↵Even Rouault
depth Fixes #2739 Verified with example from IOGP Guidance Note 7-2 (ver 62, Dec 2021) page 169, with 38 = h_obs - D_obs = 50 - 12. $ echo 60.0015 4.9960 38 | PROJ_LIB=data PROJ_NETWORK=ON bin/cs2cs -d 4 EPSG:4937 EPSG:9883 60.0015 4.9960 5.8827 $ echo 60.0015 4.9960 38 | PROJ_LIB=data PROJ_NETWORK=ON bin/cs2cs -d 4 EPSG:4937 EPSG:4258+9672 60.0015 4.9960 5.8827 $ echo 60.0015 4.9960 5.8827 | PROJ_LIB=data PROJ_NETWORK=ON bin/cs2cs -d 4 EPSG:9883 EPSG:4937 60.0015 4.9960 38.0000 $ echo 60.0015 4.9960 5.8827 | PROJ_LIB=data PROJ_NETWORK=ON bin/cs2cs -d 4 EPSG:4258+9672 EPSG:4937 60.0015 4.9960 38.0000
2022-01-04Handle EPSG:1111 'Transverse Mercator (3D)' method (used in EPSG:10.044 by ↵Even Rouault
Projected 3D CRS EPSG:9895 'Luxembourg TM (3D)'
2022-01-04Merge pull request #3006 from rouault/fix_for_doxygen_1_9_3Even Rouault
Fix doc generation with Doxygen 1.9.3
2022-01-04Merge pull request #3001 from mwtoews/rfc-7-csaEven Rouault
Transition Clang Static Analizer to use CMake
2022-01-04Fix doc generation with Doxygen 1.9.3Even Rouault
Since the update to Doxygen 1.9.3, doc generation was broken. With bisection of doxygen, it was found this was due to commit https://github.com/doxygen/doxygen/commit/ee8f3fb7a2ed74ee30ae3202707617e97f6641ff which makes Doxygen honour nested @cond . This revealed bad pairing of @cond / @endcond in our code, fixed by this commit.
2022-01-02Transition Clang Static Analizer to use CMakeMike Taves
2021-12-26Update ABI numbers for 8.2.1 releaseKristian Evers
2021-12-20Fix and additional options for Peirce Quincuncial projections (#2978)Toby C. Wilkinson
This fixes the current forward implementation of Peirce Quincuncial proj to correctly flip/reflect out the southern hemisphere to four triangles, and rotate entire result to a square or diamond. (It there resolves the issues identified with pull request https://github.com/OSGeo/PROJ/pull/2230 , where southern hemisphere was wrongly projected over northern, and reverses the restriction to northern hemisphere introduced there). It also adds additional lateral projection of the hemispheres. - This PR adds an optional parameter `+type` which allows selection of projection. The `+type=square` and `+type=diamond` types match in principle ESRI's twin implementations of square and diamond PQ projs. The **default** if not specified is `+type=diamond`. - The previous behaviour restricted to the northern hemisphere can be reproduced using the `+type=nhemisphere`, though this is an edge case only. - An additional `+type=horizontal` and `+type=vertical` rectangular lateral versions have been added that place each hemisphere side-by-side. This is primarily to allow creation of projections such as Greiger Triptychial, which also require the additional optional params `scrollx` or `scrolly` in order to shift parts of the projection from one side of the map to the other. - Additional documentation has been added to proj description, including quoting the usual meridian used in common usage of projection, and images showing the different types.
2021-12-16WKT1 import: correctly deal with missing rectified_grid_angle parameterEven Rouault
by setting its value from the azimuth angle. and on export to PROJ.4 string do not emit a erroneous +gamma=0 when the parameter it is missing. Fixes https://lists.osgeo.org/pipermail/proj/2021-December/010475.html
2021-12-16WKTParser::Private::buildProjectionStandard(): minor cleanupEven Rouault
2021-12-08createOperations(): improvement for "NAD83(CSRS) + CGVD28 height" to ↵Even Rouault
"NAD83(CSRS) + CGVD2013(CGG2013) height" That transformation involves doing CGVD28 height to CGVD2013(CGG2013) height by doing: - CGVD28 height to NAD83(CSRS): EPSG registered operation - NAD83(CSRS) to CGVD2013(CGG2013) height by doing: * NAD83(CSRS) to NAD83(CSRS)v6: ballpark * NAD83(CSRS)v6 to CGVD2013(CGG2013): EPSG registered operation