Skip to content

WMS: overview and API keys

Every 2D dataset in a DATACT channel, such as orthomosaics, elevation models and thermal maps, is also served as a WMS (Web Map Service) stream. You can load your DATACT maps straight into GIS and CAD software such as QGIS, ArcGIS Pro, Trimble Access or Autodesk Civil 3D. There is nothing to download or re-import, and new datasets appear in your software as soon as they are in the channel.

Who can do this: Owner · Contributor · Viewer — every team member creates their own keys

Video tutorial (planned): Streaming DATACT maps into your GIS with WMS

YouTube ID: TBD · ~3 min Covers: creating a WMS key, copying the WMS URL, connecting in QGIS.


What you need

To connect any software you need two things from DATACT:

What Where to find it Looks like
WMS URL Settings → WMS settings https://wms.datact.svarmi.com/<team>/<channel>
WMS API key Created once in Settings → WMS settings A long random string

The WMS URL points to one channel. It is built from the team and channel you are in when you open WMS settings. The API key is personal: it belongs to you and works for every channel in the team that you have access to.

Treat your key like a password

Anyone with your key can view the 2D data in all the channels you can access. Do not paste it into emails or chat. Store it in a password manager, and delete it when you no longer need it.


Opening WMS settings

  1. Open Settings from the menu bar on the left.
  2. On your profile card at the top, click the ⋮ (three dots) button.
  3. Choose WMS settings.

Profile card with the three-dot menu open and WMS settings highlighted

File: assets/media/integrations/wms/overview-open-settings.png Show: Settings page, profile card at the top, ⋮ menu open showing Edit Profile and WMS settings.

The WMS settings page has two parts: the WMS URL for the channel you are in, and the list of your WMS API Keys.

WMS settings page

File: assets/media/integrations/wms/overview-wms-settings.png Show: the WMS URL with Copy URL, the Create new API Key button and a key list with one Active and one Expiring key. Demo team only.


Creating a WMS API key

  1. In WMS settings, click Create new API Key.
  2. Choose an Expiration Date. The default is one year from today. Pick a shorter period if you only need the key for a specific job.
  3. Click Create.
  4. Click Copy Key and store the key somewhere safe, such as your company's password manager.
  5. Click Done.

You can only see the key once

DATACT stores only a secure hash of your key, never the key itself. After you click Done, nobody can show it to you again, not even Svarmi. If you lose the key, delete it and create a new one.

Creating a WMS key and copying it

File: assets/media/integrations/wms/overview-create-key.gif Show: Create new API Key → pick date → Create → Copy Key → Done. Blur the key value.

Copying the WMS URL

  1. Go to the channel you want to stream, using the team and channel switcher at the top right.
  2. Open Settings → WMS settings.
  3. Click Copy URL next to WMS URL.

Each channel has its own WMS URL. To stream another channel, switch to it and copy its URL. You can reuse the same key.


Key status

Your keys are listed with their creation date, expiration date and status. Hover over the status to see the number of days left.

Status Meaning
Active The key works and expires in more than 7 days.
Expiring The key works but expires within 7 days. Create a new one and update your software.
Expired The key no longer works.

Deleting a key

Click Delete next to a key and confirm. The key stops working immediately in all software that uses it. You can only delete your own keys.


Connect your software

For other software

Most GIS and CAD software that supports WMS 1.3.0 can connect. DATACT's WMS accepts your key in three ways. Use whichever your software supports:

  1. HTTP header: X-Api-Key: <your key> (preferred, because the key is not part of the URL)
  2. Query parameter: add ?x-api-key=<your key> to the end of the WMS URL. Use this when your software only accepts a URL.
  3. OAuth2 bearer token: Authorization: Bearer <access token>, the same token the DATACT web app uses. This is for developers.
https://wms.datact.svarmi.com/<team>/<channel>?x-api-key=<your key>

Security

  • Every WMS request is authenticated, and DATACT checks on every request that you have access to the channel.
  • Keys are generated with a cryptographically secure random generator.
  • Keys are never stored or logged in plain text. DATACT stores only a SHA-256 hash.
  • Keys always have an expiration date. You can revoke them at any time.

Troubleshooting

Problem What to check
"Unauthorized" or no layers Is the key expired or deleted? Did you include the whole key, with no spaces?
Layers from the wrong channel The WMS URL is per channel. Copy it again from the channel you want.
A channel in another team does not work Keys are per team. Switch team in DATACT and create a key there.
Data is in the wrong place Make sure your project or drawing uses the same coordinate system that you request from the WMS. See Coordinate systems.