Ok That is what I wanted. I was looking with google for some GML 3 examples
but it is surprisingly hard to find an example that says "hey I am a GML 3
example". There are just examples and it doesnt clearly state the version a
lot of times.
Thanks for your responses you guys.
Jesse
On Tue, Apr 21, 2009 at 3:57 AM, Jody Garnett <[email protected]>wrote:
> On Mon, Apr 20, 2009 at 11:27 PM, Jesse Eichar
> <[email protected]> wrote:
> > 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>
>
> I do not see anything wrong; but I would suspect the gml:Box entry;
> the difference between GML2 and GML3 is very extensive (changing on
> the back end from SFSQL Point/Line/Polygon style geometry to ISO19107
> Point, Curve, Surface definitions). As such I would not be surprised
> if Box changed; or is now considered part of the Filter 1.1 schema
> directly?
>
> Oh wait here is an example:
>
> <wfs:Query srsName="urn:x-ogc:def:crs:EPSG:6.11.2:4326"
> typeName="sf:PrimitiveGeoFeature">
> <ogc:Filter>
> <ogc:BBOX>
> <ogc:PropertyName>sf:pointProperty</ogc:PropertyName>
> <gml:Envelope>
> <gml:lowerCorner>37.0 -2.5</gml:lowerCorner>
> <gml:upperCorner>42.0 2.5</gml:upperCorner>
> </gml:Envelope>
> </ogc:BBOX>
> </ogc:Filter>
>
> That makes sense they like their envelope's now; and the lower / upper
> corners match two direct positions.
>
>
> > 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>
> > Similar problem.
>
>
> I would not expect this one to work at all.
>
> Can you try encoding a filter using the 1.1 configuration just to see
> what the code produces?
>
> Jody
>
------------------------------------------------------------------------------
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