From: Andrea A. <and...@ge...> - 2010-10-28 12:54:52
|
Hi, I'm still fighting a little with the BBOX KVP parsing along with the AUTO:xywz,unit,lon,lat syntax. The thing is, the CRS is not going down through the datastores, it's lost along the way even if it's properly parsed. The issue this time is that the AUTO srs do not have an id, and even if they would, it's not the EPSG or URN or HTTP form recognized by the standard srs mangling/guessing code. Our code builds first and envelope out of the bbox, and then in the kvp reader tries to build a bbox filter out of the envelope, where it has to get back the original srs code by doing some magic (and hoping the code is an EPSG one and that it can be expressed either in http or urn form). The fact is, imho, there is a simpler way: BBOX In the WFS context is not an envelope, it's a filter. So, the WFS BBOX KVP parser should simply accept that reality and build a BBOX filter instead (in which we can stick the srs as is, without any guessing) So that's what I'd like to do in fact: make a WFS specific bbox parser that just builds a filter, which is then used by the kvp reader as is while building the request object. Opinions? Cheers Andrea ----------------------------------------------------- Ing. Andrea Aime Senior Software Engineer GeoSolutions S.A.S. Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584962313 fax: +39 0584962313 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf ----------------------------------------------------- |