MCPcopy Index your code
hub / github.com/MapServer/MapServer / msGetMapContextXMLHashValue

Function msGetMapContextXMLHashValue

mapcontext.c:102–125  ·  view source on GitHub ↗

**msGetMapContextXMLHashValue() ** **Get the xml value and put it in the hash table ** */

Source from the content-addressed store, hash-verified

100**
101*/
102int msGetMapContextXMLHashValue( CPLXMLNode *psRoot, const char *pszXMLPath,
103 hashTableObj *metadata, char *pszMetadata )
104{
105 char *pszValue;
106
107 pszValue = (char*)CPLGetXMLValue( psRoot, pszXMLPath, NULL);
108 if(pszValue != NULL)
109 {
110 if( metadata != NULL )
111 {
112 msInsertHashTable(metadata, pszMetadata, pszValue );
113 }
114 else
115 {
116 return MS_FAILURE;
117 }
118 }
119 else
120 {
121 return MS_FAILURE;
122 }
123
124 return MS_SUCCESS;
125}
126
127/*
128**msGetMapContextXMLHashValue()

Callers 7

msLoadMapContextGeneralFunction · 0.85
msLoadMapContextLayerFunction · 0.85
msLoadMapContextFunction · 0.85

Calls 1

msInsertHashTableFunction · 0.85

Tested by

no test coverage detected