geopython / OWSLib

OWSLib is a Python package for client programming with Open Geospatial Consortium (OGC) web service (hence OWS) interface standards, and their related content models.
https://owslib.readthedocs.io
BSD 3-Clause "New" or "Revised" License
392 stars 278 forks source link

on csw:getrecords, incorrect endpoint is used #917

Closed pvgenuchten closed 7 months ago

pvgenuchten commented 7 months ago

this csw advertises 2 endpoints, 1 for soap and 1 xml, the getrecords operation takes first (soap), which then fails with 'xml is not csw-ish'

image
pvgenuchten commented 7 months ago

problem may be in https://github.com/geopython/OWSLib/blob/cdcfce7a01343697b7787e3d88ad9ebb3818a078/owslib/catalogue/csw2.py#L671

it runs in else statement, not sure why...