That does look like it shouldn't be there - can you add a small example
code to show the issue and open a bug on the tracker.

Ian

On Fri, 28 Aug 2020 at 14:46, Florian Kaselow <
florian.kase...@data-experts.de> wrote:

> Hello GeoTools users,
>
> we are using geotools in Version 22.3 and have the following problem:
>
> The WFS requests with geometric filter operation are not correctly
> generated according to WFS 1.1.0 specification (
> *http://schemas.opengis.net/wfs/1.1.0/wfs.xsd*
> <http://schemas.opengis.net/wfs/1.1.0/wfs.xsd>). There is no problem with
> the response to the request, but when validating the request against the
> .xsd file of the WFS specification, the following part of the request is
> identified as invalid (text marked red). The whole filter request is
> additionally inserted into GML3EncodingUtils by a toString() call.
>
> <?xml version="1.0" encoding="UTF-8"?><wfs:GetFeature xmlns:refbb="
> http://geobasis-bb.de/invekos/referenzflaechen"; xmlns:xs="
> http://www.w3.org/2001/XMLSchema"; xmlns:wfs="http://www.opengis.net/wfs";
> xmlns:gml="http://www.opengis.net/gml"; xmlns:ogc="
> http://www.opengis.net/ogc"; xmlns:ows="http://www.opengis.net/ows";
> xmlns:xlink="http://www.w3.org/1999/xlink"; handle="GeoTools
> 22.3(3ff15461b9dde4ede7e4992fe8c3fb82c492bada) WFS 1.1.0 DataStore
> @ws20180914#2" outputFormat="text/xml; subtype=gml/3.1.1"
> resultType="results" service="WFS" version="1.1.0">
> <wfs:Query srsName="urn:ogc:def:crs:EPSG::25833" typeName="refbb:FFH">
> <ogc:Filter>
> <ogc:And>
> <ogc:Intersects>[ GEOMETRIE intersects MULTIPOLYGON (((461497.4
> 5797427.34, 461474.02 5797438.02, 461392.72 5797473.1, 461362.14
> 5797486.36, 461330.9 5797499.9, 461317.2 5797505.72, 461271.84 5797524.32,
> 461260.5 5797535.12, 461253.42 5797535.12, 461232.14 5797541.56, 461170.16
> 5797568.3, 461067.54 5797611.56,
> ...
> 321282.1962616 5891298.811769), (321351.2090939 5891319.1600721, 321350.08
> 5891292.25, 321350.28091 5891292.2427382, 321351.2090939 5891319.1600721)),
> ((321374.4778471 5891287.1002397, 322055.2260891 5891266.7508291,
> 322055.226089 5891266.750829, 322046.86 5891245.98, 322007.382896
> 5891250.4221765, 321990.62 5891253, 321903 5891264.64, 321899.16 5891262.6,
> 321888.9 5891218.64, 321374.4778471 5891287.1002397))) ]
> <ogc:PropertyName>GEOMETRIE</ogc:PropertyName>
> <gml:MultiSurface srsDimension="2">
> <gml:surfaceMember>
> <gml:Polygon srsDimension="2">
> <gml:exterior>
> ...
> </gml:exterior>
> <gml:interior>
> ...
> </gml:interior>
> </gml:Polygon>
> </gml:surfaceMember>
> <gml:surfaceMember>
> <gml:Polygon srsDimension="2">
> <gml:exterior>
> ...
> </gml:exterior>
> </gml:Polygon>
> </gml:surfaceMember>
> </gml:MultiSurface>
> </ogc:Intersects>
> ...
> </ogc:And>
> </ogc:Filter>
> </wfs:Query>
> </wfs:GetFeature>
>
> The validation was done with the following online validator:
> https://www.freeformatter.com/xml-validator-xsd.html
>
> Is this request really not compliant to the WFS 1.1.0 specification and
> GeoTools generates incorrect requests?
> If this is a bug, it should be fixed in GeoTools.
>
> Best Regards
> Florian
> _______________________________________________
> GeoTools-GT2-Users mailing list
> GeoTools-GT2-Users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>


-- 
Ian Turton
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to