From: Chris H. <ch...@op...> - 2005-10-30 14:42:50
|
Quoting Bart van den Eijnden <ba...@xs...>: > Hi list, > > I am in the process of transforming one of my Mapserver WFS based > apps > to Geoserver. > > 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? If > there is interest, I can open up a JIRA task. 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 a trivial 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. best regards, Chris > > Thanks in advance. At the end of the e-mail I have put 2 examples > illustrating what I am missing in the Geoserver output. > > Best regards, > Bart > > This is an example output from Geoserver: > > <gml:featureMember> > <rwsagi:PERCELEN fid="PERCELEN.1386000:10740af721f:-391a"> > <rwsagi:OGR_FID>1</rwsagi:OGR_FID> > <rwsagi:ORA_GEOMETRY> > <gml:Polygon > srsName="http://www.opengis.net/gml/srs/epsg.xml#28992"> > <gml:outerBoundaryIs> > <gml:LinearRing> > <gml:coordinates decimal="." cs="," ts=" > ">124702.94895,502988.2949 124702.2,502988.5189 > 124694.637,502991.5121 > 124684.986,502965.225 124693.39995,502962.14605 > 124696.63305,502971.10395 124702.94895,502988.2949</gml:coordinates> > </gml:LinearRing> > </gml:outerBoundaryIs> > </gml:Polygon> > </rwsagi:ORA_GEOMETRY> > <rwsagi:AANDUID>BSR00D 1295</rwsagi:AANDUID> > <rwsagi:GEMCOD>BSR00</rwsagi:GEMCOD> > <rwsagi:SECTIE>D</rwsagi:SECTIE> > <rwsagi:NUMMER>1295</rwsagi:NUMMER> > <rwsagi:SECNUM>D 1295</rwsagi:SECNUM> > <rwsagi:HOEK>0</rwsagi:HOEK> > </rwsagi:PERCELEN> > </gml:featureMember> > > This is the an example output from Mapserver: > > <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 SF.Net email is sponsored by the JBoss Inc. > Get Certified Today * Register for a JBoss Training Course > Free Certification Exam for All Training Attendees Through End of > 2005 > Visit http://www.jboss.com/services/certification for more > information > _______________________________________________ > Geoserver-users mailing list > Geo...@li... > https://lists.sourceforge.net/lists/listinfo/geoserver-users > ---------------------------------------------------------- This mail sent through IMP: https://webmail.limegroup.com/ |