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

Function msClusterLayerClose

mapcluster.c:1191–1212  ·  view source on GitHub ↗

Close the the combined layer */

Source from the content-addressed store, hash-verified

1189
1190/* Close the the combined layer */
1191int 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. */
1215int msClusterLayerIsOpen(layerObj *layer)

Callers

nothing calls this directly

Calls 5

clusterDestroyDataFunction · 0.85
msLayerCloseFunction · 0.85
freeLayerFunction · 0.85
msFreeFunction · 0.85
msInitializeVirtualTableFunction · 0.85

Tested by

no test coverage detected