<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/4.4.3">
</HEAD>
<BODY>
Hi folks,<BR>
<BR>
I hope one of you can help me. A few months ago I was working on a project using tinyows to display UK postcode areas on an OpenLayers map. That was working fine, but it was a prototype and hasn't been touched for quite a while.<BR>
<BR>
I've since set-up a new server and installed the trunk version of tinyows on it and found that instead of working fine tinyows returns the following error:<BR>
<BR>
<?xml version='1.0' encoding='UTF-8'?><BR>
<ows:ExceptionReport<BR>
xmlns='<A HREF="http://www.opengis.net/ows'">http://www.opengis.net/ows'</A><BR>
xmlns:ows='<A HREF="http://www.opengis.net/ows'">http://www.opengis.net/ows'</A><BR>
xmlns:xsi='<A HREF="http://www.w3.org/2001/XMLSchema-instance'">http://www.w3.org/2001/XMLSchema-instance'</A><BR>
xsi:schemaLocation='<A HREF="http://www.opengis.net/ows">http://www.opengis.net/ows</A> <A HREF="http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd'">http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd'</A><BR>
version='1.1.0' language='en'><BR>
<ows:Exception exceptionCode='InvalidParameterValue' locator='FILTER'><BR>
<ows:ExceptionText>Filter parameter doesn't validate WFS Schema</ows:ExceptionText><BR>
</ows:Exception><BR>
</ows:ExceptionReport><BR>
<BR>
The request being sent by OpenLayers is this:<BR>
<wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version="1.0.0" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><wfs:Query typeName="feature:areas" xmlns:feature="http://gis.mediatel.co.uk"><ogc:Filter xmlns:ogc="http://www.opengis.net/ogc"><ogc:BBOX><ogc:PropertyName>wkb_geometry</ogc:PropertyName><gml:Box xmlns:gml="<A HREF="http://www.opengis.net/gml">http://www.opengis.net/gml</A>" srsName="EPSG:3857"><gml:coordinates decimal="." cs="," ts=" ">-417651.92249206,6609322.2049643 417651.92249206,6811115.9596091</gml:coordinates></gml:Box></ogc:BBOX></ogc:Filter></wfs:Query></wfs:GetFeature><BR>
<BR>
I'm using a MAPFILE to configure tinyows because I was originally using mapserver instead (but I envisage the need for writing to the DB as well as reading). The mapfile is this:<BR>
<BR>
MAP<BR>
NAME "postcodes"<BR>
STATUS ON<BR>
EXTENT -180 -90 180 90<BR>
UNITS DD<BR>
<BR>
WEB<BR>
METADATA<BR>
"tinyows_schema_dir" "/usr/local/share/tinyows/schema/"<BR>
"tinyows_onlineresource" "richardt.gis.mediatel.co.uk/wfs"<BR>
"wfs_title" "Postcode Data"<BR>
"wfs_enable_request" "*"<BR>
"wfs_namespace_uri" "http://gis.mediatel.co.uk"<BR>
"wfs_namespace_prefix" "mtl"<BR>
END<BR>
END<BR>
<BR>
PROJECTION<BR>
"init=epsg:3857"<BR>
END<BR>
<BR>
LAYER<BR>
NAME "areas"<BR>
METADATA<BR>
"wfs_name" "areas"<BR>
"wfs_title" "Postcode Areas"<BR>
"gml_featureid" "ogc_fid"<BR>
"gml_include_items" "all"<BR>
"wfs_enable_request" "*"<BR>
"tinyows_table" "postcode_area_boundaries"<BR>
"tinyows_retrievable" "1"<BR>
"tinyows_writable" "1"<BR>
"wfs_srs" "EPSG:3857"<BR>
END<BR>
TYPE POLYGON<BR>
STATUS DEFAULT<BR>
CONNECTIONTYPE postgis<BR>
CONNECTION "host=localhost dbname=osm user=osm password=osm"<BR>
DATA "wkb_geometry FROM postcode_area_boundaries"<BR>
DUMP TRUE<BR>
END<BR>
<BR>
LAYER<BR>
NAME "sectors"<BR>
METADATA<BR>
"wfs_name" "sectors"<BR>
"wfs_title" "Postcode Sectors"<BR>
"gml_featureid" "ogc_fid"<BR>
"gml_include_items" "all"<BR>
"wfs_enable_request" "*"<BR>
"tinyows_table" "postcode_sector_boundaries"<BR>
"tinyows_retrievable" "1"<BR>
"tinyows_writable" "1"<BR>
"wfs_srs" "EPSG:3857"<BR>
END<BR>
TYPE POLYGON<BR>
STATUS DEFAULT<BR>
CONNECTIONTYPE postgis<BR>
CONNECTION "host=localhost dbname=osm user=osm password=osm"<BR>
DATA "wkb_geometry FROM postcode_sector_boundaries"<BR>
DUMP TRUE<BR>
END<BR>
END<BR>
<BR>
Can anyone point me in the right direction here please?<BR>
<BR>
Cheers,<BR>
Richard
</BODY>
</HTML>