Skip to content

Publishing Projects via OGC API (WMS/WMTS, WFS) โ€‹

Your project data can be published using OGC API as WMS / WMTS or WFS. This way, your data can be displayed (read-only) in other software or web applications.

Early access feature

OGC API read-only access is one of the early access program features. It needs to be enabled for your workspace so you can try it out.

Enabling OGC API access โ€‹

As early access feature, OGC API has to be enabled for your workspace:

  1. Navigate to the Settings tab on the dashboard
  2. Make sure that the OGC API read-only access feature is enabled

Enabling OGC API access for Mergin Maps workspace

Now you can enable OGC API access for your Mergin Maps project: Enabling OGC API access for Mergin Maps project

WFS URL and WMS / WMTS URL can be copied and used, e.g., to connect to these services in QGIS.

Setup WMS, WMTS and WFS properties in QGIS โ€‹

In QGIS, you can define which layers and fields from your project should be published via WMS/WMTS and WFS.

Explore the QGIS server tab in Project Properties:

  • in the Service Capabilities tab, you can (optionally) define the title and other metadata of your service
  • in the WMTS and WFS tabs, select the layers that should be published

QGIS server tab in Project Properties

There may be some fields that you do not want to publish. These can be defined in the Layer Properties in the Fields tab for each field of the layer: Layer Properties do not expose fields via WMS and WFS

Save and synchronise the project.

Example WMS/WMTS and WFS connection in QGIS โ€‹

WFS URL and WMS/WMTS URL from the dashboard can be used to load the web services to any software that supports WFS and/or WMS (for example QGIS) to display the project data.

WMS/WMTS connection โ€‹

WMS/WMTS can be connected to QGIS in the Browser panel:

  1. Right-click on the WMS/WMTS entry and select New Connection...

QGIS Browser Panel New WMS/WMTS connection

  1. Fill in the connection details:
    • Name
    • URL - enter the URL copied from the Mergin Maps dashboard
    • set WMS DPI-Mode to QGIS
    • select following options:
      • โœ… Ignore GetMap/GetTile/GetLegendGraphic URI reported in capabilities
      • โœ… Ignore GetFeatureInfo URI reported in capabilities
      • โœ… Ignore reported layer extents

QGIS New WMS/WMTS connection

  1. Published layers from your project should now be displayed in the Browser panel and can be added to the project. QGIS connected WFS layers

WFS connection โ€‹

WMS/WMTS can be connected to QGIS in the Browser panel:

  1. Right-click on the WFS/OGC API - Features entry and select New Connection...QGIS Browser Panel New WFS connection

  2. Fill in the connection details:

    • Name
    • URL - enter the URL copied from the Mergin Maps dashboard
    • Version - use the Detect button or select the value 1.1 from the list QGIS New WFS connection
  3. Published layers from your project should now be displayed in the Browser panel and can be added to the project. QGIS connected WFS layers