pub fn geo_lexical_key(term: &EncodedTerm) -> Option<StrHash>Expand description
Deterministic strings-map key for a native geo term’s rendered lexical form.
Late materialization resolves a geo literal the same way it resolves hashed strings: the engine renders the lexical form (ingest-CRS WKT / WKB through the geo plugin) and stores it under this key; every consumer (API serializer, owned-term decode) recomputes the key from the term.
The key is the hash of the FULL encoded term bytes for every geo variant.
It must not be the blob_id: the blob id is the content hash of the
canonical CRS84 EWKB (which deliberately carries no SRID), so every term
that renders the same geometry — different ingest CrsId, or
wktLiteral vs wkbLiteral — shares one blob while requiring a
different lexical form. Distinct terms must never share a cache slot.