Zoomstack GeoPackage format

Geopackage data showing mapping data
Map data shown in GeoPackage format

GeoPackage is an open, standards-based, portable, platform-independent, compact format for transferring geospatial information. This allows Zoomstack to store geospatial data in a single file that is easy to distribute. It can hold large amounts of data and can support the different geometry types and indexes which make the data much easier to use. Quite simply it is a great Plug n Play format which works with a wide range of software implementations.

What are the benefits of GeoPackage?

GeoPackage offers users the following benefits:

  • The single file is easy to transfer and offers the end-user a rich experience.

  • Attribute names are not limited in length making it user friendly.

  • No file size limit so lots of data can be easily accommodated.

  • Supports both raster and vector making it versatile for any type of data.

  • OGC Standard.

Installing Zoomstack

The instructions that follow are for installing Zoomstack GeoPackage in various GIS software applications. Please refer to the relevant section based on the GIS software you’re using:

QGIS

These instructions are based on QGIS 3.4 – a Long Term Release.

  1. Download and unzip the GeoPackage.

  2. Open QGIS and start a new project.

  3. The easiest way to load the data is to simply drag and drop the unzipped GeoPackage (OS_Open_Zoomstack.gpkg) into QGIS, click Select All and Add layers to a group, then click OK.

    Add Vector Layers window
  1. In the Layers Panel, drag and drop the layers into the following order as this is the order in which QGIS will draw them:

    Layers added in the QGIS panel

It may take a little while for the data to render as this is a large file. You may find it quicker if you zoom in to street level as this will limit the number of features in your map window.

We would highly recommend using the stylesheets OS provides as this adds feature filters and styling. The following instructions show you how to use our QML stylesheets.

Using OS stylesheets to get started in QGIS

OS has supplied QML stylesheets for use in QGIS. The QML stylesheets allow you to add colours to features contained in the Vector Tiles to produce a far more vivid and visually appealing map.

The steps that follow will guide you through setting up QML stylesheets in QGIS.

  1. Before continuing, you will need to download the folder of stylesheets. You can also view the stylesheets on GitHub.

  2. Once downloaded and unzipped, navigate in the folder to GeoPackage → QGIS Stylesheets (QML).

  3. Next, copy the folder of SVGs called os-open-zoomstack-symbols into your QGIS SVG directory (a typical Windows file path is C:\Program Files\QGIS xxxx\apps\qgis\svg, where xxxx represents the version of QGIS you are running). QGIS may require a restart in order to pick these up.

  4. To add a sea tint to your map, go to the top menu and select Project → Properties... → General and change the background colour depending on your chosen style:

    • Outdoor: R169 G221 B239

    • Road: R213 G239 B248

    • Light: R197 G205 B208

    • Night: R4 G19 B38

  5. To apply the QML, double-click on a layer to open up the Layer Properties window. Then, from the left-hand panel, select the Symbology tab, click Style → Load Style

    Layer properties window for QGIS
    Layer properties window showing the Favorites context meny
  1. Next, click the 3 dots along from File.

    Database styles manager menu
  1. Then browse to your folder of stylesheets, navigate to GeoPackage → QGIS Stylesheets (QML) and select the corresponding QML file (e.g. land.qml for the land layer), then click OK and Load Style.

    Database styles manager dialog
    Database styles manager dialog
  1. You will need to repeat this process for every layer until they are all styled, and you have a gorgeous map.

ESRI ArcMap

Installing Zoomstack GeoPackage in ESRI ArcMap

These instructions are based on ESRI ArcMap 10.6.1. ArcMap versions 10.2 and above will support GeoPackage and versions 10.3 and above also support the editing of GeoPackage.

  1. Download and unzip the GeoPackage.

  2. Open ArcMap and click on the Add Data button.

    ArcMap Add data button shown in the toolbar
  1. Browse to the location of your unzipped GeoPackage.

    OS Open Zoomstack data shown in the Windows file explorer
  1. Double click on the .gpkg file then either select one layer, or hold CTRL and select all layers and then click Add.

    Layer files shown in the Windows file explorer in the Add Data menu
  • The data will now load into ArcMap. This may take a while as this is a large file, but once it is loaded you will see the data rendered with default styles.

  • Render speeds can be quite slow when all the layers are visible. If you are only interested in a few layers, then you can turn the others off – OS Open Zoomstack is fully customisable in that sense.

It is highly recommended you use the OS stylesheet provided as this adds the relevant layer ordering and feature filters. The following instructions show you how to use the LYR File.

Using OS stylesheets to get started in ESRI ArcMap

  1. Before continuing, you will need to download the folder of stylesheets. You can also view the stylesheets on GitHub.

  2. Firstly, we’ll add a sea tint to your map. To do this, right click on Layers and then Properties…. In the Data Frame Properties, select Frame and change the Background colour depending on your chosen style:

    • Outdoor: R169 G221 B239

    • Road: R213 G239 B248

    • Light: R197 G205 B208

    • Night: R4 G19 B38

      Data frame properties window
  1. Next, set the Coordinate System to British National Grid. Select the Coordinate System tab and search for 27700, select British National Grid and click OK.

    Coordinate System settings tab in the data frame properties window
  1. Click the Add Data button

  1. Then browse to your folder of stylesheets, navigate to GeoPackage → ESRI Stylesheets (LYR) and select the style of your choice, then click Add.

    Add data dialog window
    ESRI stylesheets files shown in the file explorer window
  1. If you see the following Label Engine Warning, click Yes.

    Screenshot of the label engine warning dialog
    Label engine waring dialog
  • The LYR File will then load into your Table of Contents but there will be a red exclamation mark against each layer and initially no data will render.

    Table of contents showing open layers
    Table of contents showing open layers
  1. Click on one of the red exclamation marks to open the Set Data Source dialogue box then navigate to your OS_Open_ZoomStack.gpkg, select the corresponding layer and click Add.

    Set data source window showing available data sources in the main filesystem
  1. You will need to repeat this process for every layer until they are all styled.

Note that Roads are in a group which you will need to expand before setting the data sources.

Although designed in ArcMap, the LYR Files will also work in ArcGIS Pro in the same way as described above. Due to a difference in rendering engine, your map may appear slightly different.

Cadcorp SIS Desktop 9

These instructions are based on Cadcorp SIS Desktop 9, released in November 2018.

  1. Download and unzip the GeoPackage.

  2. Open Cadcorp SIS Desktop.

  3. The easiest way to load the data is to simply drag-and-drop the unzipped GeoPackage (OS_Open_Zoomstack.gpkg) into Cadcorp SIS Desktop.

  4. Cadcorp SIS Desktop will automatically recognise the GeoPackage as OS Open Zoomstack, will load the Zoomstack layers (known as Overlays in Cadcorp SIS Desktop) in the correct order for drawing, will apply suitable scale thresholds to those Overlays, and will also apply default styling to the Overlays, using the Outdoor style.

  • Expanding the tree in the Maps control bar will show the loaded Overlays (those marked in italics are not visible in the current map view due to their scale-threshold):

    Loaded overlays shown on the Map interface in the left hand side menu
    Loaded overlays
  • Example view of Cambridge, using the Outdoor style:

    Example view of Cambridge loaded in the Cadcorp main window
    Cadcorp main map window showing Cambridge data loaded
MapInfo

MapInfo Pro version 15.2.2 and above supports reading, editing and creating GeoPackage Feature Tables.

  1. Download and unzip the GeoPackage.

  2. Open MapInfo.

  3. Click on the Open button.

    Cadcorp open button shown in the toolbar
    Cadcorp open file button
  1. In the following window, browse to the location of your GeoPackage and, using the dropdown, select GeoPackage as the file type.

    MapInfo file explorer
  1. Select OS_Open_ZoomStack.gpkg and click Open.

    OS Open Zoomstack Geopackage file shown in the file explorer
    Geopackage file shown in the file explorer
  1. Select all the tables and click OK.

    Geopackage tiles loaded into the software
    Geopackage tiles loaded into the software
  • Your data will then render in your map view with default styles.

    Map shown with default styles applied
    Map shown with default styles applied
  • In your data folder, you will notice that TAB files have been created for each table.

    Tables shown in the data folder

Note that the GIS software packages above were used for demonstrative purposes in this guide and that many other GIS software applications can be used with the Zoomstack product.

Last updated