boundedBy element per featureMember
-----------------------------------
Key: GEOS-436
URL: http://jira.codehaus.org/browse/GEOS-436
Project: GeoServer
Type: Wish
Components: WFS
Versions: 1.3.0 RC4
Reporter: Bart van den Eijnden
Assigned to: dblasby
Bart's email:
I found that Geoserver does not output a boundingbox per feature (boundedBy), whereas Mapserver does this. It comes in handy when you want to have light-weight client which can zoom in to that feature, without having to calculate the bbox yourself. Is this by design that Geoserver does not do this? Would it be possible to get it added?
Chris's answer:
I guess it's by design - none of the examples in the WFS spec use the boundedBy, and no one's ever requested the feature.
It seems like it would slow down the output, having to calculate the bounds for each feature, though I suppose a JTS.getEnvelope() is atrivial calculation. But it does at the least add bandwidth overhead.
If you'd like it add it to JIRA as a wish. It could be added as an option to the output, or as a special output format GML2-bounded or something. If more users are interested then vote for the issue in JIRA, as I personally see it being a much lower priority than most of the bugs in there. If some less experienced coder is interested I can definitely direct the effort, tell how to make the change - it should be an easy one.
<gml:featureMember>
<test:kadperceel>
<gml:boundedBy>
<gml:Box srsName="EPSG:28992">
<gml:coordinates>123978.432000,503331.736950
123987.786000,503343.032150</gml:coordinates>
</gml:Box>
</gml:boundedBy>
<test:msGeometry>
<gml:Polygon srsName="EPSG:28992">
<gml:outerBoundaryIs>
<gml:LinearRing>
<gml:coordinates>123987.786000,503340.752950
123984.261000,503331.736950 123978.432000,503334.016150
123981.957000,503343.032150 123987.786000,503340.752950
</gml:coordinates>
</gml:LinearRing>
</gml:outerBoundaryIs>
</gml:Polygon>
</test:msGeometry>
<test:AANDUID>BSR00D 2125</test:AANDUID>
<test:GEMCOD>BSR00</test:GEMCOD>
<test:SECTIE>D</test:SECTIE>
<test:NUMMER>2125</test:NUMMER>
<test:SECNUM>D 2125</test:SECNUM>
<test:HOEK>0.000</test:HOEK>
</test:kadperceel>
</gml:featureMember>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira