Hi,<br>
<br>
I'm getting an unusual response from mapserver when I make a WFS request with filter <br>
encoding on a layer that uses a tile index; it returns a box with -1 as all corners. Is <br>
there anything that can be done to make this work, or is this a know limitation of <br>
mapserver?<br>
<br>
WFS works on the layer with the tile index as long as I don't use any FE. WFS with FE <br>
works on a test layer that references one of the shapefiles directly instead of the tile <br>
index. Below is some information about what I'm trying and my environment:<br>
<br>
Sample WFS Requests with FE:<br>
<a class="fixed" href="https://webmail.service.emory.edu/horde/services/go.php?url=http%3A%2F%2Fwilson.library.emory.edu%2F%7Emapserver%2Fcgi-bin%2Fsouth%3FSERVICE%3DWFS%26VERSION%3D1.0.0%26REQUEST%3Dgetfeature%26TYPENAME%3DUrban_Areas%26Filter%3D" target="_blank">
http://wilson.library.emory.edu/~mapserver/cgi-bin/south?SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=Urban_Areas&Filter=</a><Filter><PropertyIsEqualTo><PropertyName>NAME</PropertyName><Literal>Arcola</Literal></PropertyIsEqualTo></Filter>
<br>
<a class="fixed" href="https://webmail.service.emory.edu/horde/services/go.php?url=http%3A%2F%2Fwilson.library.emory.edu%2F%7Emapserver%2Fcgi-bin%2Fsouth%3FSERVICE%3DWFS%26VERSION%3D1.0.0%26REQUEST%3Dgetfeature%26TYPENAME%3DUrban_Areas%26Filter%3D" target="_blank">
http://wilson.library.emory.edu/~mapserver/cgi-bin/south?SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=Urban_Areas&Filter=</a><Filter><PropertyIsEqualTo><PropertyName>PLACE</PropertyName><Literal>01820</Literal></PropertyIsEqualTo></Filter>
<br>
<br>
The response:<br>
<?xml version='1.0' encoding="ISO-8859-1" ?><br>
<wfs:FeatureCollection<br>
xmlns:ms="<a class="fixed" href="https://webmail.service.emory.edu/horde/services/go.php?url=http%3A%2F%2Fmapserver.gis.umn.edu%2Fmapserver" target="_blank">http://mapserver.gis.umn.edu/mapserver</a>"<br>
xmlns:wfs="<a class="fixed" href="https://webmail.service.emory.edu/horde/services/go.php?url=http%3A%2F%2Fwww.opengis.net%2Fwfs" target="_blank">http://www.opengis.net/wfs</a>"<br>
xmlns:gml="<a class="fixed" href="https://webmail.service.emory.edu/horde/services/go.php?url=http%3A%2F%2Fwww.opengis.net%2Fgml" target="_blank">http://www.opengis.net/gml</a>"<br>
xmlns:ogc="<a class="fixed" href="https://webmail.service.emory.edu/horde/services/go.php?url=http%3A%2F%2Fwww.opengis.net%2Fogc" target="_blank">http://www.opengis.net/ogc</a>"<br>
xmlns:xsi="<a class="fixed" href="https://webmail.service.emory.edu/horde/services/go.php?url=http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>"
<br>
xsi:schemaLocation="<a class="fixed" href="https://webmail.service.emory.edu/horde/services/go.php?url=http%3A%2F%2Fwww.opengis.net%2Fwfs" target="_blank">http://www.opengis.net/wfs</a> <br>
<a class="fixed" href="https://webmail.service.emory.edu/horde/services/go.php?url=http%3A%2F%2Fschemas.opengis.net%2Fwfs%2F1.0.0%2FWFS-basic.xsd" target="_blank">http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd</a>
<br>
<a class="fixed" href="https://webmail.service.emory.edu/horde/services/go.php?url=http%3A%2F%2Fmapserver.gis.umn.edu%2Fmapserver" target="_blank">http://mapserver.gis.umn.edu/mapserver</a> <br>
<a class="fixed" href="https://webmail.service.emory.edu/horde/services/go.php?url=http%3A%2F%2Fwilson.library.emory.edu%2F%7Emapserver%2Fcgi-bin%2Fsouth%3FSERVICE%3DWFS%26VERSION%3D1.0.0%26REQUEST%3DDescribeFeatureType%26TYPENAME%3DUrban_Areas%26OUTPUTFORMAT%3DXMLSCHEMA" target="_blank">
http://wilson.library.emory.edu/~mapserver/cgi-bin/south?SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=Urban_Areas&OUTPUTFORMAT=XMLSCHEMA</a>"><br>
<gml:boundedBy><br>
<gml:Box srsName="EPSG:4326"><br>
<gml:coordinates>-1.000000,-1.000000 -1.000000,-1.000000</gml:coordinates><br>
</gml:Box><br>
</gml:boundedBy><br>
</wfs:FeatureCollection><br>
<br>
Sample WFS Request without FE:<br>
<a class="fixed" href="https://webmail.service.emory.edu/horde/services/go.php?url=http%3A%2F%2Fwilson.library.emory.edu%2F%7Emapserver%2Fcgi-bin%2Fsouth%3FSERVICE%3DWFS%26VERSION%3D1.0.0%26REQUEST%3Dgetfeature%26TYPENAME%3DUrban_Areas%26MAXFEATURES%3D1" target="_blank">
http://wilson.library.emory.edu/~mapserver/cgi-bin/south?SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=Urban_Areas&MAXFEATURES=1</a><br>
<br>
The response:<br>
<?xml version='1.0' encoding="ISO-8859-1" ?><br>
<wfs:FeatureCollection<br>
xmlns:ms="<a class="fixed" href="https://webmail.service.emory.edu/horde/services/go.php?url=http%3A%2F%2Fmapserver.gis.umn.edu%2Fmapserver" target="_blank">http://mapserver.gis.umn.edu/mapserver</a>"<br>
xmlns:wfs="<a class="fixed" href="https://webmail.service.emory.edu/horde/services/go.php?url=http%3A%2F%2Fwww.opengis.net%2Fwfs" target="_blank">http://www.opengis.net/wfs</a>"<br>
xmlns:gml="<a class="fixed" href="https://webmail.service.emory.edu/horde/services/go.php?url=http%3A%2F%2Fwww.opengis.net%2Fgml" target="_blank">http://www.opengis.net/gml</a>"<br>
xmlns:ogc="<a class="fixed" href="https://webmail.service.emory.edu/horde/services/go.php?url=http%3A%2F%2Fwww.opengis.net%2Fogc" target="_blank">http://www.opengis.net/ogc</a>"<br>
xmlns:xsi="<a class="fixed" href="https://webmail.service.emory.edu/horde/services/go.php?url=http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>"
<br>
xsi:schemaLocation="<a class="fixed" href="https://webmail.service.emory.edu/horde/services/go.php?url=http%3A%2F%2Fwww.opengis.net%2Fwfs" target="_blank">http://www.opengis.net/wfs</a> <br>
<a class="fixed" href="https://webmail.service.emory.edu/horde/services/go.php?url=http%3A%2F%2Fschemas.opengis.net%2Fwfs%2F1.0.0%2FWFS-basic.xsd" target="_blank">http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd</a>
<br>
<a class="fixed" href="https://webmail.service.emory.edu/horde/services/go.php?url=http%3A%2F%2Fmapserver.gis.umn.edu%2Fmapserver" target="_blank">http://mapserver.gis.umn.edu/mapserver</a> <br>
<a class="fixed" href="https://webmail.service.emory.edu/horde/services/go.php?url=http%3A%2F%2Fwilson.library.emory.edu%2F%7Emapserver%2Fcgi-bin%2Fsouth%3FSERVICE%3DWFS%26VERSION%3D1.0.0%26REQUEST%3DDescribeFeatureType%26TYPENAME%3DUrban_Areas%26OUTPUTFORMAT%3DXMLSCHEMA" target="_blank">
http://wilson.library.emory.edu/~mapserver/cgi-bin/south?SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=Urban_Areas&OUTPUTFORMAT=XMLSCHEMA</a>"><br>
<gml:boundedBy><br>
<gml:Box srsName="EPSG:4326"><br>
<gml:coordinates>-91.429176,24.844480 -75.562841,36.641761</gml:coordinates><br>
</gml:Box><br>
</gml:boundedBy><br>
<gml:featureMember><br>
<ms:Urban_Areas fid="Arcola"><br>
<gml:boundedBy><br>
<gml:Box srsName="EPSG:4326"><br>
<gml:coordinates>-90.885096,33.266165 -90.875910,33.274779</gml:coordinates><br>
</gml:Box><br>
</gml:boundedBy><br>
<ms:msGeometry><br>
<gml:Polygon srsName="EPSG:4326"><br>
<gml:outerBoundaryIs><br>
<gml:LinearRing><br>
<gml:coordinates>-90.884500,33.269424 -90.885040,33.269421 <br>
-90.885082,33.272127 -90.885096,33.273023 -90.883338,33.273026 -90.879469,33.273030 <br>
-90.879464,33.273206 -90.879413,33.274749 -90.876712,33.274772 -90.875930,33.274779 <br>
-90.875910,33.272084 -90.876238,33.270229 -90.876375,33.269817 -90.876403,33.269665 <br>
-90.876649,33.268329 -90.877004,33.266749 -90.877707,33.266755 -90.880544,33.266781 <br>
-90.880502,33.266688 -90.880420,33.266507 -90.881163,33.266376 -90.882357,33.266165 <br>
-90.882984,33.267974 -90.883487,33.269427 -90.883781,33.269426 -90.884500,33.269424 <br>
</gml:coordinates><br>
</gml:LinearRing><br>
</gml:outerBoundaryIs><br>
</gml:Polygon><br>
</ms:msGeometry><br>
<ms:GIST_ID>1</ms:GIST_ID><br>
<ms:COUNTY>28151</ms:COUNTY><br>
<ms:PLACE>01820</ms:PLACE><br>
<ms:NAME>Arcola</ms:NAME><br>
<ms:LSADC>60</ms:LSADC><br>
<ms:ENTITY>P</ms:ENTITY><br>
<ms:FIPSCC>C1</ms:FIPSCC><br>
<ms:PLACEDC>0</ms:PLACEDC><br>
</ms:Urban_Areas><br>
</gml:featureMember><br>
</wfs:FeatureCollection><br>
<br>
GetCapabilities report for the layer:<br>
<FeatureType><br>
<Name>Urban_Areas</Name><br>
<Title>Urban Areas</Title><br>
<SRS>EPSG:4326</SRS><br>
<LatLongBoundingBox minx="-91.4292" miny="0" maxx="0" maxy="36.6418" /><br>
</FeatureType><br>
<br>
Excerpts from the mapfile:<br>
WEB<br>
METADATA<br>
'wms_title' 'SouthComb WMS Server'<br>
'wms_onlineresource' '<a class="fixed" href="https://webmail.service.emory.edu/horde/services/go.php?url=http%3A%2F%2Fwilson.library.emory.edu%2F%7Emapserver%2Fcgi-bin%2Fsouth%3F" target="_blank">
http://wilson.library.emory.edu/~mapserver/cgi-bin/south?</a>'<br>
'wms_srs' 'EPSG:4326'<br>
'wfs_title' 'SouthComb WFS Server'<br>
'wfs_onlineresource' '<a class="fixed" href="https://webmail.service.emory.edu/horde/services/go.php?url=http%3A%2F%2Fwilson.library.emory.edu%2F%7Emapserver%2Fcgi-bin%2Fsouth%3F" target="_blank">
http://wilson.library.emory.edu/~mapserver/cgi-bin/south?</a>'<br>
'wfs_srs' 'EPSG:4326'<br>
END<br>
END<br>
<br>
LAYER<br>
NAME 'Urban_Areas'<br>
TYPE POLYGON<br>
TILEINDEX 'placecu.shp'<br>
TILEITEM 'location'<br>
DUMP TRUE # allow GML export<br>
METADATA<br>
'wms_title' 'Urban Areas'<br>
'wfs_title' 'Urban Areas'<br>
'gml_featureid' 'name'<br>
'gml_include_items' 'all'<br>
END<br>
STATUS OFF<br>
LABELCACHE ON<br>
LABELITEM 'NAME'<br>
PROJECTION<br>
'init=epsg:4326'<br>
END<br>
CLASS<br>
NAME placecu MAXSCALE 1000000<br>
STYLE<br>
SYMBOL 0
SIZE 6 OUTLINECOLOR 106 46 34<br>
COLOR 248 241 223<br>
END<br>
LABEL<br>
TYPE TRUETYPE<br>
FONT sans<br>
SIZE 14<br>
COLOR 0 0 0<br>
<br>
END<br>
END<br>
END<br>
<br>
Attributes reported by ogrinfo for one of the shapfiles that the tile index file <br>
placecu.shp references:<br>
GIST_ID: Integer (8.0)<br>
COUNTY: String (5.0)<br>
PLACE: String (5.0)<br>
NAME: String (60.0)<br>
LSADC: String (2.0)<br>
ENTITY: String (1.0)<br>
FIPSCC: String (2.0)<br>
PLACEDC: String (1.0)<br>
<br>
Thanks,<br>
Urvashi Gadi<br>