From acb2bd68bcfda90eb1f1d0bc12debaf9d051d6b9 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Fri, 10 Jan 2020 00:34:36 +0100 Subject: Doc of CRS::identify(): make it clear that this is a best-effort attempt only --- src/iso19111/c_api.cpp | 4 ++++ src/iso19111/crs.cpp | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+) (limited to 'src') diff --git a/src/iso19111/c_api.cpp b/src/iso19111/c_api.cpp index 7d4f5eba..9f73f8e9 100644 --- a/src/iso19111/c_api.cpp +++ b/src/iso19111/c_api.cpp @@ -2192,6 +2192,10 @@ PJ *proj_get_target_crs(PJ_CONTEXT *ctx, const PJ *obj) { * The candidate CRSs are either hard-coded, or looked in the database when * it is available. * + * Note that the implementation uses a set of heuristics to have a good + * compromise of successful identifications over execution time. It might miss + * legitimate matches in some circumstances. + * * 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. diff --git a/src/iso19111/crs.cpp b/src/iso19111/crs.cpp index cf90c388..a24508d4 100644 --- a/src/iso19111/crs.cpp +++ b/src/iso19111/crs.cpp @@ -730,6 +730,10 @@ CRSNNPtr CRS::normalizeForVisualization() const { * The candidate CRSs are either hard-coded, or looked in the database when * authorityFactory is not null. * + * Note that the implementation uses a set of heuristics to have a good + * compromise of successful identifications over execution time. It might miss + * legitimate matches in some circumstances. + * * 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. @@ -1648,6 +1652,10 @@ static bool hasCodeCompatibleOfAuthorityFactory( * The candidate CRSs are either hard-coded, or looked in the database when * authorityFactory is not null. * + * Note that the implementation uses a set of heuristics to have a good + * compromise of successful identifications over execution time. It might miss + * legitimate matches in some circumstances. + * * The method returns a list of matching reference CRS, and the percentage * (0-100) of confidence in the match: *