Asset-centric API, deprecated 2026-10-15 and retired 2027-12-31. Will be removed or moved in a future major release. See https://docs.cognite.com/cdf/deprecated and https://github.com/cognitedata/cognite-sdk-js/blob/master/guides/DEPRECATIONS.md.

Hierarchy

Methods

  • Create feature types

    const featureTypes = [
    {
    externalId: 'ocean_temperature',
    properties: { temperature: { type: 'DOUBLE' as const }, location: { type: 'POINT' as const, srid: 4326 } } ,
    searchSpec: { location_idx: { properties : ['location'] } }
    }
    ];
    const createdFeatureTypes = await client.geospatial.featureType.create(featureTypes);

    Parameters

    Returns Promise<FeatureType[]>

    Asset-centric API, deprecated 2026-10-15 and retired 2027-12-31. Will be removed or moved in a future major release.

  • Update feature types

    const featureTypesToUpdate = [
    {
    externalId: 'ocean_temperature',
    update: {
    properties: { add: { depth: { type: 'DOUBLE'} }, remove: ['temperature'] },
    searchSpec: { add: { depth_idx: { properties: ['depth'] } } }
    }
    }
    ];
    const updatedFeatureTypes = await client.geospatial.featureType.update(featureTypesToUpdate);

    Parameters

    Returns Promise<FeatureType[]>

    Asset-centric API, deprecated 2026-10-15 and retired 2027-12-31. Will be removed or moved in a future major release.