Docs / Developers / QGIS and GDAL

QGIS and GDAL

Read layers with a standard OGC API – Features connection. Use the OrbGIS Connector plugin for editing in QGIS.

Connect QGIS#

  1. Open a connection

    In QGIS 3.34 or newer, open Layer → Add Layer → Add WFS / OGC API – Features Layer… and choose New under Server Connections.

  2. Set the URL

    Use https://api.orbgis.se/v1 and select OGC API – Features. The API returns at most 1 000 features per page.

  3. Add authentication

    Under Authentication → Configurations, add an API Header configuration: name Authorization, value Bearer orbk_live_…. QGIS stores the credential in its encrypted authentication database.

  4. Add layers

    Choose Connect, select a collection and press Add. You see only layers available to the integration.

The built-in QGIS connection is read-only. To edit, use the OrbGIS Connector, which signs in with your account through the browser. To write from your own code, use Writing features.

Connect GDAL#

Use GDAL’s OAPIF driver and pass the key as an HTTP header. This lists the available collections:

ogrinfo \
  --config GDAL_HTTP_HEADERS "Authorization: Bearer $ORBGIS_API_KEY" \
  OAPIF:https://api.orbgis.se/v1

Use ogr2ogr with the same header and a collection name to convert features to a supported output format.