Impact 2024: The Industrial Data and AI Conference for and by Users | Nominate Speakers Now for a Ch...
Hi @vidhi.c.jain , which CDF application/UI are you using?
Hi, you can reference this code to create an asset with geo_locationfrom cognite.client import CogniteClientfrom cognite.client.data_classes import GeoLocation, Geometryc = CogniteClient()geometry = Geometry(type="LineString", coordinates=[[30, 10], [10, 30], [40, 40]])asset = Asset(name="my_pump", geo_location=GeoLocation(type="Feature", geometry=geometry))you can take a look at different supported Geometry object at https://github.com/cognitedata/cognite-sdk-python/blob/c95086e952d9e63aa72e7c68911d32e92ecfbbca/cognite/client/data_classes/shared.py#L53PS: I haven’t tested the code yet. But it should provide you an idea how to work with geo_location of Asset
Hi Henrik, the fix is ready. Please test it again.
We made some fixes on our end. Could you try again? @Henrik Svoren Edit: The deployment is not ready. I’ll ping again when it is.
Hi Henrik, I found some internal error when streaming request related to closed connection. To eliminate the error from client side, can you check if it works with Python SDK? https://cognite-sdk-python.readthedocs-hosted.com/en/latest/cognite.html#stream-featuresPlease check here for the client instantiation https://cognite-sdk-python.readthedocs-hosted.com/en/latest/cognite.html#
Hi Henrik,It would be nice if you can provide the request Id from your response. We will look into the log to see what actually happens.In the mean time, we also provide the list endpoint with paginated results. You can find more detail at https://docs.cognite.com/api/v1/#tag/Geospatial/operation/listFeatures. However, you need to write the query with plain JS because JS SDK does not support it yet.
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.