Close the the combined layer */
| 1189 | |
| 1190 | /* Close the the combined layer */ |
| 1191 | int msClusterLayerClose(layerObj *layer) |
| 1192 | { |
| 1193 | msClusterLayerInfo* layerinfo = (msClusterLayerInfo*)layer->layerinfo; |
| 1194 | |
| 1195 | if (!layerinfo) |
| 1196 | return MS_SUCCESS; |
| 1197 | |
| 1198 | clusterDestroyData(layerinfo); |
| 1199 | |
| 1200 | msLayerClose(&layerinfo->srcLayer); |
| 1201 | freeLayer(&layerinfo->srcLayer); |
| 1202 | |
| 1203 | msFree(layerinfo); |
| 1204 | layer->layerinfo = NULL; |
| 1205 | |
| 1206 | #ifndef USE_CLUSTER_EXTERNAL |
| 1207 | /* switch back to the source layer vtable */ |
| 1208 | msInitializeVirtualTable(layer); |
| 1209 | #endif |
| 1210 | |
| 1211 | return MS_SUCCESS; |
| 1212 | } |
| 1213 | |
| 1214 | /* Return MS_TRUE if layer is open, MS_FALSE otherwise. */ |
| 1215 | int msClusterLayerIsOpen(layerObj *layer) |
nothing calls this directly
no test coverage detected