getFeature
API test authentication
The Open API block allows you to test OS APIs directly from the page with example data and parameters. To use this feature, you will need to add your API Key or OAuth2 token to the authentication field.
For help generating an API Key or OAuth2 token, please see the Getting started with an API project or OAuth2 documentation.
The type of request being made.
GetFeature
Possible values: The type of service being requested.
The type of service being requested.
2.0.0
Possible values: The Feature Type being requested.
A set of valid WFS BBOX coordinates, in the order <bottom-left y, bottom-left x, top-right y, top-right x> (Dependent on CRS)
A valid OGC XML filter object
An integer stating the maximum number of features to be returned in a single response. In version 1.0.0 and 1.1.0 this is known as maxFeatures
100
An integer stating the maximum number of features to be returned in a single response. In version 2.0.0 this is known as count
100
A list of valid feature attribute names, for example, ChangeDate, TOID, PhysicalLevel
An integer stating which result to start from, when returning a response
0
The format the response will be returned in. Default: XML.
GML32
Possible values: Type of the results. Default: results.
results
Possible values: Allows the user to reproject the selected features into another CRS. Default: EPSG:27700
EPSG:27700
Possible values: Returns a description of the attributes for each feature type supported by the WFS service.
GET /features/v1/wfs HTTP/1.1
Host: api.os.uk
Accept: */*
Returns a description of the attributes for each feature type supported by the WFS service.
<?xml version="1.0"?>
<object>
<type>FeatureCollection</type>
<features>
<type>text</type>
<geometry>
<type>text</type>
<coordinates>
<x>1</x>
<y>1</y>
</coordinates>
</geometry>
<properties>
<ANY_ADDITIONAL_PROPERTY/>
</properties>
</features>
</object>
Access to features matching a given query for a particular year (as an annual snapshot - taking the last full release in the calendar year)
The year being requested.
The type of request being made.
GetFeature
Possible values: The type of service being requested.
The type of service being requested.
2.0.0
Possible values: The Feature Type being requested.
A set of valid WFS BBOX coordinates, in the order <bottom-left y, bottom-left x, top-right y, top-right x> (Dependent on CRS)
A valid OGC XML filter object
An integer stating the maximum number of features to be returned in a single response. In version 1.0.0 and 1.1.0 this is known as maxFeatures
100
An integer stating the maximum number of features to be returned in a single response. In version 2.0.0 this is known as count
100
A list of valid feature attribute names, for example, ChangeDate, TOID, PhysicalLevel
An integer stating which result to start from, when returning a response
0
The format the response will be returned in. Default: XML.
GML32
Possible values: Type of the results. Default: results.
results
Possible values: Allows the user to reproject the selected features into another CRS. Default: EPSG:27700
EPSG:27700
Possible values: Returns a description of the attributes for each feature type supported by the WFS service.
GET /features/v1/wfs/archive/{year} HTTP/1.1
Host: api.os.uk
Accept: */*
Returns a description of the attributes for each feature type supported by the WFS service.
<?xml version="1.0"?>
<object>
<type>FeatureCollection</type>
<features>
<type>text</type>
<geometry>
<type>text</type>
<coordinates>
<x>1</x>
<y>1</y>
</coordinates>
</geometry>
<properties>
<ANY_ADDITIONAL_PROPERTY/>
</properties>
</features>
</object>
Last updated
Was this helpful?