Content hash of one model's vector features (what reaches the tile)
Source:R/asset_store.R
native_vector_hash.RdNormalises 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; seenative_vector_hashes())- attrs
attribute columns that reach the tile;
ds_keydefaults to themdl_keyprefix