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

Function msWFSLayerClose

mapwfslayer.c:1237–1269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1235 **********************************************************************/
1236
1237int msWFSLayerClose(layerObj *lp)
1238{
1239#ifdef USE_WFS_LYR
1240
1241/* ------------------------------------------------------------------
1242 * Cleanup OGR connection
1243 * ------------------------------------------------------------------ */
1244 if (lp->layerinfo)
1245 msOGRLayerClose(lp);
1246
1247/* ------------------------------------------------------------------
1248 * Cleanup WFS connection info.
1249 * __TODO__ For now we flush everything, but we should try to cache some stuff
1250 * ------------------------------------------------------------------ */
1251 /* __TODO__ unlink() .gml file and OGR's schema file if they exist */
1252 /* unlink( */
1253
1254 msFreeWFSLayerInfo(lp->wfslayerinfo);
1255 lp->wfslayerinfo = NULL;
1256
1257 return MS_SUCCESS;
1258
1259#else
1260/* ------------------------------------------------------------------
1261 * WFS CONNECTION Support not included...
1262 * ------------------------------------------------------------------ */
1263 msSetError(MS_WFSCONNERR, "WFS CLIENT CONNECTION support is not available.",
1264 "msWFSLayerClose()");
1265 return(MS_FAILURE);
1266
1267#endif /* USE_WFS_LYR */
1268
1269}
1270
1271/**********************************************************************
1272 * msWFSExecuteGetFeature()

Callers 2

msWFSLayerOpenFunction · 0.85
msWFSExecuteGetFeatureFunction · 0.85

Calls 3

msOGRLayerCloseFunction · 0.85
msFreeWFSLayerInfoFunction · 0.85
msSetErrorFunction · 0.85

Tested by

no test coverage detected