arrow-left

All pages
gitbookPowered by GitBook
1 of 5

Loading...

Loading...

Loading...

Loading...

Loading...

Cadcorp SIS

Accessing OS NGD data with OS NGD API – Features via Cadcorp SIS

The Cadcorp Spatial Information System® (Cadcorp SIS®) is an integrated family of geospatial products comprising desktop, web, and developer applications.

Cadcorp SIS Desktop connects directly to the OS Data Hub through dedicated wizards.

hashtag
What you need

  • Cadcorp SIS (version SIS 9 or later).

  • A preloaded base map, for example, or .

  • OS NGD API – Features added to an API project in the OS Data Hub with an API Key. See for more information.

hashtag
Instructions

circle-info

These instructions are based on Cadcorp SIS Desktop version 9.1.1668.

1

hashtag
Add overlay

Once a new map has been set up, in the Home tab, click Add Overlay.

2

hashtag
Select API

In the Overlay Types dialog:

  • Select Ordnance Survey (GB) > OS (GB) Data Hub, and then click Next.

In the OS (GB) Data Hub dialog:

  • Select OS National Geographic Database (NGD) API – Features.

  • API Key: Enter your API key.

  • Premium/Public Sector Plan: Select this option if you have this plan.

  • Save in the UI settings database (encrypted): Select this option.

  • Click Next.

3

hashtag
Adding layers to the map

In the OS Data Hub NGD API – Features Data Themes and Feature Types dialog:

  • Well-known ‘recipe’: Select a predefined recipe, if available.

  • Data Themes: Select your data themes.

  • Features: If necessary, use the editing tools (on the right) to delete feature types or to change the order in which they display in your SIS Workspace Definition (SWD). By default, all feature types within the selected data themes are available in the right panel.

  • Local cache: Select this option to store the data temporarily on your machine. If you save and reopen the SWD, the data will still be available as it is fetched from your local cache.

  • One-off import: Select this option to do a one-off import of the data. If you save and reopen the SWD, the data will not be available and you will need to re-import it. These imports have a larger file size.

  • Filtering: These settings are used in conjunction and define how much data is required for display. It is recommended that you always set a spatial filter and feature limit.

    • Spatial: The Intersect with current view extent option limits the download to only selected features within the current window extent. You can also load features within a specific area of interest using the polygon feature to draw your area of interest on the map BEFORE opening the Add Overlay dialog.

    • Maximum number of features

  • Click Finish.

The selected layer(s) will then display in the SIS Workspace Definition (SWD) and the data will display in the map area:

Cadcorp SIS Desktop UI highlighting Add Overlay button.
Cadcorp SIS Desktop UI highlighting Add Overlay button.
: Limits the number of feature values downloaded to the number set.
This limit is applied per feature within any filtered spatial area.
Cadcorp SIS Desktop OS (GB) Data Hub dialog
Cadcorp SIS Desktop UI showing OS NGD API – Features data.
Cadcorp SIS Desktop OS (GB) Data Hub dialog with the Next button and API Key button highlighted.
Cadcorp SIS Desktop UI showing OS NGD API – Features data in the map area.

ESRI ArcGIS Online

Accessing OS NGD data with OS NGD API – Features via ESRI ArcGIS Online

ArcGIS Online is a web-based platform geographic information system (GIS). ArcGIS Online services are managed by Esri and accessed by a client running on a wide range of options.

The instructions that follow demonstrate how to connect to OS NGD API – Features using ESRI ArcGIS Online.

hashtag
What you need

  • Access to the ESRI ArcGIS Online service.

  • A preloaded base map, for example, .

  • OS NGD API – Features added to an API project in the OS Data Hub with an API Key. See for more information.

hashtag
Instructions

1

hashtag
Add a new layer

Once you've signed into your ESRI ArcGIS Online account and opened the map viewer. Zoom in to a small area to reduce the number of requests that are initially sent to the API.

Select Layers > Add > Add layer from URL.
ArcGIS Online Layers dialog.

2

hashtag
Add an API and set up custom parameters

In the Add Layer dialog:

  • URL: Enter the base URL for OS NGD API – Features, excluding the API Key. For example, https://api.os.uk/features/ngd/ofa/v1.

  • Type: Select OGC feature layer.

  • Select Custom request parameters and enter the following:

    • Parameter: key

    • Value: [Insert your OS API Key here]

  • Click Next.

3

hashtag
Adding layers to the map

In the Add Layer dialog:

  • To add a layer to the map: Select a layer to add to the map and then click Add to map.

The layer will then display in the Layers panel and the data will display on the map:

Features will automatically refresh when you zoom or pan on the map. If you wish to add multiple layers to the same map, repeat steps 2 and 3.

ESRI ArcGIS Pro Add OGC API Server Connection dialog with URL and custom request parameters set.
ArcGIS Online Add Layers dialog: Select a layer to add field.
ArcGIS Online UI showing OS NGD API – Features data in the map area.
ArcGIS Online Layers dialog.
ESRI ArcGIS Pro Add OGC API Server Connection dialog with URL and custom request parameters set.
ArcGIS Online Add Layers dialog: Select a layer to add field.
ArcGIS Online UI showing OS NGD API – Features data in the map area.

ESRI ArcGIS Pro

Accessing OS NGD data with OS NGD API – Features via ESRI ArcGIS Pro

ESRI ArcGIS Pro is a desktop geographic information system (GIS) application that allows users to maintain, visualise and analyse spatial data.

The instructions that follow demonstrate how to connect to OS NGD API – Features using ESRI ArcGIS Pro.

hashtag
What you'll need

  • ESRI ArcGIS Pro (version 3.4.0 or later).

  • A preloaded base map, for example, or .

  • OS NGD API – Features added to an API project in the OS Data Hub with an API Key. See for more information.

hashtag
Instructions

1

hashtag
Set up a connection

Once a new project with a new map has been set up, select Insert > Connections > Server > New OGC API Server.

2

GIS software

hashtag
Accessing OS NGD data with OS NGD API – Features via GIS software

The following sub-sections provide step-by-step instructions on how to access OS NGD data via OS NGD API – Features in various GIS software packages:

  • ESRI ArcGIS Online

  • ESRI ArcGIS Pro

  • QGIS

  • Cadcorp SIS

    hashtag
    Add an API URL and set up custom parameters

    In the Add OGC API Server Connection dialog:

    • Server URL: Enter the URL for OS NGD API – Features, excluding the API Key. For example, https://api.os.uk/features/ngd/ofa/v1.

    ESRI ArcGIS Pro Add OGC API Server Connection dialog.
    • Select Custom request parameters and enter the following:

      • Parameter: key

      • Value: [Insert your OS API Key here]

    • Click OK.

    3

    hashtag
    Adding layers to the map

    You can explore the available layers in OS NGD API – Features by using the ArcGIS Pro Catalog panel.

    In the Catalog panel:

    • To add a layer to the map: Right-click on a layer and select Add to Current Map.

    In the pop-up Add OGC API Layer(s) dialog:

    • Set the maximum features returned: Set the maximum number of features to be displayed (we suggest 1000).

    • To specify the extent:

      • Select the Use Spatial Extent checkbox.

    The layer will then display in the Contents panel and the data will display on the map:

    4

    hashtag
    Adjusting the map view

    Features will not automatically refresh when you zoom or pan on the map. This is purposely designed to protect the API from unnecessary spikes in usage.

    If the extent of the screen changes and you need to update the features displayed, right-click on the layer in the Contents panel, then select the OGC Features property for the layer, re-click Current visible extent, and click Apply and OK. This will force ESRI ArcGIS Pro to send a new request to the API and load features based on the new extent.

    ESRI ArcGIS Pro UI showing how to add a new connection via Insert -> Connections -> Server -> New OGC API Server.
    ESRI ArcGIS Pro UI.

    QGIS

    Accessing OS NGD data with OS NGD API – Features via QGIS

    QGIS is an open GIS (Geospatial Information System) desktop application that allows you to display, interrogate, visualise and create geospatial information including from geo-centric APIs (for example, a WFS).

    The instructions that follow demonstrate how to connect to OS NGD API – Features using QGIS.

    hashtag
    What you need

    • QGIS (version 3.12.0 or later).

    • A preloaded basemap, for example, or .

    • OS NGD API – Features added to an API project in the OS Data Hub with an API Key. See for more information.

    hashtag
    Instructions

    circle-info

    hashtag
    Connecting to OS NGD API – Features

    If you are connecting to the OS NGD API for the first time then you can follow either step 2 or step 3 to set up a new connection via QGIS. It is not necessary to follow both steps.

    1

    hashtag
    Set up a new connection

    Once a new project with a base map has been set up, zoom in to a small area to reduce the number of requests that are initially sent to the API. Select Layer > Add Layer > Add WFS / OGC API - Features Layer.

    2

    Get extent from: Select Current visible extent.

  • Click OK to load the features onto the map.

  • ESRI ArcGIS Pro Add OGC API Server Connection dialog displaying the OS NGD API – Features base URL and custom parameters added.
    ESRI ArcGIS Pro Add OGC API Server Connection dialog with custom request parameters set.
    ESRI ArcGIS Pro Catalog panel showing a list of available layers alongside the Add OGC Layer(s) dialog box to set the extent.
    ESRI ArcGIS Pro Add OGC API Layer(s) dialog and the Catalog panel.
    A map in ESRI ArcGIS Pro with features loaded from a selected layer.
    ESRI ArcGIS Pro UI showing OS NGD API – Features data in the map area.
    ESRI ArcGIS Pro UI showing OS NGD API – Features data in the map area. Layer Properties dialog box with the OGC Features property displayed that defines the number of features loaded and the extent used. This dialog box allows these properties to be changed.
    ESRI ArcGIS Pro UI showing OS NGD API – Features data in the map area and a Layer Properties dialog for one of the layers.
    ESRI ArcGIS Pro Add OGC API Server Connection dialog displaying the OS NGD API – Features base URL.

    hashtag
    Create a new connection in the WFS Connection dialog

    In the Data Source Manager | WFS / OGC API - Features dialog click New and in the New WFS Connection dialog:

    • Name: Provide a name for the connection. You can reuse this connection in the future.

    • URL: Copy the OS NGD API – Features endpoint address from the OS Data Hub and paste it into this field. Your API Key is automatically appended to this URL in the key parameter.

    • Authentication: Leave these settings at their defaults. You do not need a username or password as authentication is done through your API Key.

    • Version: Click Detect to identify the version.

    • Enable feature paging: Select this option, if necessary.

    • Page size: Enter a maximum page size. This limits the page size to a maximum number of features. We recommend a setting of about 100 to speed up response times. Larger values may result in a very slow response time.

    • Other: Leave the other settings at their defaults.

    • Click OK.

    3

    hashtag
    Create a new connection using a saved server configuration

    The Ordnance Survey GitHub repository contains API resources contains configuration files that can be loaded directly into the QGIS Data Source Manager following the Connecting to web services guide in the QGIS documentationarrow-up-right.

    4

    hashtag
    Adding layers to the map

    Data Source Manager | WFS / OGC API - Features dialog:

    • Select your new connection in the dropdown, if necessary.

    • Click Connect.

    When you click Connect, a list of layers available in OS NGD API – Features populates in the main box:

    • To add a layer to the map: Select the layer to highlight it. You can select multiple layers by using the Ctrl key.

    circle-info

    As best practice, only load layers that relate to your current task – not all layers. The more features you call, the longer it takes to load them into QGIS. In addition, each feature, regardless of its layer, counts towards your .

    • Only request features overlapping the view extent: Select this option.

    • Click Add.

    The layer will then display in the Layers panel and the data will display on the map:

    rate limitsarrow-up-right
    QGIS Create a New WFS Connection dialog.
    QGIS Data Source Manager | WFS > Server Connections.
    QGIS Data Source Manager | WFS / OGC API - Features.
    QGIS UI showing OS NGD API – Features data in the Layers panel and map area.
    QGIS Data Source Manager | WFS > Server Connections.
    QGIS Data Source Manager | WFS / OGC API - Features.
    QGIS UI showing OS NGD API - Features data in the Layers panel and map area.
    OS Maps API
    OS Vector Tile API
    Getting started with an API project
    OS Maps API
    Getting started with an API project
    OS Maps API
    OS Vector Tile API
    Getting started with an API project
    OS Maps API
    OS Vector Tile API
    Getting started with an API project
    osngd-resources/api-resources at main · OrdnanceSurvey/osngd-resourcesGitHubchevron-right
    Access the OS NGD API resources here
    Logo