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

Function msSLDParsePointSymbolizer

mapogcsld.c:2119–2148  ·  view source on GitHub ↗

/ msSLDParsePointSymbolizer */ / Parse point symbolizer. */ / */ */ */

Source from the content-addressed store, hash-verified

2117/* </xs:element> */
2118/************************************************************************/
2119int msSLDParsePointSymbolizer(CPLXMLNode *psRoot, layerObj *psLayer,
2120 int bNewClass)
2121{
2122 int nClassId = 0;
2123 int iStyle = 0;
2124
2125 if (!psRoot || !psLayer)
2126 return MS_FAILURE;
2127
2128 if (bNewClass || psLayer->numclasses <= 0)
2129 {
2130 if (msGrowLayerClasses(psLayer) == NULL)
2131 return MS_FAILURE;
2132 initClass(psLayer->class[psLayer->numclasses]);
2133 nClassId = psLayer->numclasses;
2134 psLayer->numclasses++;
2135 }
2136 else
2137 nClassId = psLayer->numclasses-1;
2138
2139 iStyle = psLayer->class[nClassId]->numstyles;
2140 msMaybeAllocateClassStyle(psLayer->class[nClassId], iStyle);
2141
2142
2143 msSLDParseGraphicFillOrStroke(psRoot, NULL,
2144 psLayer->class[nClassId]->styles[iStyle],
2145 psLayer->map, 1);
2146
2147 return MS_SUCCESS;
2148}
2149
2150
2151/************************************************************************/

Callers 1

msSLDParseRuleFunction · 0.85

Calls 4

msGrowLayerClassesFunction · 0.85
initClassFunction · 0.85

Tested by

no test coverage detected