Hello, I have a mapserver (5.2.1) setup that is returning incorrect features from a WFS getfeature request. For example, if a bbox is specified: bbox=-100,50,-99,51, then some point features outside of bbox get returned. However, the overall bounding box of the features (in the gml:boundedBy element) looks right and is inside the bbox, but is not representative of the features that are returned (see below). Also, if I try different bboxes, it would appear that it's always taking the first N (which varies) features in the layer (sites.1, sites.2 always appear).
What is going on and how to fix? Has anyone else encountered this odd behaviour? The point features are stored in a database table (mssql to be specific) and connection is using OGR (through ODBC). Mapserver is running in Windows Server 2003 (64-bit). Thanks for any help. -Phil <?xml version='1.0' encoding="ISO-8859-1" ?> <wfs:FeatureCollection xmlns:ms="http://mapserver.gis.umn.edu/mapserver" xmlns:wfs="http://www.opengis.net/wfs" xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd http://mapserver.gis.umn.edu/mapserver http://ecburlwbidev/ms/mapserv.exe?SERVICE=WFS&VERSION=1.0.0&REQ UEST=DescribeFeatureType&TYPENAME=sites&OUTPUTFORMAT=XMLSCHEMA"> <gml:boundedBy> <gml:Box srsName="EPSG:4326"> <gml:coordinates>-99.976390,50.190280 -99.675000,50.675000</gml:coordinates> </gml:Box> </gml:boundedBy> <gml:featureMember> <ms:sites fid="sites.1"> <gml:boundedBy> <gml:Box srsName="EPSG:4326"> <gml:coordinates>-97.429440,49.679170 -97.429440,49.679170</gml:coordinates> </gml:Box> </gml:boundedBy> <ms:msGeometry> <gml:Point srsName="EPSG:4326"> <gml:coordinates>-97.429440,49.679170</gml:coordinates> </gml:Point> </ms:msGeometry> </ms:sites> </gml:featureMember> <gml:featureMember> <ms:sites fid="sites.2"> <gml:boundedBy> <gml:Box srsName="EPSG:4326"> <gml:coordinates>-97.261670,49.696670 -97.261670,49.696670</gml:coordinates> </gml:Box> </gml:boundedBy> <ms:msGeometry> <gml:Point srsName="EPSG:4326"> <gml:coordinates>-97.261670,49.696670</gml:coordinates> </gml:Point> </ms:msGeometry> </ms:sites> </gml:featureMember>
_______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
