OSGeo / gdal

GDAL is an open source MIT licensed translator library for raster and vector geospatial data formats.
https://gdal.org
Other
4.74k stars 2.5k forks source link

OGR WFS3 #626

Closed tomkralidis closed 6 years ago

tomkralidis commented 6 years ago

Expected behavior and actual behavior.

OGR's WFS3 support seems to have issues interpreting (present) WFS3 response.

Steps to reproduce the problem.

kralidist@geomet-dev-02:/data/geomet/dev/gdal/gdal/gdal$ /data/geomet/dev/gdal/bin/ogrinfo --version
GDAL 2.4.0dev-0e775c6, released 2018/99/99

kralidist@geomet-dev-02:/data/geomet/dev/gdal/gdal/gdal$ /data/geomet/dev/gdal/bin/ogrinfo
WFS3:http://geo.kralidis.ca/pygeoapi/collections
INFO: Open of `WFS3:http://geo.kralidis.ca/pygeoapi/collections'
      using driver `WFS3' successful.
ERROR 1: HTTP error code : 400
ERROR 1: {"description": "Invalid feature collection", "code":
"InvalidParameterValue"}
1: obs
2: ne_110m_populated_places_simple
3: lakes
4: countries

kralidist@geomet-dev-02:/data/geomet/dev/gdal/gdal/gdal$ /data/geomet/dev/gdal/bin/ogrinfo
WFS3:http://geo.kralidis.ca/pygeoapi/collections obs
INFO: Open of `WFS3:http://geo.kralidis.ca/pygeoapi/collections'
      using driver `WFS3' successful.
ERROR 1: HTTP error code : 400
ERROR 1: {"description": "Invalid feature collection", "code":
"InvalidParameterValue"}

Layer name: obs
Metadata:
  DESCRIPTION=Observations
  TITLE=Observations
Geometry: Unknown (any)
Feature Count: 0
Layer SRS WKT:
(unknown)

Operating system

For example: Ubuntu 14.04 64 bit

GDAL version and provenance

master (2018-05-17) built from source.

rouault commented 6 years ago

Now 'WFS3:http://geo.kralidis.ca/pygeoapi' will work (note that this is the endpoint without /collections)

I've noted 2 things with your endpoint:

tomkralidis commented 6 years ago

Thanks @rouault. I've issued associated pygeoapi tickets (thanks for reporting) to fix the issues you mention.