Skip to content

Comments

feat: add item hashing#960

Draft
gadomski wants to merge 7 commits intomainfrom
hash
Draft

feat: add item hashing#960
gadomski wants to merge 7 commits intomainfrom
hash

Conversation

@gadomski
Copy link
Member

@gadomski gadomski commented Feb 18, 2026

Description

Leaning pretty heavily on Claude, this adds a new Hasher structure that computes a sortable Z-order hash for a STAC Item. It also adds a (pretty complex) CLI command to prefix a hex hash onto STAC item ids.

To try it out:

$ cargo run -- hash scripts/fixtures/1000-sentinel-2-items.parquet | jq '.features.[].id' | (head; tail)
"69febadfa5bbcdbf-S2B_MSIL2A_20240828T174909_R141_T13TEF_20240828T214916"
"69feb3d97e9b6d24-S2B_MSIL2A_20240828T174909_R141_T13TEE_20240828T214916"
"69feba5fec9f5f37-S2B_MSIL2A_20240828T174909_R141_T13TDF_20240828T214916"
"69feb35b7ebb4d74-S2B_MSIL2A_20240828T174909_R141_T13TDE_20240828T214916"
"69feba4d3fdf5be6-S2B_MSIL2A_20240828T174909_R141_T13TCF_20240828T214916"
"69feb3493dff4f64-S2B_MSIL2A_20240828T174909_R141_T13TCE_20240828T214916"
"69fe9edd3f9afbe6-S2B_MSIL2A_20240828T174909_R141_T13TBF_20240828T214916"
"69fe97d93497fb2c-S2B_MSIL2A_20240828T174909_R141_T13TBE_20240828T214916"
"69fcfbfd3cd659ee-S2B_MSIL2A_20240828T174909_R141_T13SED_20240828T214916"
"69fcfaeb6ef64d27-S2B_MSIL2A_20240828T174909_R141_T13SEC_20240828T214916"
"20dc719720acaca6-S2A_MSIL2A_20240711T173911_R098_T13SEB_20240712T025100"
"20dc39b7b2a8bce5-S2A_MSIL2A_20240711T173911_R098_T13SEA_20240712T024752"
"20dc79a570ad3cec-S2A_MSIL2A_20240711T173911_R098_T13SDD_20240712T025103"
"20dc78a123ad3825-S2A_MSIL2A_20240711T173911_R098_T13SDC_20240712T024630"
"20dc7117698988a5-S2A_MSIL2A_20240711T173911_R098_T13SDB_20240712T025100"
"20dc3937fb891a75-S2A_MSIL2A_20240711T173911_R098_T13SDA_20240712T024831"
"20dc3927fb851cb6-S2A_MSIL2A_20240711T173911_R098_T13SCA_20240712T025137"
"20da8e07a1228035-S2A_MSIL2A_20240710T180921_R084_T12TXL_20240711T032121"
"20da87017322b4fe-S2A_MSIL2A_20240710T180921_R084_T12TXK_20240711T031353"
"20da28968129849b-S2B_MSIL2A_20240709T174909_R141_T13TEF_20240709T235809"

@gadomski gadomski requested a review from bitner February 18, 2026 21:05
@gadomski gadomski self-assigned this Feb 18, 2026
@gadomski
Copy link
Member Author

gadomski commented Feb 19, 2026

I'm thinking the hash stuff should be its own library. I'm going to keep the PR open for now, but I expect to close it and re-open to use that library as a dep.

🤔 or maybe I keep it in this repo, and just make it its own crate?

@gadomski gadomski marked this pull request as draft February 19, 2026 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant