Function type for providing a custom ID for a feature.
A custom implementation can be supplied to some codecs such as GeoJsonCodec, GMLCodec and KMLCodec.
The feature argument is an initially decoded feature that does not yet contain an ID.
It is provided only to allow the implementation to determine an appropriate ID based on the feature contents.
The feature should not be modified by this function.
If no ID is provided by the implementation, the codec falls back to its default ID generation mechanism.
This default mechanism guarantees that feature IDs are unique within a single model,
but it does not guarantee global uniqueness across multiple models or layers.
When features from different sources are combined, or when domain-specific identifiers are required,
a custom implementation can be used to generate IDs based on application-specific (business) logic.
Function type for providing a custom ID for a feature. A custom implementation can be supplied to some codecs such as GeoJsonCodec, GMLCodec and KMLCodec.
The
featureargument is an initially decoded feature that does not yet contain an ID. It is provided only to allow the implementation to determine an appropriate ID based on the feature contents. The feature should not be modified by this function.If no ID is provided by the implementation, the codec falls back to its default ID generation mechanism. This default mechanism guarantees that feature IDs are unique within a single model, but it does not guarantee global uniqueness across multiple models or layers.
When features from different sources are combined, or when domain-specific identifiers are required, a custom implementation can be used to generate IDs based on application-specific (business) logic.