Impact 2024: The Industrial Data and AI Conference for and by Users | Nominate Speakers Now for a Ch...
Hi Morten,> Some of our raster files are closer to 50GB, is CDF suited to store these files? No, CDF only supports the embedded model. You have to split your large raster into smaller tiles in order to achieve that.> X-Request-ID: 3daf7ab1-5de8-999a-9ae9-c80196551390I see that the error has been logged. It seems to point to an invalid raster property. Can you double check the raster property name?Vincent
Hi Morten,You need a feature type and define a raster property (together with other “conventional” properties as you see fit).The raster property needs the “storage” parameter set to “embedded” and “optional to “True” so more like this:raster_ft = FeatureType( external_id="Raster_ft", data_set_id=1, properties={ "raster": {"type": "RASTER", "storage": "embedded", "optional": True} })Then create the feature that will receive the raster:feature = Feature( external_id=f'raster.test', data_set_id=1,)client.geospatial.create_features(feature_type_external_id='Raster_ft', feature=feature)And finally push the raster into the feature:client.geospatial.put_raster( feature_type_external_id=raster_ft.external_id, feature_external_id=feature.external_id, raster_property_name='raster', raster_format='XYZ', raster_srid='32633', file=raster_filepath)If it helps, you can find some example code at the geospatial-examplesVincent
Hi KristianI think you just spotted a error in the documentation!Indeed the error message does not help pinpointing precisely to the problem: `value` should be `values`Also note that you can control what properties are returned with something like: "output": { "properties": { "externalId": {} "assetIds": {} … }} This can really speed up things if your geometries are large.Hope this helps!Vincent
Hi Kristan,The Geospatial API would indeed allow you to bypass the Assets API limit. Geospatial support large geometries (50Mb per request). However, the Geospatial is now with limited support and I am not sure it of its future at this point.But to answer your questions:> If so, is the assetIds property the preferred way to connect GeoSpatial objects to assets? yes, that’s what the property is made for> is there a simple way to retrieve the shape of an asset using the Python SDK? (something equivalent to using asset.geolocation?)yes, the python sdk can be installed with geopandas and other libs that enable manipulation and the geometries> Any plans for showing geolocation ar geospatial information in the Fusion UI?not that I know of, unlikely to happen in the short/mid term.Vincent
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.