Skip to contents

Compute a SHA-256 hash for the set of GeoJSON features. The hash is stable to feature order, whitespace, and JSON formatting changes.

Usage

get_tiger_mosquito_dataset_hash(x)

Arguments

x

A GeoJSON string or path to a GeoJSON file.

Value

A SHA-256 hash as a character vector of length 1.

Details

Individual feature SHA-256 hashes are computed (using 15-digit coordinate precision and radix-sorted properties) and then sorted in byte-wise order using sort(..., method = "radix"). A SHA-256 digest is then computed over the resulting canonical FeatureCollection structure.