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

Function msUnionLayerClose

mapunion.c:59–83  ·  view source on GitHub ↗

Close the the combined layer */

Source from the content-addressed store, hash-verified

57
58/* Close the the combined layer */
59int msUnionLayerClose(layerObj *layer)
60{
61 int i;
62 msUnionLayerInfo* layerinfo = (msUnionLayerInfo*)layer->layerinfo;
63
64 if (!layerinfo)
65 return MS_SUCCESS;
66
67 if (!layer->map)
68 return MS_FAILURE;
69
70 for (i = 0; i < layerinfo->layerCount; i++)
71 {
72 msLayerClose(&layerinfo->layers[i]);
73 freeLayer(&layerinfo->layers[i]);
74 }
75 msFree(layerinfo->layers);
76 msFree(layerinfo->status);
77 msFree(layerinfo->classgroup);
78 msFree(layerinfo->classText);
79 msFree(layerinfo);
80 layer->layerinfo = NULL;
81
82 return MS_SUCCESS;
83}
84
85int msUnionLayerOpen(layerObj *layer)
86{

Callers 1

msUnionLayerOpenFunction · 0.85

Calls 3

msLayerCloseFunction · 0.85
freeLayerFunction · 0.85
msFreeFunction · 0.85

Tested by

no test coverage detected