Web services in QGIS
A web service lets QGIS read data directly from an organisation's server. You do not need to understand the protocol names before using them. The important distinction is what QGIS receives:
- WFS returns vector features and their attributes
- WMTS and XYZ return pre-rendered map or imagery tiles
- ArcGIS FeatureServer returns vector features from an ArcGIS REST service
For ordinary Māori GIS mahi, use WFS when you need to query or analyse features and use WMTS/XYZ when you need a basemap.
Before using LINZ Data Service WFS or WMTS
LDS web services require an LDS API key.
- Open LINZ Data Service and sign in.
- Click your name in the top menu.
- Choose API Keys.
- Click Create API Key.
- Name it something such as
QGIS desktop. - Select Data access only.
- Click Add.
Full instructions: LINZ API keys.
Add a LINZ vector layer with WFS
This example uses NZ Place Names (NZGB).
Copy the correct WFS address
- Open NZ Place Names (NZGB).
- Sign in to LDS.
- Open the dataset's Services tab.
- Find WFS.
- Copy the complete WFS GetCapabilities URL. When you are signed in, LDS inserts your API key into the URL.
A layer-specific LINZ WFS address has this general shape:
https://data.linz.govt.nz/services;key=YOUR_API_KEY/wfs/layer-LAYER_ID?service=WFS&request=GetCapabilities
Copy the generated URL from LDS rather than manually typing the layer ID and key whenever possible.
Add it to QGIS
- Open QGIS.
- Choose Layer → Add Layer → Add WFS / OGC API - Features Layer….
- Click New.
- Enter
LINZ NZ Place Namesin Name. - Paste the copied LDS WFS address into URL.
- Leave username and password blank.
- Click OK.
- Select
LINZ NZ Place Namesin the connection list. - If you only need the current study area, tick Only request features overlapping the view extent.
- Click Connect.
- Select the returned place-name layer.
- Click Add.
- Close Data Source Manager.
Use Identify Features and click a point. If attributes appear, QGIS is reading feature data, not merely an image of the layer.
Official LINZ walkthrough: Using LDS WFS in QGIS.
Add NZ Primary Parcels without trying to load the whole country
The current public parcel layer is NZ Primary Parcels.
- Zoom QGIS to the local rohe or study area first.
- Open the NZ Primary Parcels page in LDS.
- Open Services → WFS and copy the generated WFS URL.
- In QGIS create a new WFS connection named
LINZ NZ Primary Parcelsusing the steps above. - Before clicking Connect, tick Only request features overlapping the view extent.
- Connect, select the parcel layer and click Add.
If you need a stable copy for analysis, right-click the loaded parcel layer → Export → Save Features As…, choose GeoPackage, and save it into the project's 02_working folder.
Add a LINZ raster dataset using WMTS
Use WMTS when the LDS dataset's Services tab provides a WMTS service and you need it for display rather than pixel-level raster analysis.
- Open the chosen raster dataset in LINZ Data Service.
- Open Services.
- Copy the WMTS URL.
- In QGIS choose Layer → Add Layer → Add WMS/WMTS Layer….
- Click New.
- Give the connection a specific name that includes the dataset, not simply
LINZ. - Paste the WMTS URL into URL.
- Leave username and password blank.
- Click OK.
- Select the new connection and click Connect.
- Select the tileset returned by the server and click Add.
Official LINZ walkthrough: Using LDS WMTS in QGIS.
Add the LINZ aerial basemap
LINZ Basemaps uses its own standard-access key rather than an LDS API key. Follow LINZ Basemaps in QGIS, which gives the exact aerial WMTS and topographic vector-tile URLs.
The aerial WMTS pattern is:
https://basemaps.linz.govt.nz/v1/tiles/aerial/WMTSCapabilities.xml?api=YOUR_KEY
Get the current key from LINZ Basemaps before using the address.
Add an XYZ tile service
Only use an XYZ URL supplied by the data publisher. Do not guess the tile address.
- Make the Browser panel visible using View → Panels → Browser.
- Expand XYZ Tiles.
- Right-click XYZ Tiles → New Connection….
- Enter the provider and dataset name.
- Paste the publisher's URL template. It will usually contain placeholders such as
{z},{x}and{y}. - Enter minimum/maximum zoom values if the publisher specifies them.
- Click OK.
- Double-click the new connection to add it to the map.
Add an ArcGIS FeatureServer
Many councils and agencies publish open vector layers as ArcGIS REST FeatureServer services. Use the exact service endpoint supplied by the publisher, for example an address ending in:
/FeatureServer
or a specific layer such as:
/FeatureServer/0
In QGIS:
- Choose Layer → Add Layer → Add ArcGIS REST Server Layer… or open the corresponding ArcGIS Feature Server provider in Data Source Manager.
- Click New.
- Give the connection a specific name.
- Paste the publisher's FeatureServer URL.
- Click OK.
- Click Connect.
- Select the layer and click Add.
- Open its attribute table and confirm the fields you need are present before starting analysis.
What to record in the source register
For every live service record:
publisher
dataset name
dataset page URL
service type: WFS / WMTS / XYZ / FeatureServer
service URL or endpoint, with private API keys removed
access date
layer CRS
purpose in the project
A QGIS connection name such as WFS 1 is not enough provenance for later mahi.
Continue to WFS, LINZ Data Service or the QGIS practical course.
Last reviewed: 27 August 2026