aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-04-11projinfo --list-crs --area: make it work when multiple areas matches the ↵Even Rouault
specified name
2021-04-11Reformatting fixEven Rouault
2021-04-11projinfo: add option --list-crs (#2663)Javier Jimenez Shaw
2021-04-11Merge pull request #2660 from rouault/getCRSInfoList_deterministic_result_orderEven Rouault
getCRSInfoList(): make result order deterministic (by increasing auth_name, code)
2021-04-11projinfo: add a --normalize-axis-order undocument switchEven Rouault
2021-04-11CRS::normalizeForVisualization(): propagate domains/extent of original CRS ↵Even Rouault
(fixes #2603)
2021-04-11createFromUserInput(): support URN:OGC:DEF:CRS:OGC:1.3:CRS84Even Rouault
2021-04-10getCRSInfoList(): make result order deterministic (by increasing auth_name, ↵Even Rouault
code)
2021-04-10Merge pull request #2657 from rouault/cmake_test_cliEven Rouault
CMake: for test/cli, generate the output files in /test/cli like autoconf builds
2021-04-10Doc: remove mention of k_0 and lat_ts in aeqd projection. They are not used. ↵Even Rouault
Fixes #2638 and fixes #2639
2021-04-10CMake: for test/cli, generate the output files in /test/cli like autoconf buildsEven Rouault
2021-04-10fix typo in commentEven Rouault
2021-04-10Merge pull request #2656 from rouault/createFromUserInput_improvementsEven Rouault
createFromUserInput(): various enhancements
2021-04-10Recognize OGC:84 as an alias of OGC:CRS84Even Rouault
2021-04-10createFromUserInput(): add support for WMS AUTO: syntaxEven Rouault
2021-04-10Add UnitOfMeasure::FOOT and US_FOOTEven Rouault
2021-04-10createFromUserInput(): add support for (legacy) urn:x-ogc:def:crs:EPSG:XXXX ↵Even Rouault
syntax
2021-04-10createFromUserInput(): add support for (legacy) urn:opengis:crs:EPSG:0:XXXX ↵Even Rouault
syntax
2021-04-10Add hard-coded definitions for OGC:AnsiDate/JulianDate/UnixTimeEven Rouault
2021-04-10createFromUserInput(): add support for OGC URLsEven Rouault
e.g: http://www.opengis.net/def/crs/EPSG/0/4326 http://www.opengis.net/def/crs-compound?1=http://www.opengis.net/def/crs/EPSG/0/4326&2=http://www.opengis.net/def/crs/EPSG/0/3855
2021-04-10projinfo: remove spurious -- in help message (master only)Even Rouault
2021-04-08Merge pull request #2647 from rouault/integer_or_textEven Rouault
Database: decrease db size
2021-04-08Merge pull request #2653 from mwtoews/ci-msys2Even Rouault
CI: build and test on MSYS2 with Windows
2021-04-07Merge pull request #2654 from rouault/show_that_pr_2616_is_wrongEven Rouault
test: add datum shift related tests for transformations crossing antimeridian
2021-04-08Drop set/export of PROJ_LIB for Windows CI runsMike Taves
2021-04-07proj_trans(): add a more expressive log messageEven Rouault
2021-04-07test: add datum shift related tests for transformations crossing antimeridianEven Rouault
If using the proposed patch in PR #2616 refreshed as, ``` diff --git a/src/4D_api.cpp b/src/4D_api.cpp index c7725d3a..3bd58a97 100644 --- a/src/4D_api.cpp +++ b/src/4D_api.cpp @@ -998,7 +998,7 @@ static void reproject_bbox(PJ* pjGeogToCrs, constexpr int XY_SIZE = N_STEPS_P1 * 4; std::vector<double> x(XY_SIZE); std::vector<double> y(XY_SIZE); - const double step_lon = (east_lon - west_lon) / N_STEPS; + const double step_lon = (((east_lon >= west_lon) ? east_lon : east_lon + 360) - west_lon) / N_STEPS; const double step_lat = (north_lat - south_lat) / N_STEPS; for( int j = 0; j <= N_STEPS; j++ ) { @@ -1244,7 +1244,7 @@ std::vector<PJCoordOperation> pj_create_prepared_operations(PJ_CONTEXT *ctx, { const bool isOffshore = areaName && strstr(areaName, "- offshore"); - if( west_lon <= east_lon ) + if( true || west_lon <= east_lon ) { op = add_coord_op_to_list(i, op, west_lon, south_lat, east_lon, north_lat, ``` we'd get an incorrect result on one point, using the 'Pulkovo 1942 to WGS 84 (16)' less accurate transformation due to mis-computation of bounding boxes. ``` --- ../test/cli/tv_out.dist 2021-04-07 22:29:02.706095239 +0200 +++ test/cli/tv_out 2021-04-07 22:29:35.809579495 +0200 @@ -499,7 +499,7 @@ ############################################################## Check that we can use a transformation spanning the antimeridian (should use Pulkovo 1942 to WGS 84 (20)) 50 179.999999999 49d59'59.36"N 179d59'52.133"W 0.000 -50 -179.999999999 49d59'59.36"N 179d59'52.133"W 0.000 +50 -179.999999999 49d59'59.422"N 179d59'52.184"W 0.000 ############################################################## Check that we can use a transformation spanning the antimeridian (should use Pulkovo 1942 to WGS 84 (20)) 5540944.47 499999.999 49d59'59.36"N 179d59'52.133"W 0.000 ```
2021-04-07Database: more thorough consistency checks on extent of coordinate operationsEven Rouault
2021-04-07CI: build and test on MSYS2 with WindowsMike Taves
2021-04-07Merge pull request #2652 from rouault/extra_consistency_checksEven Rouault
Database: extra consistency checks
2021-04-06Database: nullify auth_name, code of usage tableEven Rouault
We never select by those columns, so don't set them. Reduce from 8.4 to 7.9 MB. Upgrade the minor version of the database layout. (that database can still be read by PROJ 8.0)
2021-04-06Database: more consistency checks on helmert_transformation and ↵Even Rouault
grid_transformation
2021-04-06Database: do not create Helmert transformations in IGNF between CRS of ↵Even Rouault
different nature, and also adjust the method code/name to the nature of the CRS
2021-04-06Database: minor refresh of ignf.sql and import script with new locations of ↵Even Rouault
resources
2021-04-06Merge pull request #2646 from rouault/db_proj_versionEven Rouault
Database: add a PROJ.VERSION metadata entry
2021-04-05Merge pull request #2650 from ↵Even Rouault
rouault/fix_createBetweenGeodeticCRSWithDatumBasedIntermediates createOperations(): make createBetweenGeodeticCRSWithDatumBasedIntermediates() reachable...
2021-04-05createOperations(): make ↵Even Rouault
createBetweenGeodeticCRSWithDatumBasedIntermediates() reachable... ... and optimize its execution time by rewriting it completely. This code path was no longer triggered in tests since EPSG got a direct transformation for GDA94 to WGS 84 (G1762).
2021-04-05Merge pull request #2648 from jidanni/patch-1Kristian Evers
Add missing comma
2021-04-05Add missing comma積丹尼 Dan Jacobson
For https://github.com/OSGeo/PROJ/issues/2645 .
2021-04-04Database: decrease db size by using a INTEGER_OR_TEXT data type on codesEven Rouault
Most codes (especially *all* in EPSG) are integers. As integers are stored as variable-length in the db, it is preferable to store them as such when possible. So use a special INTEGER_OR_TEXT data type. This is a "non-standard" type declaration, but this is perfectly legal as SQLite is loosely typed. As this declaration contains the string INT, it is assigned INTEGER affinity. Which means that values provided either as text (that contains integer value) or integer will be stored as integers, whereas text values will be stored as text. See paragraph 3 and 3.1 of https://www.sqlite.org/datatype3.html. The "INTEGER_OR_TEXT" name is a hint for the user, and software like GDAL (>= 3.3) to expose the column as string... The effect of using this rather than TEXT is making the DB size go from 9 MB to 8.4. There is no need to change the DATABASE.LAYOUT version numbering as this is completely forward and backward compatible.
2021-04-04Database: add missing column type specifir for method_name in ↵Even Rouault
grid_transformation and other_transformation. No practical impact
2021-04-04Database: add a PROJ.VERSION metadata entryEven Rouault
2021-04-03Merge pull request #2637 from rouault/hyperbolic_cassEven Rouault
Add support for hyperbolic Cassini-Soldner
2021-04-03Add mapping between EPSG method 'Hyperbolic Cassini-Soldner' and +proj=cass ↵Even Rouault
+hyperbolic
2021-04-03cass: add +hyperbolic switch for variant used by EPSG:3139 'Vanua Levu 1915 ↵Even Rouault
/ Vanua Levu Grid'
2021-04-03Generic inverse: fix when initial guess if super close to resultEven Rouault
2021-04-03cass: rewrite ellipsoidal formulas in a clearer way using EPSG guidance note ↵Even Rouault
names
2021-04-03reproject_bbox(): reduce number of magic valuesEven Rouault
2021-04-02Merge pull request #2635 from rouault/epsg_10_018Even Rouault
Database: update to EPSG v10.018
2021-04-02Database: update to EPSG v10.018Even Rouault
Just fixes 4 wrong transformations of v10.017