[Geoserver-users] WFS GetFeature with zero results, different in 1.6.5 and 1.7.0

Hello,

I found a compatibility issue with 1.6.5 and 1.7.0 regarding WFS (1.0)
GetFeature request "0 features results", i.e when using a filter that
doesn't match.

The difference is that in 1.7.0 I get a boundedBy bbox result of -1,-1
0,0 and in 1.6.5 I get a null "unknown".

Some perhaps important information is that this is from a PostGIS
datasource/featuretype, EPSG:2400 and that I have tried with and
without "generate feature bounds".

Result in 1.7.0:
<wfs:FeatureCollection>
<gml:boundedBy>
  <gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#2400&quot;&gt;
   <gml:coordinates decimal="." cs="," ts=" ">-1,-1 0,0</gml:coordinates>
  </gml:Box>
</gml:boundedBy>
</wfs:FeatureCollection>

Result in 1.6.5:
<wfs:FeatureCollection>
<gml:boundedBy>
<gml:null>unknown</gml:null>
</gml:boundedBy>
</wfs:FeatureCollection>

I couldn't find anything in the WFS spec that indicates how this
should be done...

With regards

/Björn

Hi Björn,

So I believe the 1.7.0 behavior is a bug. Either it should include no boundedBy element or it should include the gml:null element as in 1.6.5. From a schema point of view both would be valid.

From a spec point of view I am not sure... I think that question would better be answered by the spec writers on the wfs-dev mailing list, wfs-dev@anonymised.com

-Justin

Björn Harrtell wrote:

Hello,

I found a compatibility issue with 1.6.5 and 1.7.0 regarding WFS (1.0)
GetFeature request "0 features results", i.e when using a filter that
doesn't match.

The difference is that in 1.7.0 I get a boundedBy bbox result of -1,-1
0,0 and in 1.6.5 I get a null "unknown".

Some perhaps important information is that this is from a PostGIS
datasource/featuretype, EPSG:2400 and that I have tried with and
without "generate feature bounds".

Result in 1.7.0:
<wfs:FeatureCollection>
<gml:boundedBy>
  <gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#2400&quot;&gt;
   <gml:coordinates decimal="." cs="," ts=" ">-1,-1 0,0</gml:coordinates>
  </gml:Box>
</gml:boundedBy>
</wfs:FeatureCollection>

Result in 1.6.5:
<wfs:FeatureCollection>
<gml:boundedBy>
<gml:null>unknown</gml:null>
</gml:boundedBy>
</wfs:FeatureCollection>

I couldn't find anything in the WFS spec that indicates how this
should be done...

With regards

/Björn
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.