/ msSLDParsePointSymbolizer */ / Parse point symbolizer. */ / */ */ */
| 2117 | /* </xs:element> */ |
| 2118 | /************************************************************************/ |
| 2119 | int 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 | /************************************************************************/ |
no test coverage detected