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

Function getNextShape

mapchart.c:247–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245}
246
247int getNextShape(mapObj *map, layerObj *layer, float *values, styleObj **styles, shapeObj *shape) {
248 int status;
249 int c;
250 status = msLayerNextShape(layer, shape);
251 if(status == MS_SUCCESS) {
252#ifdef USE_PROJ
253 if(layer->project && msProjectionsDiffer(&(layer->projection), &(map->projection)))
254 msProjectShape(&layer->projection, &map->projection, shape);
255 else
256 layer->project = MS_FALSE;
257#endif
258
259 if(msBindLayerToShape(layer, shape, MS_FALSE) != MS_SUCCESS)
260 return MS_FAILURE; /* error message is set in msBindLayerToShape() */
261
262 for(c=0;c<layer->numclasses;c++)
263 {
264 values[c]=(layer->class[c]->styles[0]->size);
265 styles[c]=layer->class[c]->styles[0];
266 }
267 }
268 return status;
269}
270
271/* eventually add a class to the layer to get the diameter from an attribute */
272int pieLayerProcessDynamicDiameter(layerObj *layer) {

Callers 3

msDrawPieChartLayerFunction · 0.85
msDrawVBarChartLayerFunction · 0.85
msDrawBarChartLayerFunction · 0.85

Calls 4

msLayerNextShapeFunction · 0.85
msProjectionsDifferFunction · 0.85
msProjectShapeFunction · 0.85
msBindLayerToShapeFunction · 0.85

Tested by

no test coverage detected