* msWFSExecuteGetFeature() * Returns the temporary gml file name. User shpuld free the return string. **********************************************************************/
| 1273 | * Returns the temporary gml file name. User shpuld free the return string. |
| 1274 | **********************************************************************/ |
| 1275 | char *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 | |
| 1304 | int |
| 1305 | msWFSLayerInitializeVirtualTable(layerObj *layer) |
no test coverage detected