Skip to contents

Normalises exactly as publish_pmtiles() does before tiling - EPSG:4326 (assumed when missing), XY only, empty geometries dropped - then hashes the sorted, hex-encoded WKB of every feature together with the attributes carried into the tiles (mdl_key, ds_key). Feature order, row names and extra source columns cannot move it; any change to a geometry or to a tile attribute does. Fold the result with asset_enc("native_pmtiles") for the store key.

Usage

native_vector_hash(x, attrs = c("mdl_key", "ds_key"))

Arguments

x

an sf holding ONE model's features (call per mdl_key; see native_vector_hashes())

attrs

attribute columns that reach the tile; ds_key defaults to the mdl_key prefix

Value

a 16-hex content hash