Features API Reference
Planet Features API (1)
Download OpenAPI specification:Download
An API to manage features on the Planet platform.
Get Landing Page
The landing page provides links to the API definition, the conformance statements and to the feature collections in this dataset.
Authorizations:
Responses
Response samples
- 200
- 500
{- "title": "Buildings in Bonn",
- "description": "Access to data about buildings in the city of Bonn via a Web API that conforms to the OGC API Features specification.",
- "links": {
- "0": {
- "rel": "self",
- "type": "application/json",
- "title": "this document"
}, - "1": {
- "rel": "service-desc",
- "type": "application/vnd.oai.openapi+json;version=3.0",
- "title": "the API definition"
}, - "2": {
- "rel": "service-doc",
- "type": "text/html",
- "title": "the API documentation"
}, - "3": {
- "rel": "conformance",
- "type": "application/json",
- "title": "OGC API conformance classes implemented by this server"
}, - "4": {
- "rel": "data",
- "type": "application/json",
- "title": "Information about the feature collections"
}
}
}
List Collections
List all feature collections available to the authenticated user in the dataset.
Authorizations:
Responses
Response samples
- 200
- 500
{- "links": {
- "0": {
- "rel": "self",
- "type": "application/json",
- "title": "this document"
}, - "1": {
- "rel": "alternate",
- "type": "text/html",
- "title": "this document as HTML"
}, - "2": {
- "rel": "describedBy",
- "type": "application/xml",
- "title": "GML application schema for Acme Corporation building data"
}, - "3": {
- "rel": "enclosure",
- "type": "application/geopackage+sqlite3",
- "title": "Bulk download (GeoPackage)",
- "length": 472546
}
}, - "collections": {
- "0": {
- "id": "buildings",
- "title": "Buildings",
- "description": "Buildings in the city of Bonn.",
- "extent": {
- "spatial": {
- "bbox": {
- "0": {
- "0": 7.01,
- "1": 50.63,
- "2": 7.22,
- "3": 50.78
}
}
}, - "temporal": {
- "interval": {
- "0": {
- "0": "2010-02-15T12:34:56Z",
- "1": null
}
}
}
}, - "links": {
- "0": {
- "rel": "items",
- "type": "application/geo+json",
- "title": "Buildings"
}, - "1": {
- "rel": "items",
- "type": "text/html",
- "title": "Buildings"
}, - "2": {
- "rel": "license",
- "type": "text/html",
- "title": "CC0-1.0"
}, - "3": {
- "rel": "license",
- "type": "application/rdf+xml",
- "title": "CC0-1.0"
}
}
}
}
}
Create Collection
Create a new feature collection in the dataset.
Authorizations:
Request Body schema: application/json
title required | string |
description | string |
Responses
Request samples
- Payload
{- "title": "string",
- "description": "string"
}
Response samples
- 201
- 500
{- "id": "buildings",
- "title": "Buildings",
- "description": "Buildings in the city of Bonn.",
- "extent": {
- "spatial": {
- "bbox": {
- "0": {
- "0": 7.01,
- "1": 50.63,
- "2": 7.22,
- "3": 50.78
}
}
}, - "temporal": {
- "interval": {
- "0": {
- "0": "2010-02-15T12:34:56Z",
- "1": null
}
}
}
}, - "links": {
- "0": {
- "rel": "items",
- "type": "application/geo+json",
- "title": "Buildings"
}, - "1": {
- "rel": "items",
- "type": "text/html",
- "title": "Buildings"
}, - "2": {
- "rel": "license",
- "type": "text/html",
- "title": "CC0-1.0"
}, - "3": {
- "rel": "license",
- "type": "application/rdf+xml",
- "title": "CC0-1.0"
}
}
}
Get Collection
Get a feature collection by collectionId
Authorizations:
path Parameters
collectionId required | string local identifier of a collection |
Responses
Response samples
- 200
- 500
{- "id": "buildings",
- "title": "Buildings",
- "description": "Buildings in the city of Bonn.",
- "extent": {
- "spatial": {
- "bbox": {
- "0": {
- "0": 7.01,
- "1": 50.63,
- "2": 7.22,
- "3": 50.78
}
}
}, - "temporal": {
- "interval": {
- "0": {
- "0": "2010-02-15T12:34:56Z",
- "1": null
}
}
}
}, - "links": {
- "0": {
- "rel": "items",
- "type": "application/geo+json",
- "title": "Buildings"
}, - "1": {
- "rel": "items",
- "type": "text/html",
- "title": "Buildings"
}, - "2": {
- "rel": "license",
- "type": "text/html",
- "title": "CC0-1.0"
}, - "3": {
- "rel": "license",
- "type": "application/rdf+xml",
- "title": "CC0-1.0"
}
}
}
Update Collection
Update the feature collection by collectionId
Authorizations:
path Parameters
collectionId required | string local identifier of a collection |
Request Body schema: application/json
title required | string |
description | string |
Responses
Request samples
- Payload
{- "title": "string",
- "description": "string"
}
Response samples
- 200
- 500
{- "id": "buildings",
- "title": "Buildings",
- "description": "Buildings in the city of Bonn.",
- "extent": {
- "spatial": {
- "bbox": {
- "0": {
- "0": 7.01,
- "1": 50.63,
- "2": 7.22,
- "3": 50.78
}
}
}, - "temporal": {
- "interval": {
- "0": {
- "0": "2010-02-15T12:34:56Z",
- "1": null
}
}
}
}, - "links": {
- "0": {
- "rel": "items",
- "type": "application/geo+json",
- "title": "Buildings"
}, - "1": {
- "rel": "items",
- "type": "text/html",
- "title": "Buildings"
}, - "2": {
- "rel": "license",
- "type": "text/html",
- "title": "CC0-1.0"
}, - "3": {
- "rel": "license",
- "type": "application/rdf+xml",
- "title": "CC0-1.0"
}
}
}
List Features
List features of the feature collection with collectionId
.
Every feature in a dataset belongs to a collection. A dataset may consist of multiple feature collections. A feature collection is often a collection of features of a similar type, based on a common schema.
Use content negotiation to request HTML or GeoJSON.
Authorizations:
path Parameters
collectionId required | string local identifier of a collection |
query Parameters
limit | integer [ 1 .. 10000 ] Default: 10 The optional limit parameter limits the number of items that are presented in the response document. Only items are counted that are on the first level of the collection in the response document. Nested objects contained within the explicitly requested items shall not be counted. Minimum = 1. Maximum = 10000. Default = 10. |
bbox | Array of numbers [ 4 .. 6 ] items Only features that have a geometry that intersects the bounding box are selected. The bounding box is provided as four or six numbers, depending on whether the coordinate reference system includes a vertical axis (height or depth):
The coordinate reference system of the values is WGS 84 longitude/latitude
(http://www.opengis.net/def/crs/OGC/1.3/CRS84) unless a different coordinate
reference system is specified in the parameter For WGS 84 longitude/latitude the values are in most cases the sequence of minimum longitude, minimum latitude, maximum longitude and maximum latitude. However, in cases where the box spans the antimeridian the first value (west-most box edge) is larger than the third value (east-most box edge). If the vertical axis is included, the third and the sixth number are the bottom and the top of the 3-dimensional bounding box. If a feature has multiple spatial geometry properties, it is the decision of the server whether only a single spatial geometry property is used to determine the extent or all relevant geometries. |
datetime | string Either a date-time or an interval, open or closed. Date and time expressions adhere to RFC 3339. Open intervals are expressed using double-dots. Examples:
Only features that have a temporal property that intersects the value of
If a feature has multiple temporal properties, it is the decision of the server whether only a single temporal property is used to determine the extent or all relevant temporal properties. |
Responses
Response samples
- 200
- 400
- 500
{- "type": "FeatureCollection",
- "links": {
- "0": {
- "rel": "self",
- "type": "application/geo+json",
- "title": "this document"
}, - "1": {
- "rel": "alternate",
- "type": "text/html",
- "title": "this document as HTML"
}, - "2": {
- "rel": "next",
- "type": "application/geo+json",
- "title": "next page"
}
}, - "timeStamp": "2018-04-03T14:52:23Z",
- "numberMatched": 123,
- "numberReturned": 2,
- "features": {
- "0": {
- "type": "Feature",
- "id": "123",
- "geometry": {
- "type": "Polygon",
- "coordinates": {
- "0": "..."
}
}, - "properties": {
- "function": "residential",
- "floors": "2",
- "lastUpdate": "2015-08-01T12:34:56Z"
}
}, - "1": {
- "type": "Feature",
- "id": "132",
- "geometry": {
- "type": "Polygon",
- "coordinates": {
- "0": "..."
}
}, - "properties": {
- "function": "public use",
- "floors": "10",
- "lastUpdate": "2013-12-03T10:15:37Z"
}
}
}
}
Add Feature
Add a feature to the collection
Authorizations:
path Parameters
collectionId required | string local identifier of a collection |
query Parameters
limit | integer [ 1 .. 10000 ] Default: 10 The optional limit parameter limits the number of items that are presented in the response document. Only items are counted that are on the first level of the collection in the response document. Nested objects contained within the explicitly requested items shall not be counted. Minimum = 1. Maximum = 10000. Default = 10. |
bbox | Array of numbers [ 4 .. 6 ] items Only features that have a geometry that intersects the bounding box are selected. The bounding box is provided as four or six numbers, depending on whether the coordinate reference system includes a vertical axis (height or depth):
The coordinate reference system of the values is WGS 84 longitude/latitude
(http://www.opengis.net/def/crs/OGC/1.3/CRS84) unless a different coordinate
reference system is specified in the parameter For WGS 84 longitude/latitude the values are in most cases the sequence of minimum longitude, minimum latitude, maximum longitude and maximum latitude. However, in cases where the box spans the antimeridian the first value (west-most box edge) is larger than the third value (east-most box edge). If the vertical axis is included, the third and the sixth number are the bottom and the top of the 3-dimensional bounding box. If a feature has multiple spatial geometry properties, it is the decision of the server whether only a single spatial geometry property is used to determine the extent or all relevant geometries. |
datetime | string Either a date-time or an interval, open or closed. Date and time expressions adhere to RFC 3339. Open intervals are expressed using double-dots. Examples:
Only features that have a temporal property that intersects the value of
If a feature has multiple temporal properties, it is the decision of the server whether only a single temporal property is used to determine the extent or all relevant temporal properties. |
property_id | string Inform Features API how to extract the id from the feature |
Request Body schema: application/json
type required | string Value: "Feature" |
required | pointGeoJSON (object) or multipointGeoJSON (object) or linestringGeoJSON (object) or multilinestringGeoJSON (object) or polygonGeoJSON (object) or multipolygonGeoJSON (object) or geometrycollectionGeoJSON (object) (geometryGeoJSON) |
properties required | object or null |
string or integer | |
Array of objects (link) |
Responses
Request samples
- Payload
{- "type": "Feature",
- "geometry": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "properties": { },
- "id": "string",
- "links": [
- {
- "rel": "alternate",
- "type": "application/geo+json",
- "hreflang": "en",
- "title": "Trierer Strasse 70, 53115 Bonn",
- "length": 0
}
]
}
Response samples
- 500
{- "code": "string",
- "description": "string"
}
Get Feature
Get a single feature with id featureId
in the feature collection
with id collectionId
.
Use content negotiation to request HTML or GeoJSON.
Authorizations:
path Parameters
collectionId required | string local identifier of a collection |
featureId required | string local identifier of a feature |
Responses
Response samples
- 200
- 500
{- "type": "Feature",
- "links": {
- "0": {
- "rel": "canonical",
- "title": "canonical URI of the building"
}, - "1": {
- "rel": "self",
- "type": "application/geo+json",
- "title": "this document"
}, - "2": {
- "rel": "alternate",
- "type": "text/html",
- "title": "this document as HTML"
}, - "3": {
- "rel": "collection",
- "type": "application/geo+json",
- "title": "the collection document"
}
}, - "id": "123",
- "geometry": {
- "type": "Polygon",
- "coordinates": {
- "0": "..."
}
}, - "properties": {
- "function": "residential",
- "floors": "2",
- "lastUpdate": "2015-08-01T12:34:56Z"
}
}
Update Feature
Update a feature, you cannot update a feature geometry.
Authorizations:
path Parameters
collectionId required | string local identifier of a collection |
featureId required | string local identifier of a feature |
Request Body schema:
type required | string Value: "Feature" |
required | pointGeoJSON (object) or multipointGeoJSON (object) or linestringGeoJSON (object) or multilinestringGeoJSON (object) or polygonGeoJSON (object) or multipolygonGeoJSON (object) or geometrycollectionGeoJSON (object) (geometryGeoJSON) |
properties required | object or null |
string or integer | |
Array of objects (link) |
Responses
Request samples
- Payload
{- "type": "Feature",
- "geometry": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "properties": { },
- "id": "string",
- "links": [
- {
- "rel": "alternate",
- "type": "application/geo+json",
- "hreflang": "en",
- "title": "Trierer Strasse 70, 53115 Bonn",
- "length": 0
}
]
}
Response samples
- 200
{- "type": "Feature",
- "links": {
- "0": {
- "rel": "canonical",
- "title": "canonical URI of the building"
}, - "1": {
- "rel": "self",
- "type": "application/geo+json",
- "title": "this document"
}, - "2": {
- "rel": "alternate",
- "type": "text/html",
- "title": "this document as HTML"
}, - "3": {
- "rel": "collection",
- "type": "application/geo+json",
- "title": "the collection document"
}
}, - "id": "123",
- "geometry": {
- "type": "Polygon",
- "coordinates": {
- "0": "..."
}
}, - "properties": {
- "function": "residential",
- "floors": "2",
- "lastUpdate": "2015-08-01T12:34:56Z"
}
}
Get Alternates
generate alternate geometries for features with vertex count that exceeds the vertex limit or may be invalid (e.g via de-duping, simpplification, bbox, convex hull, etc)
Authorizations:
Request Body schema: application/json
type required | string Value: "Feature" |
required | pointGeoJSON (object) or multipointGeoJSON (object) or linestringGeoJSON (object) or multilinestringGeoJSON (object) or polygonGeoJSON (object) or multipolygonGeoJSON (object) or geometrycollectionGeoJSON (object) (geometryGeoJSON) |
properties required | object or null |
string or integer | |
Array of objects (link) |
Responses
Request samples
- Payload
{- "type": "Feature",
- "geometry": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "properties": { },
- "id": "string",
- "links": [
- {
- "rel": "alternate",
- "type": "application/geo+json",
- "hreflang": "en",
- "title": "Trierer Strasse 70, 53115 Bonn",
- "length": 0
}
]
}
Response samples
- 200
{- "type": "FeatureCollection",
- "links": {
- "0": {
- "rel": "self",
- "type": "application/geo+json",
- "title": "this document"
}, - "1": {
- "rel": "alternate",
- "type": "text/html",
- "title": "this document as HTML"
}, - "2": {
- "rel": "next",
- "type": "application/geo+json",
- "title": "next page"
}
}, - "timeStamp": "2018-04-03T14:52:23Z",
- "numberMatched": 123,
- "numberReturned": 2,
- "features": {
- "0": {
- "type": "Feature",
- "id": "123",
- "geometry": {
- "type": "Polygon",
- "coordinates": {
- "0": "..."
}
}, - "properties": {
- "function": "residential",
- "floors": "2",
- "lastUpdate": "2015-08-01T12:34:56Z"
}
}, - "1": {
- "type": "Feature",
- "id": "132",
- "geometry": {
- "type": "Polygon",
- "coordinates": {
- "0": "..."
}
}, - "properties": {
- "function": "public use",
- "floors": "10",
- "lastUpdate": "2013-12-03T10:15:37Z"
}
}
}
}
Validate Feature
Validate a feature against this dataset's lint rules.
Authorizations:
Request Body schema: application/json
type required | string Value: "Feature" |
required | pointGeoJSON (object) or multipointGeoJSON (object) or linestringGeoJSON (object) or multilinestringGeoJSON (object) or polygonGeoJSON (object) or multipolygonGeoJSON (object) or geometrycollectionGeoJSON (object) (geometryGeoJSON) |
properties required | object or null |
string or integer | |
Array of objects (link) |
Responses
Request samples
- Payload
{- "type": "Feature",
- "geometry": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "properties": { },
- "id": "string",
- "links": [
- {
- "rel": "alternate",
- "type": "application/geo+json",
- "hreflang": "en",
- "title": "Trierer Strasse 70, 53115 Bonn",
- "length": 0
}
]
}