How can I filter assets by their geolocation using the python SDK?
from cognite.client.data_classes import GeoLocationFilter, GeometryFilter
mygeofilter = GeoLocationFilter(
relation="within",
shape=GeometryFilter(
type="Polygon",
coordinates=[[[7, 61], [13, 61], [10, 55], [7, 61]]]
)
)
client.assets.list(geo_location=mygeofilter)This approach works for files, but for assets I get:
CogniteAPIError: Unexpected value 'within' | code: 400 | X-Request-ID: fd1c5a73-a3d3-9ec1-bd97-039b4b1e0051
Check the
documentation
Ask the
Community
Take a look
at
Academy
Cognite
Status
Page
Contact
Cognite Support