Hello, I'm trying to query a free WFS with filter values via ogr2ogr and write the results to a GeoJson file.
If I use the following URL incl. filter: https://isk.geobasis-bb.de/ows/feldblockkataster_wfs?SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&TYPENAMES=refbb:Feldblock&SRSNAME=EPSG:25833&filter= <fes:Filter xmlns:fes="http://www.opengis.net/fes/2.0" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.opengis.net/fes/2.0 http://schemas.opengis.net/filter/2.0/filterAll.xsd"> <fes:And> <fes:PropertyIsEqualTo> <fes:ValueReference>FLIK</fes:ValueReference> <fes:Literal>DEBBLI1873413738</fes:Literal> </fes:PropertyIsEqualTo> <fes:PropertyIsEqualTo> <fes:ValueReference>FACHL_GUELTIG_AB</fes:ValueReference> <fes:Literal>2022-01-01</fes:Literal> </fes:PropertyIsEqualTo> </fes:And> </fes:Filter> get the error message: ERROR 1: Couldn't fetch requested layer ' http://schemas.opengis.net/filter/2.0/filterAll. xsd> <fes:And> <fes:PropertyIsEqualTo> <fes:ValueReference>FLIK</fes:ValueReference> <fes:Literal>DEBBLI1873413738</fes:Literal> </fes:PropertyIsEqualTo> <fes: PropertyIsEqualTo> <fes:ValueReference>FACHL_GUELTIG_AB</fes:ValueReference> <fes:Literal>2022-01-01</fes:Literal> </fes:PropertyIsEqualTo> </fes:And> </fes:Filter>'! and no results. If I submit the GetFeature request directly in the browser, I get the expected result (namely exactly 2 features). Without the filter on the URL, my GetFeature requests also work as expected with ogr2ogr. What am I doing wrong? Michael
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev