MCPcopy Create free account
hub / github.com/MapServer/MapServer / msWFSExecuteGetFeature

Function msWFSExecuteGetFeature

mapwfslayer.c:1275–1302  ·  view source on GitHub ↗

* msWFSExecuteGetFeature() * Returns the temporary gml file name. User shpuld free the return string. **********************************************************************/

Source from the content-addressed store, hash-verified

1273 * Returns the temporary gml file name. User shpuld free the return string.
1274 **********************************************************************/
1275char *msWFSExecuteGetFeature(layerObj *lp)
1276{
1277#ifdef USE_WFS_LYR
1278 char *gmltmpfile = NULL;
1279 msWFSLayerInfo *psInfo = NULL;
1280
1281 if (lp == NULL || lp->connectiontype != MS_WFS)
1282 return NULL;
1283
1284 msWFSLayerOpen(lp, NULL, NULL);
1285 psInfo =(msWFSLayerInfo*)lp->wfslayerinfo;
1286 if (psInfo && psInfo->pszGMLFilename)
1287 gmltmpfile = msStrdup(psInfo->pszGMLFilename);
1288 msWFSLayerClose(lp);
1289
1290 return gmltmpfile;
1291
1292#else
1293/* ------------------------------------------------------------------
1294 * WFS CONNECTION Support not included...
1295 * ------------------------------------------------------------------ */
1296 msSetError(MS_WFSCONNERR, "WFS CLIENT CONNECTION support is not available.",
1297 "msExecuteWFSGetFeature()");
1298 return NULL;
1299
1300#endif /* USE_WFS_LYR */
1301
1302}
1303
1304int
1305msWFSLayerInitializeVirtualTable(layerObj *layer)

Callers 1

Calls 4

msWFSLayerOpenFunction · 0.85
msStrdupFunction · 0.85
msWFSLayerCloseFunction · 0.85
msSetErrorFunction · 0.85

Tested by

no test coverage detected