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. Cheers Andrea -- Andrea Aime OpenGeo - http://opengeo.org Expert service straight from the developers. ------------------------------------------------------------------------------ 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
