MCPcopy Create free account
hub / github.com/MapServer/MapServer / msOWSLookupMetadata2

Function msOWSLookupMetadata2

mapows.c:482–496  ·  view source on GitHub ↗

** msOWSLookupMetadata2() ** ** Attempts to lookup a given metadata name in multiple hashTables, and ** in multiple OWS namespaces within each. First searches the primary ** table and if no result is found, attempts the search using the ** secondary (fallback) table. ** ** 'namespaces' is a string with a letter for each namespace to lookup ** in the order they should be looked up. e.g. "MO" to l

Source from the content-addressed store, hash-verified

480** lookup.
481*/
482const char *msOWSLookupMetadata2(hashTableObj *pri,
483 hashTableObj *sec,
484 const char *namespaces,
485 const char *name)
486{
487 const char *result;
488
489 if ((result = msOWSLookupMetadata(pri, namespaces, name)) == NULL)
490 {
491 /* Try the secondary table */
492 result = msOWSLookupMetadata(sec, namespaces, name);
493 }
494
495 return result;
496}
497
498
499/* msOWSParseVersionString()

Callers 2

msPrepareWMSLayerRequestFunction · 0.85
msOWSPrintBoundingBoxFunction · 0.85

Calls 1

msOWSLookupMetadataFunction · 0.85

Tested by

no test coverage detected