Hi all,

I'm having problems using owslib.wcs module. Some broken services (see
[1] for an example) don't include question marks in urls and owslib
builds invalid request urls.

The WCS 1.0.0 specification[2] states that clients should be prepared to
handle this broken behavoir:

        [Quote]
        For HTTP GET, the URL prefix must end in either a '?' (in the
        absence of additional server-specific parameters) or a '&'. In
        practice, however, Clients should be prepared to add a necessary
        trailing '?' or '&' before appending the Operation parameters
        defined in this specification in order to construct a valid
        request URL.
        [End quote]

Also invalid request urls raise an HTTPError with code=404 which is
silently catched, resulting in call to log.debug raising a misleading
AttributeError.

Best regards

Goyo

[1]
http://www.idee.es/wcs/IDEE-WCS-UTM30N/wcsServlet?REQUEST=GetCapabilities&SERVICE=WCS&VERSION=1.0.0&SECTION=/WCS_Capabilities/Capability

[2] Web Coverage Service (WCS), Version 1.0.0 (Corrigendum)
<http://portal.opengeospatial.org/files/?artifact_id=12582>

_______________________________________________
Community mailing list
[email protected]
http://lists.gispython.org/mailman/listinfo/community

Reply via email to