38 return "InvalidVersion";
40 return "OutputFormatNotSupported";
42 return "LayerNotDefined";
44 return "ExclusiveParameters";
46 return "LayerNotRetrievable";
48 return "LayerNotWritable";
50 return "IncorrectSizeParameter";
54 return "InvalidParameterValue";
56 return "MissingParameterValue";
78 fprintf(o->
output,
"<?xml version=\"1.0\" encoding=\"%s\"?>\n", o->
encoding->
buf);
79 fprintf(o->
output,
"<ServiceExceptionReport\n");
80 fprintf(o->
output,
" xmlns=\"http://www.opengis.net/ogc\"\n");
81 fprintf(o->
output,
" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n");
82 fprintf(o->
output,
" xsi:schemaLocation=\"http://www.opengis.net/ogc");
83 fprintf(o->
output,
" http://schemas.opengis.net/wms/1.1.1/OGC-exception.xsd\"\n");
84 fprintf(o->
output,
"version=\"1.2.0\">\n");
86 fprintf(o->
output,
" locator=\"%s\">\n%s", locator, message);
87 fprintf(o->
output,
"</ServiceException>\n");
88 fprintf(o->
output,
"</ServiceExceptionReport>\n");
107 fprintf(o->
output,
"<?xml version='1.0' encoding='UTF-8'?>\n");
108 fprintf(o->
output,
"<ExceptionReport\n");
109 fprintf(o->
output,
" xmlns='http://www.opengis.net/ows'\n");
110 fprintf(o->
output,
" xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'\n");
111 fprintf(o->
output,
" xsi:schemaLocation='http://www.opengis.net/ows");
112 fprintf(o->
output,
" http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd'\n");
113 fprintf(o->
output,
" version='1.0.0' language='en'>\n");
115 fprintf(o->
output,
" <ExceptionText>%s</ExceptionText>\n", message);
116 fprintf(o->
output,
" </Exception>\n");
117 fprintf(o->
output,
"</ExceptionReport>\n");
134 fprintf(o->
output,
"Content-Type: application/xml\n\n");
void ows_log(ows *o, int log_level, const char *log)
int ows_version_get(ows_version *v)
@ WFS_ERROR_INVALID_VERSION
@ WFS_ERROR_EXCLUSIVE_PARAMETERS
@ WFS_ERROR_INVALID_PARAMETER
@ WFS_ERROR_INCORRECT_SIZE_PARAMETER
@ WFS_ERROR_LAYER_NOT_WRITABLE
@ WFS_ERROR_MISSING_PARAMETER
@ WFS_ERROR_OUTPUT_FORMAT_NOT_SUPPORTED
@ WFS_ERROR_LAYER_NOT_RETRIEVABLE
@ WFS_ERROR_LAYER_NOT_DEFINED
char * buf
size to next realloc
static char * wfs_error_code_string(enum wfs_error_code code)
static void wfs_error_100(ows *o, wfs_request *wf, enum wfs_error_code code, char *message, char *locator)
void wfs_error(ows *o, wfs_request *wf, enum wfs_error_code code, char *message, char *locator)
static void wfs_error_110(ows *o, wfs_request *wf, enum wfs_error_code code, char *message, char *locator)