Installing vector tiles in GIS software
Last updated
Last updated
The following page provides step-by-step instructions on how to install vector tiles data in QGIS and Cadcorp.
QGIS (version 3.14 or later)
Vector tiles
These instructions were created using QGIS version 3.14 – a Long Term Release version.
Download your vector tiles (MBTiles) and save them in a preferred location.
Load QGIS Desktop and open a new or an existing project.
From the top ribbon of the workspace, click Layer > Add Layer > Add Vector Tiles Layer...
In the Add Layer(s) from a Vector Tile Source dialog box, select the MBTiles tab and then click Browse.
In the Add Layer(s) from a Vector Tile Source dialog box, select the MBTiles tab and then click Browse
In the file explorer, navigate to your saved vector tiles and click Open.
In the Options section, select the Base map defaults option.
Note that the Base map defaults option sets the maximum number of loaded tiles as 32. You can decrease or increase this limit as preferred if you select the Manual option instead.
Note that the greater the number of tiles loaded, the greater the resulting impact on performance and the longer the loading times for the data.
Click Add.
The data will now appear in your Layers Panel and will render in your map window.
Click Close to return to the map window.
Vector tiles can be styled in any way desired. However, if you want to style them with OS styling, stylesheets for vector tiles can be found on GitHub on a product-by-product basis.
To add stylesheets to OS vector tiles products in QGIS, please use the following instructions:
Download the appropriate repositories from GitHub. The example below shows a screenshot of the GitHub repository containing OS Open Zoomstack stylesheets:
Store the downloaded repository in a sensible folder location.
Navigate to your QGIS project with the vector tile data loaded. Double-click on your vector tile layer and navigate to the Symbology tab on the left-hand ribbon of the Layer Properties dialog box.
In the bottom left of the Layer Properties dialog box, select Style > Load Style...
In the Database Styles Manager dialog box, select From File as your Load style option.
For the File option, you will need to navigate to the folder where you stored the downloaded stylesheet repository. The vector tiles stylesheet will be found in Vector Tiles > Mapbox GL Styles, and the file type will be .json.
Click Load Style to load the style.
A styled vector tile dataset will now be visible in the project.
Cadcorp SIS Desktop (version 9)
Vector tiles
As OS vector tiles are only available in Web Mercator projection, you will need to undertake a few extra steps to be able to use them within Cadcorp. Additionally, the tiles will not be reprojected into British National Grid (BNG), so the tiles may create some gaps within the data.
The following instructions outline how to change the projection of your basemap from British National Grid (EPSG:27700) to WGS 84 (EPSG:4326) in Cadcorp:
Open Cadcorp SIS Desktop (version 9) and navigate to Add Overlay in the upper ribbon.
In the Overlay Types dialog box, select Miscellaneous > Backdrop, then click Next.
Expand WGS 84 and select WGS 84 Lat/Long.
Click Finish.
A basemap projected in WGS 84 will appear in the map screen. It is now possible to follow either method 1 or method 2 on the following pages to add vector tiles to a Cadcorp project.
The following sub-sections outline two methods for installing vector tiles in Cadcorp.
Download the vector tiles (MBTiles) and save them in a preferred location.
Start Cadcorp SIS Desktop and open a new or an existing map window.
Navigate to your saved vector tiles in file explorer and drag-and-drop the file into the map window.
The data will appear in your Maps Control Bar and render in your map window.
Download the vector tiles (MBTiles) and save them in a preferred location.
Start Cadcorp SIS Desktop and open a new or an existing map window.
In the upper ribbon, navigate to the Home tab and click Add Overlay.
In the Overlay Types dialog box, select Files > File as the Overlay type, then click Next.
In the File Browser dialog box, navigate to and select your saved vector tiles, then click Finish.
The data will now appear in your Maps Control Bar and render in your map window.
Vector tiles can be styled in any way desired. However, if you want to style them with OS styling, stylesheets for vector tiles can be found on GitHub on a product-by-product basis.
OS Open Zoomstack stylesheets can be automatically applied when adding this product into CadCorp SIS Desktop. While vector tile stylesheets do exist for OS VectorMap Local, they cannot currently be applied in Cadcorp SIS Desktop.
To add stylesheets to OS vector tiles products in Cadcorp SIS Desktop, please use the following instructions:
Download the appropriate repositories from GitHub. The example screenshot below shows a screenshot of the GitHub repository containing OS Open Zoomstack stylesheets.
Add the stylesheets file to the folder where the MBTiles are also stored and rename the stylesheets file so that it has the same name as the MBTiles file.
Add the following file extension to the end of the newly named stylesheets file: .style.json
Drag and drop the style.json file into your Cadcorp SIS Desktop project.
The styling will now be applied to your layer.
Requirements:
A Mapbox account
Vector tiles
Download your vector tiles (MBTiles) and save them in a preferred location.
Navigate to Mapbox Studio and login to your account.
The vector tiles can be uploaded in the Tilesets section of Studio. In the Tilesets page, click New tileset.
In the New tileset pop-up, click Select a file and navigate to the saved location of your MBTiles.
The upload will begin, and a notification will appear once it is complete.
There is an upload limit within Mapbox Studio of 300 mb per upload and 20 uploads per month.