Before you start, see our helpful guide to web service versions and version support in GIS applications to check which web services your version of QGIS supports.
Visit the QGIS Project website for more help and to download the application.
Accessing LDS web services
The first step in accessing LDS web services is to create a web services or API key. These keys are codes (such as abcdefgh123456789) unique to each LDS user, and are used to simplify the process of accessing web services.
LINZ Data Importer QGIS plugin
Grab the LINZ Data Importer QGIS plugin for easy access to all WMTS supported data from the LINZ Data Service in QGIS.
- QGIS supports the ‘Identify Features’ (Get FeatureInfo) function for WMTS.
- QGIS displays offshore Islands that are east of the anti-meridian line, to the far left of the New Zealand Mainland because the 180 degree anti-meridian acts as the right most boundary of the map.
How to use LDS WMTS in QGIS
- You can alter the transparency of the tiled dataset for better visualisation of data overlays by right-clicking on the dataset and selecting Properties > Transparency.
- Ensure the Render box in the bottom right corner is checked.
- To switch between the Web Mercator and NZTM tile set versions, you will need to make a new connection to a dataset. Switching between tile sets cannot be done on the fly within an existing connection.
The following process is for accessing LDS Web Map Tile Service in QGIS is performed using QGIS version 3.4.11.
From the QGIS application, click the Add WMS/WMTS Layer (globe icon) from Layer > Add Layer to bring up the Add layer window:
Enter a name of your choosing in the Name field. For example, LDS WMTS Waikato.
Copy and paste the WMTS URL from the ‘Services’ tab of your dataset of choice in LDS into the URL field.
Most raster datasets on LDS can be accessed via WMTS.
For example, see the Services tab for the Waikato 0.3m Rural Aerial Photos.
Make sure you click on the Smooth pixmap transform checkbox. This option smooths and optimises the rendering of images. Click OK. (There's no need to enter a username and password as the LINZ Data Service knows you’re a registered user from your API key.)
This connection will be added to the Layer dropdown box. Click Connect to fetch your WMTS tiled dataset.
If you need to enter any proxy access credentials, QGIS may prompt you for them at this point.
Otherwise see step 6 below to enter your proxy settings.
Your WMTS dataset will appear in the Tilesets tab:
If your request fails, you may need to change your internet settings to use a proxy server and enter your proxy details. To change these settings in QGIS:
Select Settings > Options > Network
Check the Use proxy for web access box, then fill out the details as per your IT policy
A typical configuration that is required in a Windows Corporate environment is the use of the Windows default 'Internet Settings'. To do this you only need to set the proxy type to 'DefaultProxy'.
For Windows users this will re-use your “Internet Setting” which is set via Internet Explorer.
Make sure all other settings (host, port, user, password and exclude URLs) are all cleared.
At this point, you can choose the tileset for the dataset you wish to connect to – in this case, either Web Mercator (EPSG:3857) or NZTM (EPSG:2193). Click on the dataset to highlight it, then click Add. Close the window.
In this example, we have chosen to add the NZTM tileset of the Waikato 0.3m Rural Aerial Photos layer:
You can add multiple tiled datasets to the same project if your work spans a wider area. Simply, follow the process above to make another WMTS connection. Remember, to add the datasets in the same tileset projection.
To turn these datasets on and off, use the check box under the Layer panel.
If you have connected to a NZ Parcel Boundaries WMTS, you can use the ‘Identify’ (Get FeatureInfo) function in QGIS to view related attribute data for a parcel.
Simply click on the ‘Identify Features’ icon in the toolbar then select a parcel. You can view the feature information in either html or feature format.
To get the best quality result from our NZTM tile services, you may wish to load the tileset scales file into your application. This will enable you to zoom in and out of the imagery according to the specific predefined zoom levels our service has been built to.
Note: A limitation exists in QGIS where if you’ve loaded the tileset file the only way to preserve these pre-set scales when zooming is to select the level from the Scale box. Use of the zoom in and out tools in QGIS or the wheel on your mouse will not preserve the defined zoom levels.
To load the file:
- Go the Project menu and select Project Properties…
- Under the General tab, check the Project scales box
- Select the Load icon:
- Browse to the scale set file in its saved location, then Open the file
- Click OK
In order to ensure the proper use of zoom scale, you must select an initial zoom level from the Scale box on the bottom right of the screen. It does not matter which zoom level you select. Any level will do: