const featuresToRetrieve = [{ externalId: 'measurement_point_765' }, { externalId: 'measurement_point_765' }];
const outputParams = { output: { geometryFormat: 'GEOJSON' as const } };
const retrievedFeatures = await client.geospatial.feature.retrieve('ocean_temperature', featuresToRetrieve, outputParams);{
"items": [
{
"externalId": "measurement_point_765",
"temperature": 5.65,
"location": {
"wkt": "POINT(60.547602 -5.423433)"
},
"createdTime": 1629784673505,
"lastUpdatedTime": 1629784673505
},
{
"externalId": "measurement_point_863",
"temperature": 5.03,
"location": {
"wkt": "POINT(60.585858 -6.474416)"
},
"createdTime": 1629784673505,
"lastUpdatedTime": 1629784673505
}
]
}Required capabilities:
geospatialAcl:READ
Retrieves features by external ids. It is possible to retrieve up to 1000 items per request.
const featuresToRetrieve = [{ externalId: 'measurement_point_765' }, { externalId: 'measurement_point_765' }];
const outputParams = { output: { geometryFormat: 'GEOJSON' as const } };
const retrievedFeatures = await client.geospatial.feature.retrieve('ocean_temperature', featuresToRetrieve, outputParams);{
"items": [
{
"externalId": "measurement_point_765",
"temperature": 5.65,
"location": {
"wkt": "POINT(60.547602 -5.423433)"
},
"createdTime": 1629784673505,
"lastUpdatedTime": 1629784673505
},
{
"externalId": "measurement_point_863",
"temperature": 5.03,
"location": {
"wkt": "POINT(60.585858 -6.474416)"
},
"createdTime": 1629784673505,
"lastUpdatedTime": 1629784673505
}
]
}Access token issued by the CDF project's configured identity provider. Access token must be an OpenID Connect token, and the project must be configured to accept OpenID Connect tokens. Use a header key of 'Authorization' with a value of 'Bearer $accesstoken'. The token can be obtained through any flow supported by the identity provider.
External Id of the feature type provided by client. Must be unique among all feature type external ids within a CDF project.
32^[A-Za-z][A-Za-z0-9_]{0,31}$"ocean_measures"
Feature list response.
1 - 1000 elementsShow child attributes
Was this page helpful?