Re: [gdal-dev] ERROR 1: Couldn't fetch requested layer when using a filter in the ogr2ogr- GetFeature request

2024-03-27 Thread Rahkonen Jukka via gdal-dev
Hi,

Works for me with an URL encoded request:

ogrinfo 
"https://isk.geobasis-bb.de/ows/feldblockkataster_wfs?SERVICE=WFS=2.0.0=GetFeature=refbb:Feldblock=EPSG:25833=%3Cfes:Filter%20xmlns:fes=%22http://www.opengis.net/fes/2.0%22%20xmlns:xsi=%22http://www.w3.org/2001/XMLSchema-instance%22%20xsi:schemaLocation=%22http://www.opengis.net/fes/2.0http://schemas.opengis.net/filter/2.0/filterAll.xsd%22%3E%20%3Cfes:And%3E%20%3Cfes:PropertyIsEqualTo%3E%20%3Cfes:ValueReference%3EFLIK%3C/fes:ValueReference%3E%20%3Cfes:Literal%3EDEBBLI1873413738%3C/fes:Literal%3E%20%3C/fes:PropertyIsEqualTo%3E%20%3Cfes:PropertyIsEqualTo%3E%20%3Cfes:ValueReference%3EFACHL_GUELTIG_AB%3C/fes:ValueReference%3E%20%3Cfes:Literal%3E2022-01-01%3C/fes:Literal%3E%20%3C/fes:PropertyIsEqualTo%3E%20%3C/fes:And%3E%20%3C/fes:Filter%3E;
 -al

-Jukka Rahkonen-

Lähettäjä: gdal-dev  Puolesta Michael Otto 
via gdal-dev
Lähetetty: keskiviikko 27. maaliskuuta 2024 15.29
Vastaanottaja: gdal-dev@lists.osgeo.org
Aihe: [gdal-dev] ERROR 1: Couldn't fetch requested layer when using a filter in 
the ogr2ogr- GetFeature request

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=2.0.0=GetFeature=refbb:Feldblock=EPSG:25833=http://www.opengis.net/fes/2.0; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation="http://www.opengis.net/fes/2.0http://schemas.opengis.net/filter/2.0/filterAll.xsd;>
   
FLIK 
DEBBLI1873413738  
 
FACHL_GUELTIG_AB 
2022-01-01   


get the error message:

ERROR 1: Couldn't fetch requested layer 
'http://schemas.opengis.net/filter/2.0/filterAll. xsd>  
 FLIK 
DEBBLI1873413738   FACHL_GUELTIG_AB 
2022-01-01   
'!

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


[gdal-dev] ERROR 1: Couldn't fetch requested layer when using a filter in the ogr2ogr- GetFeature request

2024-03-27 Thread Michael Otto via gdal-dev
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=2.0.0=GetFeature=refbb:Feldblock=EPSG:25833=
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;>  
 FLIK 
DEBBLI1873413738  
 
FACHL_GUELTIG_AB 
2022-01-01   


get the error message:

ERROR 1: Couldn't fetch requested layer '
http://schemas.opengis.net/filter/2.0/filterAll. xsd>  
 FLIK 
DEBBLI1873413738   
FACHL_GUELTIG_AB 
2022-01-01   
'!

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