Skip to content

Allow (and use) URL parameters when connecting to WMS/WFS/WCS #25029

Description

@qgib

Author Name: Jonathan Doig (Jonathan Doig)
Original Redmine Issue: 17130

Redmine category:web_services_clients/wfs


Users unfamiliar with OGC Web Services (OWS) often try to paste full getMap, getFeature or other request URLs from a web page into the QGIS connection dialog. This fails with a misleading message like "WFS version 1.2.0 not supported" or "The server you are trying to connect to does not seem to be a WMS server. Please check the URL.".

It would reduce the barrier to entry for these users if QGIS parsed their OWS URL and used only the base portion (plus a "service" parameter if present) for the server URL.

Option: To further simplify the workflow, the "Connect" action could be triggered immediately on pressing "OK" from the "Create a new WxS Connection" dialog (same for the Edit dialog).

Option: The WMS "layers" or WFS "typename" parameter in the URL could then be used to pre-select rows (layers/feature types) as if the user had selected them by clicking and ctrl-clicking them in the dialog. The user would then only need to click "Add" to add the layers to the map.

Other URL parameters such as "bbox" and "request" could simply be ignored.

All parameters would be stripped from the URL field after parsing so that on reopening this connection it would look and behave like any other.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Data ProviderRelated to specific vector, raster or mesh data providersFeature Request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions