MCPcopy Create free account
hub / github.com/OSGeo/gdal / OSRFindMatches

Function OSRFindMatches

ogr/ogrspatialreference.cpp:10265–10277  ·  view source on GitHub ↗

* \brief Try to identify a match between the passed SRS and a related SRS * in a catalog. * * Matching may be partial, or may fail. * Returned entries will be sorted by decreasing match confidence (first * entry has the highest match confidence). * * The exact way matching is done may change in future versions. Starting with * GDAL 3.0, it relies on PROJ' proj_identify() function. * * Th

Source from the content-addressed store, hash-verified

10263 *
10264 */
10265OGRSpatialReferenceH *OSRFindMatches(OGRSpatialReferenceH hSRS,
10266 CSLConstList papszOptions, int *pnEntries,
10267 int **ppanMatchConfidence)
10268{
10269 if (pnEntries)
10270 *pnEntries = 0;
10271 if (ppanMatchConfidence)
10272 *ppanMatchConfidence = nullptr;
10273 VALIDATE_POINTER1(hSRS, "OSRFindMatches", nullptr);
10274
10275 OGRSpatialReference *poSRS = ToPointer(hSRS);
10276 return poSRS->FindMatches(papszOptions, pnEntries, ppanMatchConfidence);
10277}
10278
10279/************************************************************************/
10280/* OSRFreeSRSArray() */

Callers 1

MAIN_STARTFunction · 0.85

Calls 2

FindMatchesMethod · 0.80
ToPointerFunction · 0.70

Tested by

no test coverage detected