Skip to content

Connecting in QGIS

Stream the 2D datasets of a DATACT channel into QGIS as live WMS layers.

Who can do this: Anyone with a DATACT WMS API key

Video tutorial (planned): DATACT in QGIS

YouTube ID: TBD · ~2 min Covers: adding the WMS connection with the X-Api-Key header and loading layers.

Before you start


Step 1: Open the WMS connection dialog

In QGIS, go to Layer → Add Layer → Add WMS/WMTS Layer…, then click New to create a connection.

Step 2: Fill in the connection details

  • Name: something you will recognise, for example DATACT – <team> / <channel>
  • URL: the WMS URL you copied from DATACT

Then open the HTTP Headers section and click + to add a header:

  • Key: X-Api-Key
  • Value: your DATACT WMS API key

Your configuration should look like this:

QGIS connection details

Click OK to save the connection.

Step 3: Connect and add layers

In the Data Source Manager, select your new connection and click Connect. All 2D layers in the channel are listed.

QGIS data source manager

Select the layers you want and click Add.

Layers showing in QGIS


Connecting to another channel

Each channel has its own WMS URL. Switch to that channel in DATACT, copy its WMS URL, and create a new connection in QGIS. You can use the same API key.

Warning

Your key only works in the team it was created in. To stream a channel in another team, switch to that team in DATACT and create a key there.

Tips

  • Set the QGIS project coordinate system before adding layers, so that QGIS requests the layers in that system and does not reproject them on the fly.
  • New datasets added to the channel appear after you Connect again.