Andrea Aime wrote: > Jesse Eichar ha scritto: >> Is there any reason that the following filter wouldnt parse correctly >> with the Filter 1.1.? >> >> <ogc:Filter xmlns:ogc="http://www.opengis.net/ogc"> >> <ogc:And> >> <ogc:PropertyIsEqualTo> >> <ogc:PropertyName>similarity</ogc:PropertyName> >> <ogc:Literal>0.8</ogc:Literal> >> </ogc:PropertyIsEqualTo> >> <ogc:BBOX> >> <ogc:PropertyName>ows:BoundingBox</ogc:PropertyName> >> <gml:Box xmlns:gml="http://www.opengis.net/gml"> >> <gml:coordinates decimal="." cs="," ts=" >> ">4.864277937137414,45.04612849764592 >> 11.636283602102152,48.57765200090079</gml:coordinates> >> </gml:Box> >> </ogc:BBOX> >> </ogc:And> >> </ogc:Filter> >> >> >> It works with the v1_0.OGCConfiguration but not v1_1.OGCConfiguration. >> I dont know the spec well enough to tell what is wrong. I have also tried: >> >> <ogc:Filter xmlns:ogc="http://www.opengis.net/ogc"> >> <ogc:And> >> <ogc:PropertyIsEqualTo> >> <ogc:PropertyName>similarity</ogc:PropertyName> >> <ogc:Literal>0.8</ogc:Literal> >> </ogc:PropertyIsEqualTo> >> <ogc:Intersects> >> <ogc:PropertyName>ows:BoundingBox</ogc:PropertyName> >> <gml:Polygon xmlns:gml="http://www.opengis.net/gml"> >> <gml:outerBoundaryIs> >> <gml:LinearRing> >> <gml:coordinates decimal="." cs="," ts=" >> ">8.128853227549193,47.506694104084325,47.538319437764585 >> 5.603416680210275,47.60212941356561,49.23304140660912 >> 7.074978357274749,46.33880302369561,51.4579390892759 >> 8.128853227549193,47.506694104084325,47.538319437764585</gml:coordinates> >> </gml:LinearRing> >> </gml:outerBoundaryIs> >> </gml:Polygon> >> </ogc:Intersects> >> </ogc:And> >> </ogc:Filter> > > From the looks of it, because the Polygon is expressed in GML2 > when it should be GML3? Not sure, but it looks GML2 to me, and > I'm sure Filter 1.1 requires GML3 instead.
Yup, in the first filter gml:Box --> gml:Envelope and in the second you need to recode the polygon as a GML3 polygon as Andrea states. That said, I wonder if it makes sense to have the GML3 geometry bindings handle the case of someone specifying GML2 style. I realize this encourages users to make invalid requests, but at the same time this is something that comes up quite often. -Justin > > Cheers > Andrea > -- Justin Deoliveira OpenGeo - http://opengeo.org Enterprise support for open source geospatial. ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
