Hi,

I'm getting an unusual response from mapserver when I make a WFS request
with filter
encoding on a layer that uses a tile index; it returns a box with -1 as all
corners. Is
there anything that can be done to make this work, or is this a know
limitation of
mapserver?

WFS works on the layer with the tile index as long as I don't use any FE.
WFS with FE
works on a test layer that references one of the shapefiles directly instead
of the tile
index. Below is some information about what I'm trying and my environment:

Sample WFS Requests with FE:
http://wilson.library.emory.edu/~mapserver/cgi-bin/south?SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=Urban_Areas&Filter=<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>
<Filter><PropertyIsEqualTo><PropertyName>NAME</PropertyName><Literal>Arcola</Literal></PropertyIsEqualTo></Filter>
http://wilson.library.emory.edu/~mapserver/cgi-bin/south?SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=Urban_Areas&Filter=<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>
<Filter><PropertyIsEqualTo><PropertyName>PLACE</PropertyName><Literal>01820</Literal></PropertyIsEqualTo></Filter>

The response:
<?xml version='1.0' encoding="ISO-8859-1" ?>
<wfs:FeatureCollection
 
xmlns:ms="http://mapserver.gis.umn.edu/mapserver<https://webmail.service.emory.edu/horde/services/go.php?url=http%3A%2F%2Fmapserver.gis.umn.edu%2Fmapserver>
"
 
xmlns:wfs="http://www.opengis.net/wfs<https://webmail.service.emory.edu/horde/services/go.php?url=http%3A%2F%2Fwww.opengis.net%2Fwfs>
"
 
xmlns:gml="http://www.opengis.net/gml<https://webmail.service.emory.edu/horde/services/go.php?url=http%3A%2F%2Fwww.opengis.net%2Fgml>
"
 
xmlns:ogc="http://www.opengis.net/ogc<https://webmail.service.emory.edu/horde/services/go.php?url=http%3A%2F%2Fwww.opengis.net%2Fogc>
"
 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance<https://webmail.service.emory.edu/horde/services/go.php?url=http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance>
"
 
xsi:schemaLocation="http://www.opengis.net/wfs<https://webmail.service.emory.edu/horde/services/go.php?url=http%3A%2F%2Fwww.opengis.net%2Fwfs>
http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd<https://webmail.service.emory.edu/horde/services/go.php?url=http%3A%2F%2Fschemas.opengis.net%2Fwfs%2F1.0.0%2FWFS-basic.xsd>

http://mapserver.gis.umn.edu/mapserver<https://webmail.service.emory.edu/horde/services/go.php?url=http%3A%2F%2Fmapserver.gis.umn.edu%2Fmapserver>
http://wilson.library.emory.edu/~mapserver/cgi-bin/south?SERVICE=WFS&amp;VERSION=1.0.0&amp;REQUEST=DescribeFeatureType&amp;TYPENAME=Urban_Areas&amp;OUTPUTFORMAT=XMLSCHEMA<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>
">
    <gml:boundedBy>
            <gml:Box srsName="EPSG:4326">
                    <gml:coordinates>-1.000000,-1.000000 -1.000000,-
1.000000</gml:coordinates>
            </gml:Box>
    </gml:boundedBy>
</wfs:FeatureCollection>

Sample WFS Request without FE:
http://wilson.library.emory.edu/~mapserver/cgi-bin/south?SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=Urban_Areas&MAXFEATURES=1<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>

The response:
<?xml version='1.0' encoding="ISO-8859-1" ?>
<wfs:FeatureCollection
 
xmlns:ms="http://mapserver.gis.umn.edu/mapserver<https://webmail.service.emory.edu/horde/services/go.php?url=http%3A%2F%2Fmapserver.gis.umn.edu%2Fmapserver>
"
 
xmlns:wfs="http://www.opengis.net/wfs<https://webmail.service.emory.edu/horde/services/go.php?url=http%3A%2F%2Fwww.opengis.net%2Fwfs>
"
 
xmlns:gml="http://www.opengis.net/gml<https://webmail.service.emory.edu/horde/services/go.php?url=http%3A%2F%2Fwww.opengis.net%2Fgml>
"
 
xmlns:ogc="http://www.opengis.net/ogc<https://webmail.service.emory.edu/horde/services/go.php?url=http%3A%2F%2Fwww.opengis.net%2Fogc>
"
 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance<https://webmail.service.emory.edu/horde/services/go.php?url=http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance>
"
 
xsi:schemaLocation="http://www.opengis.net/wfs<https://webmail.service.emory.edu/horde/services/go.php?url=http%3A%2F%2Fwww.opengis.net%2Fwfs>
http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd<https://webmail.service.emory.edu/horde/services/go.php?url=http%3A%2F%2Fschemas.opengis.net%2Fwfs%2F1.0.0%2FWFS-basic.xsd>

http://mapserver.gis.umn.edu/mapserver<https://webmail.service.emory.edu/horde/services/go.php?url=http%3A%2F%2Fmapserver.gis.umn.edu%2Fmapserver>
http://wilson.library.emory.edu/~mapserver/cgi-bin/south?SERVICE=WFS&amp;VERSION=1.0.0&amp;REQUEST=DescribeFeatureType&amp;TYPENAME=Urban_Areas&amp;OUTPUTFORMAT=XMLSCHEMA<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>
">
    <gml:boundedBy>
            <gml:Box srsName="EPSG:4326">
                    <gml:coordinates>-91.429176,24.844480 -75.562841,
36.641761</gml:coordinates>
            </gml:Box>
    </gml:boundedBy>
  <gml:featureMember>
    <ms:Urban_Areas fid="Arcola">
      <gml:boundedBy>
              <gml:Box srsName="EPSG:4326">
                      <gml:coordinates>-90.885096,33.266165 -90.875910,
33.274779</gml:coordinates>
              </gml:Box>
      </gml:boundedBy>
      <ms:msGeometry>
      <gml:Polygon srsName="EPSG:4326">
        <gml:outerBoundaryIs>
          <gml:LinearRing>
            <gml:coordinates>-90.884500,33.269424 -90.885040,33.269421
-90.885082,33.272127 -90.885096,33.273023 -90.883338,33.273026 -90.879469,
33.273030
-90.879464,33.273206 -90.879413,33.274749 -90.876712,33.274772 -90.875930,
33.274779
-90.875910,33.272084 -90.876238,33.270229 -90.876375,33.269817 -90.876403,
33.269665
-90.876649,33.268329 -90.877004,33.266749 -90.877707,33.266755 -90.880544,
33.266781
-90.880502,33.266688 -90.880420,33.266507 -90.881163,33.266376 -90.882357,
33.266165
-90.882984,33.267974 -90.883487,33.269427 -90.883781,33.269426 -90.884500,
33.269424
</gml:coordinates>
          </gml:LinearRing>
        </gml:outerBoundaryIs>
      </gml:Polygon>
      </ms:msGeometry>
      <ms:GIST_ID>1</ms:GIST_ID>
      <ms:COUNTY>28151</ms:COUNTY>
      <ms:PLACE>01820</ms:PLACE>
      <ms:NAME>Arcola</ms:NAME>
      <ms:LSADC>60</ms:LSADC>
      <ms:ENTITY>P</ms:ENTITY>
      <ms:FIPSCC>C1</ms:FIPSCC>
      <ms:PLACEDC>0</ms:PLACEDC>
    </ms:Urban_Areas>
  </gml:featureMember>
</wfs:FeatureCollection>

GetCapabilities report for the layer:
  <FeatureType>
      <Name>Urban_Areas</Name>
      <Title>Urban Areas</Title>
      <SRS>EPSG:4326</SRS>
      <LatLongBoundingBox minx="-91.4292" miny="0" maxx="0" maxy="36.6418"
/>
  </FeatureType>

Excerpts from the mapfile:
       WEB
               METADATA
                       'wms_title'     'SouthComb WMS Server'
                       'wms_onlineresource' '
http://wilson.library.emory.edu/~mapserver/cgi-bin/south?<https://webmail.service.emory.edu/horde/services/go.php?url=http%3A%2F%2Fwilson.library.emory.edu%2F%7Emapserver%2Fcgi-bin%2Fsouth%3F>
'
                       'wms_srs'       'EPSG:4326'
                       'wfs_title'     'SouthComb WFS Server'
                       'wfs_onlineresource' '
http://wilson.library.emory.edu/~mapserver/cgi-bin/south?<https://webmail.service.emory.edu/horde/services/go.php?url=http%3A%2F%2Fwilson.library.emory.edu%2F%7Emapserver%2Fcgi-bin%2Fsouth%3F>
'
                       'wfs_srs'       'EPSG:4326'
               END
       END

       LAYER
               NAME 'Urban_Areas'
               TYPE POLYGON
               TILEINDEX 'placecu.shp'
               TILEITEM 'location'
               DUMP TRUE # allow GML export
               METADATA
                       'wms_title' 'Urban Areas'
                       'wfs_title' 'Urban Areas'
                       'gml_featureid' 'name'
                       'gml_include_items' 'all'
               END
               STATUS OFF
               LABELCACHE ON
               LABELITEM 'NAME'
               PROJECTION
                       'init=epsg:4326'
               END
               CLASS
                       NAME placecu                         MAXSCALE
1000000
                       STYLE
                               SYMBOL 0
SIZE 6                                 OUTLINECOLOR 106 46 34
                               COLOR 248 241 223
                       END
                       LABEL
                               TYPE TRUETYPE
                               FONT sans
                               SIZE 14
                               COLOR 0 0 0

                       END
               END
       END

Attributes reported by ogrinfo for one of the shapfiles that the tile index
file
placecu.shp references:
GIST_ID: Integer (8.0)
COUNTY: String (5.0)
PLACE: String (5.0)
NAME: String (60.0)
LSADC: String (2.0)
ENTITY: String (1.0)
FIPSCC: String (2.0)
PLACEDC: String (1.0)

Thanks,
Urvashi Gadi

Reply via email to