* msWFSLayerGetNextShape() * **********************************************************************/
| 934 | * |
| 935 | **********************************************************************/ |
| 936 | int msWFSLayerNextShape(layerObj *layer, shapeObj *shape) |
| 937 | { |
| 938 | #ifdef USE_WFS_LYR |
| 939 | msWFSLayerInfo* psInfo = NULL; |
| 940 | |
| 941 | if(layer != NULL && layer->wfslayerinfo != NULL) |
| 942 | psInfo = (msWFSLayerInfo*)layer->wfslayerinfo; |
| 943 | else |
| 944 | { |
| 945 | msSetError(MS_WFSERR, "Layer is not opened.", "msWFSLayerNextShape()"); |
| 946 | return MS_FAILURE; |
| 947 | } |
| 948 | |
| 949 | if(psInfo->bLayerHasValidGML) |
| 950 | return msOGRLayerNextShape(layer, shape); |
| 951 | else |
| 952 | { |
| 953 | /* Layer is successful, but there is no data to process */ |
| 954 | msFreeShape(shape); |
| 955 | shape->type = MS_SHAPE_NULL; |
| 956 | return MS_FAILURE; |
| 957 | } |
| 958 | #else |
| 959 | /* ------------------------------------------------------------------ |
| 960 | * WFS CONNECTION Support not included... |
| 961 | * ------------------------------------------------------------------ */ |
| 962 | msSetError(MS_WFSCONNERR, "WFS CLIENT CONNECTION support is not available.", |
| 963 | "msWFSLayerNextShape()"); |
| 964 | return(MS_FAILURE); |
| 965 | #endif /* USE_WFS_LYR */ |
| 966 | |
| 967 | } |
| 968 | |
| 969 | /********************************************************************** |
| 970 | * msWFSLayerGetExtent() |
nothing calls this directly
no test coverage detected