From 6780dea0b5f9bbdd5c073ca0dc212477d837c0b9 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Sat, 9 Nov 2019 13:22:48 +0100 Subject: Doc: document oddity related to identification of CRS from ESRI WKT Or more generally formulations that don't have an explicit axis order. Refs https://github.com/pyproj4/pyproj/issues/475 projinfo 'GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]' returns EPSG:4326 with 100% confidence. But its axis order is not the same as EPSG:4326. I've pondered about this, like decreasing the confidence of the match, but this would have downstream effects on GDAL (shapefiles with the above content in a .prj would no longer be identified as EPSG:4326). So for now, document that oddity. --- src/iso19111/c_api.cpp | 24 ++++++++++++++++------ src/iso19111/crs.cpp | 55 ++++++++++++++++++++++++++++++++++++-------------- 2 files changed, 58 insertions(+), 21 deletions(-) (limited to 'src') diff --git a/src/iso19111/c_api.cpp b/src/iso19111/c_api.cpp index f3badb51..5f34a22b 100644 --- a/src/iso19111/c_api.cpp +++ b/src/iso19111/c_api.cpp @@ -2158,14 +2158,26 @@ PJ *proj_get_target_crs(PJ_CONTEXT *ctx, const PJ *obj) { * The method returns a list of matching reference CRS, and the percentage * (0-100) of confidence in the match. The list is sorted by decreasing * confidence. - * - * 100% means that the name of the reference entry + * * Other confidence values may be returned by some specialized implementations. * * This is implemented for GeodeticCRS, ProjectedCRS, VerticalCRS and diff --git a/src/iso19111/crs.cpp b/src/iso19111/crs.cpp index b9b38c80..2cae3851 100644 --- a/src/iso19111/crs.cpp +++ b/src/iso19111/crs.cpp @@ -697,14 +697,26 @@ CRSNNPtr CRS::normalizeForVisualization() const { * The method returns a list of matching reference CRS, and the percentage * (0-100) of confidence in the match. The list is sorted by decreasing * confidence. - * - * 100% means that the name of the reference entry + * * Other confidence values may be returned by some specialized implementations. * * This is implemented for GeodeticCRS, ProjectedCRS, VerticalCRS and @@ -1596,17 +1608,30 @@ static bool hasCodeCompatibleOfAuthorityFactory( * authorityFactory is not null. * * The method returns a list of matching reference CRS, and the percentage - * (0-100) of confidence in the match. - * 100% means that the name of the reference entry + * (0-100) of confidence in the match: + * * * @param authorityFactory Authority factory (or null, but degraded * functionality) -- cgit v1.2.3