catalog layer
catalog layer
The OLP CLI supports the following:
- add a layer to a catalog
- show a layer in a catalog
- update a layer in a catalog
- delete a layer in a catalog
- inspect a layer in a catalog
catalog layer add
Adds the specified layer to a catalog.
olp catalog layer add <catalog HRN> <layer ID> <layer name> <layer type> \
--summary <layer summary> --description <layer description> [command options]olp catalog layer add <catalog HRN> <layer ID> <layer name> <layer type> ^
--summary <layer summary> --description <layer description> [command options]Required parameters:
<catalog HRN>The HRN of the catalog.<layer ID>The ID of the layer to add.<layer name>The human-readable name of the layer.<layer type>The type of the layer, either--versioned,--volatile,--stream,--index,--objectstoreor--interactivemap.--summary <layer summary>A one-line summary of the layer contents.--description <layer description>A detailed description of the catalog and its contents. Enclose the description with quotes.
Required parameters for an index layer:
--index-definitions <index-key-name:index-key-type[:duration][:zoom-level]>Index definitions of the layer:index-key-nameis the name used in the Query API to express the query predicate.index-key-typedescribes the type of keys supported. Possible values arebool,int,string,heretile, ortimewindow. duration represents the length of a tile slicetimewindowkey. zoom-level represents theheretilezoom level.
Optional parameters:
--content-type <layer data type>The content type of the layer, such asapplication/vnd.geo+jsonandtext/plain. The default value isapplication/x-protobuf.--content-encoding <encoding type>The content encoding of the layer, such asgzip. If this parameter is specified, all data in a layer is compressed by the specified algorithm. The default value isUncompressed, which means no compression.--tags <tag1 tag2 ..>Catalog keywords used for search discovery.--schema <schema HRN>An HRN of the data schema for this layer.--billing-tags <tag1 tag2 ...>A list of billing tags. Used for search discovery.--coverage <code1 code2 ...>A list of ISO 3166 two-letter codes for countries and regions. Optionally, followed by up to three characters codes for subdivisions, such asDEfor Germany,PLfor Poland, orCN-HKfor Hong Kong, China. These codes must be separated by spaces.--quietDisplays empty output with no additional information.--scope <project HRN>Specifies the project HRN to use as the scope in the request. The value specified with--scopeoverrides any value forhere.token.scopeprovided in the credentials file used for the command.--credentials <path to credentials file>The name of a credentials file to use with the command. Credentials files are downloaded separately from the platform portal.--profile <profile name>The name of the credentials profile to use from theolpcli.inifile.
For more information on using credentials and profiles, see Credentials setup.
Optional parameters for a volatile layer:
--max-memory-policyThe eviction policy of the layer.--data-redundancy <single-instance|multi-instance>The data redundancy for the layer. Single-instance layers do not have data redundancy whereas multiple-instance layers do. Note that data redundancy is specific to volatile layers only and refers to data redundancy within a single region. For details on cost considerations, see Data Limits and Costs.--storage-capacity <size in MB>The storage capacity of the layer specified in megabytes, with an increment step of 100 (for example 100, 500, 600, 2000).- Minimum value: 100 MB (100);
- Maximum value: 21 GB (21000).
--ttlThe layer's time-to-live or expiry time in milliseconds.- Maximum value: 7 days (604800000 ms);
- Minimum value: 1 minute (60000 ms);
- Default value: 1 hour (3600000 ms).
--digest <md5|sha-1|sha-256>The digest algorithm to use to calculate the checksum for the layer. Possible values aremd5,sha-1,sha-256.--partitioning <generic|heretile[:1,2,...,15]>The partitioning scheme of the layer, eitherheretileorgeneric. Forheretile, you can specifytile levelsseparated by a comma, such asheretile:1,2. The platform supports tile levels from1to15. The default value isgeneric.--crc <CRC-32C>The algorithm used to calculate a cyclic redundancy check; currently supported is only<CRC-32C>(case-insensitive, you can usecrc-32c).
Optional parameters for a stream layer:
It is recommended to provide all 3 properties that define the scale of the required streaming layer:
--data-in <size><KB|MB>--data-out <size><KB|MB>--parallelization <number of Kafka partitions>.
Either combination of --data-in and --data-out or
--parallelization is required.
-
--data-in <size><KB|MB>The maximum throughput for incoming data in the layer.- Maximum value: 32MB (32,800 KBps maximum or 32,768 KBps rounded up to the nearest 100th);
- Minimum value: 100KB (can only be multiple of 100 KBps);
- Default value: 1MB, if no scale parameters are set; otherwise it is calculated by the HERE platform;
- If the unit value is omitted the MB will be used by default;
-
--data-out <size><KB|MB>The maximum throughput for outgoing data in the layer.- Maximum value: 64MB (65,500 KBps maximum or 65,536 KBps rounded up to the nearest 100th);
- Minimum value: 100KB (can only be multiple of 100 KBps);
- Default value: 4MB, if no scale parameters are set; otherwise it is calculated by the HERE platform;
- If the unit value is omitted the MB will be used by default;
-
--parallelization <number of Kafka partitions>A number of Kafka partitions for a stream layer. If this parameter is set, then the--data-in <size><KB|MB>and--data-out <size><KB|MB>parameters can be omitted and default values will be used.- Maximum value: 32;
- Minimum value: 1;
- Default value: 1, if no scale parameters are set; otherwise it is calculated by the HERE platform.
-
--ttl <time in ms>The layer's time-to-live or expiry time in milliseconds.- Maximum value: 3 days (259200000 ms);
- Minimum value: 10 minutes (600000 ms);
- Default value: 1 hour (3600000 ms).
For more information on stream layer parameters, see Data Client Library Developer Guide.
Optional parameters for a versioned layer:
--digest <md5|sha-1|sha-256>The digest algorithm to use to calculate the layer checksum. Possible values aremd5,sha-1, orsha-256.--partitioning <generic|heretile[:1,2,...,15]>The partitioning scheme of the layer, eitherheretileorgeneric. Forheretileyou can specifytile levelsseparated by a comma, such asheretile:1,2. The platform supports tile levels from1to15. The default value isgeneric.--crc <CRC-32C>The algorithm used to calculate a cyclic redundancy check; currently supported is only<CRC-32C>(case-insensitive, you can usecrc-32c).--extends <base-catalog-hrn,layer-id[,baseVersion]>A definition extension that allows a layer's content to be based on an existing layer from the base catalog. WhenbaseVersionis not specified, the layer will be created empty, and an initial publication will be required to specify a base version. Conversely, providing abaseVersionwill create an implicit initial version of the catalog pointing to the base catalog version upon adding the new layer to the catalog.--encryption-type <hereEncryption|cloudEncryption>Defines type of encryption to apply for data at rest.hereEncryption(default) ensures that encryption keys are managed by HERE.cloudEncryptionuses standard cloud providers encryption mechanism like AWS S3 Bucket keys or similar.
NoteThe properties of the layer between the base and delta catalogs should be identical.
Optional parameters for an index layer:
--ttl <time in dd, mm, yy>The time-to-live or expiry time for the data in the index layer. Possible values are7.days,15.days,1.month,2.months,3.months,4.months,5.months,6.months,1.year,1.5.years,2.years, andunlimited. The default TTL setting is7.days.--crc <CRC-32C>The algorithm used to calculate a cyclic redundancy check; currently supported is only<CRC-32C>(case-insensitive, you can usecrc-32c).--digest <md5|sha-1|sha-256>The digest algorithm used to calculate the checksum for the layer. Possible values aremd5,sha-1,sha-256.
Optional parameters for an object store layer:
--ttl <time in dd, mm, yy>The time-to-live or expiry time for the data in the object store layer. Possible values are1.days,3.days,7.days,15.days,1.month,2.months,3.months,4.months,6.months,1.year,1.5.years,2.year,3.years,5.years, andunlimited. The default TTL setting isunlimited.--encryption-type <hereEncryption|cloudEncryption>Defines type of encryption to apply for data at rest.hereEncryption(default) ensures that encryption keys are managed by HERE.cloudEncryptionuses standard cloud providers encryption mechanism like AWS S3 Bucket keys or similar.
Optional parameters for an interactive map layer:
--searchable-propertiesA list of strings containing the properties you want to index for faster searching. Searchable properties can be updated at any time. The maximum number of searchable properties is 8.--extends <base-catalog-hrn,layer-id>A definition extension that allows an Interactive Map layer's content to be based on an existing layer from the base catalog.
NoteThe
--searchable-propertiesand--extendsparameters are not supported together
Example:
The following command adds a versioned layer with the ID new-layer
to catalog1.
olp catalog layer add hrn:here:data::org:catalog1 new-layer new-layer-name \
--versioned --summary "A summary"olp catalog layer add hrn:here:data::org:catalog1 new-layer new-layer-name ^
--versioned --summary "A summary"Output:
Layer new-layer has been added to the catalogExample:
The following command adds a versioned layer with the md5 digest, heretile
partitioning, and tile levels to catalog1.
olp catalog layer add hrn:here:data::org:catalog1 new-layer new-layer-name \
--versioned --partitioning heretile:7,10,14 --digest md5 --summary "A summary"olp catalog layer add hrn:here:data::org:catalog1 new-layer new-layer-name ^
--versioned --partitioning heretile:7,10,14 --digest md5 --summary "A summary"Output:
Layer new-layer has been added to the catalogcatalog layer show
Displays the layer properties.
olp catalog layer show <catalog HRN> <layer ID> [command options]Required parameters:
<catalog HRN>The HRN of the catalog.<layer ID>The ID of the layer to show.
Optional parameters:
--credentials <path to credentials file>The name of a credentials file to use with the command. Credentials files are downloaded separately from the platform portal.--jsonDisplays the command result in JSON format.--profile <profile name>The name of the credentials profile to use from theolpcli.inifile.--quietDisplays the type of the layer and its partitioning scheme, separated by space.--scope <project HRN>Specifies the project HRN to use as the scope in the request. The value specified with--scopeoverrides any value forhere.token.scopeprovided in the credentials file used for the command.
For more information on using credentials and profiles, see Credentials setup.
Example:
The following command displays the test-layer properties inside the
test-catalog.
olp catalog layer show hrn:here:data::org:test-catalog test-layer --json
NoteThe
olp catalog layer show --jsoncommand output does not include thehrnfield that is present in the Config API response.
Output:
{
"summary": "Summary",
"volume": { "volumeType": "durable" },
"layerType": "versioned",
"billingTags": [],
"crc": "CRC-32C",
"name": "Test Layer",
"description": "some description",
"partitioningScheme": "generic",
"partitioning": { "scheme": "generic" },
"id": "test-layer",
"contentType": "application/octet-stream",
"tags": []
}catalog layer update
Updates the specified layer in the catalog.
olp catalog layer update <catalog HRN> <layer ID> [command options]
WarningRisk of irrecoverable data inconsistency
The update of content type(
--content-type), content encoding(--content-encoding), or content schema definition(--schema) for a layer with data in it can lead to irrecoverable data inconsistency. Any such changes could adversely impact downstream consumers of the data.
Required parameters:
<catalog HRN>The HRN of the catalog.<layer ID>The ID of the layer to update.
Optional parameters:
--name <layer name>The human-readable name of the layer.--summary <layer summary>A one-line summary of the layer contents.--description <layer description>A detailed description of the catalog and its contents. Enclose the description with quotes.--tags <tag1 tag2 ...>Catalog keywords used for search discovery.--schema <schema HRN>An HRN of the data schema for this layer.--billing-tags <tag1 tag2 ...>A list of billing tags used for search discovery.--coverage <code1 code2 ...>A list of ISO 3166 two-letter codes for countries and regions. Optionally, followed by up to three characters codes for subdivisions, such asDEfor Germany,PLfor Poland, orCN-HKfor Hong Kong, China. These codes must be separated by spaces.--quietDisplays empty output with no additional information.--scope <project HRN>Specifies the project HRN to use as the scope in the request. The value specified with--scopeoverrides any value forhere.token.scopeprovided in the credentials file used for the command.--credentials <path to credentials file>The name of a credentials file to use with the command. Credentials files are downloaded separately from the platform portal.--profile <profile name>The name of the credentials profile to use from theolpcli.inifile.
For more information on using credentials and profiles, see Credentials setup.
Optional parameters for a stream layer:
--ttlThe layer's time-to-live or expiry time in milliseconds.- Maximum value: 7 days (604800000 ms);
- Minimum value: 10 minutes (600000 ms);
- Default value: 1 hour (3600000 ms).
--content-type <layer data type>The content type of the layer, such asapplication/vnd.geo+jsonandtext/plain. The default value isapplication/x-protobuf.--content-encoding <encoding type>The content encoding of the layer, such asgzip. If this parameter is specified, all data in a layer is compressed by the specified algorithm. The default value isUncompressed, which means no compression.--data-in <size><KB|MB>The maximum throughput for incoming data in the layer.- Maximum value: 32MB (32,800 KBps maximum or 32,768 KBps rounded up to the nearest 100th);
- Minimum value: 100KB (can only be a multiple of 100 KBps);
- Default value: 1MB, if no scale parameters are set; otherwise it is calculated by the HERE platform;
- If the unit value is omitted, MB will be used by default;
--data-out <size><KB|MB>The maximum throughput for outgoing data in the layer.- Maximum value: 64MB (65,500 KBps maximum or 65,536 KBps rounded up to the nearest 100th);
- Minimum value: 100KB (can only be a multiple of 100 KBps);
- Default value: 4MB, if no scale parameters are set; otherwise it is calculated by the HERE platform;
- If the unit value is omitted, MB will be used by default;
Optional parameters for an index layer:
--ttl <time in dd, mm, yy>The time-to-live or expiry time for the data in the index layer. Possible values are7.days,15.days,1.month,2.months,3.months,4.months,5.months,6.months,1.year,1.5.years,2.years, andunlimited. The default TTL setting is7.days.--digest <md5|sha-1|sha-256>The digest algorithm to use to calculate the checksum for the layer. Possible values aremd5,sha-1,sha-256.
Optional parameters for an object store layer:
--ttl <time in dd, mm, yy>The time-to-live or expiry time for the data in the object store layer. Possible values are1.days,3.days,7.days,15.days,1.month,2.months,3.months,4.months,6.months,1.year,1.5.years,2.year,3.years,5.years, andunlimited. The default TTL setting isunlimited.
NoteTTL changes can take up to 24 hours to propagate, so any data in the process of expiration per previous TTL will expire before the new TTL changes are applied.
Optional parameters for a versioned layer:
--digest <md5|sha-1|sha-256>The digest algorithm to use to calculate the checksum for the layer. Possible values aremd5,sha-1,sha-256.
NoteThe
--digestparameter cannot be updated once set. If this parameter has been already specified forolp catalog layer addorolp catalog layer updatecommands, it cannot be changed.
Optional parameters for an interactive map layer:
--searchable-propertiesA list of strings containing the properties you want to index for faster searching. Searchable properties can be updated at any time. The maximum number of searchable properties is 8.
Example:
The following command updates the name of layer from old-layer to
newname and the tags to tag1 and tag2.
olp catalog layer update hrn:here:data::org:catalog1 old-layer --name newname \
--description "New Description" --tags tag1 tag2olp catalog layer update hrn:here:data::org:catalog1 old-layer --name newname ^
--description "New Description" --tags tag1 tag2Output:
Layer old-layer has been updatedcatalog layer delete
Deletes the specified stream, volatile, index, object store, interactive map or versioned layer in the catalog.
olp catalog layer delete <catalog HRN> <layer ID> [command options]
WarningDeleting a layer permanently and irrevocably removes both the data and the metadata associated with the layer.
Required parameters:
<catalog HRN>The HRN of the catalog.<layer ID>The ID of the layer to delete.
Optional parameters:
--credentials <path to credentials file>The name of a credentials file to use with the command. Credentials files are downloaded separately from the platform portal.--profile <profile name>The name of the credentials profile to use from theolpcli.inifile.--quietDisplays empty output with no additional information.--scope <project HRN>Specifies the project HRN to use as the scope in the request. The value specified with--scopeoverrides any value forhere.token.scopeprovided in the credentials file used for the command.
For more information on using credentials and profiles, see Credentials setup.
Note::
- Deleting a layer maybe break the dependent pipelines that consume data from that layer.
- Deleting and re-creating a versioned layer with the same layer ID modifies all versions where the original layer is not empty. This can impact batch processing pipelines that rely on the immutability of catalog versions. For example, in map compilation use cases, this may prevent you from recomputing derived maps based on an older fixed version of the catalog or from correctly processing the changed partitions.
- Before deleting and recreating a versioned layer, HERE recommends deleting all catalog versions where that layer is not empty to avoid modifying the content of those versions.
Example:
The following command deletes the some-layer layer from the
hrn:here:data::org:catalog1 catalog.
olp catalog layer delete hrn:here:data::org:catalog1 some-layerOutput:
Layer some-layer has been deletedcatalog layer inspect
Opens an external browser and navigates to the layer inspect page in the platform portal. The data can be inspected visually (HERE Tile layers only) and structurally, provided that the layer is properly configured. For more information, see the Data Inspector Library documentation.
The command fails if you cannot access the catalog or if the specified layer does not exist.
olp catalog layer inspect <catalog HRN> <layer ID> [command options]Optional parameters:
--credentials <path to credentials file>The name of a credentials file to use with the command. Credentials files are downloaded separately from the platform portal.--profile <profile name>The name of the credentials profile to use from theolpcli.inifile.--quietDisplays empty output with no additional information.--scope <project HRN>Specifies the project HRN to use as the scope in the request. The value specified with--scopeoverrides any value forhere.token.scopeprovided in the credentials file used for the command.
Note
- The
olp catalog layer inspectcommand checks whether the catalog is accessible to an app according to app permissions. However, for the catalog layer to be visible in the portal, your user too must have read permissions to the catalog.- Currently, interactive map layer is not supported in catalog layer inspector.
For more information on using credentials and profiles, see Credentials setup.
Example:
The command below opens an external browser and navigates to the layer-example-id layer inspect page
in the platform portal.
olp catalog layer inspect hrn:here:data::org:catalog-example-id layer-example-idOutput:
A browser page should be opened shortly. If the browser does not show up, manually navigate to https://platform.here.com/data/hrn:here:data::org:first-catalog-example-id
NOTE: Your platform user must have read access to hrn:here:data::org:catalog-example-idUpdated 22 days ago