| 245 | } |
| 246 | |
| 247 | int 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 */ |
| 272 | int pieLayerProcessDynamicDiameter(layerObj *layer) { |
no test coverage detected