/** * Geometry ingestion. * * Accepts GeoJSON (FeatureCollection / Feature / bare geometry / array of * features) and TopoJSON, and normalises everything to a flat feature list with * a resolved join key per feature. * * Two deliberate opinions live here: * * 1. **Winding is repaired by default,** to the d3-geo spherical convention * (exterior rings clockwise), which is the opposite of RFC 7946. A reversed * ring is interpreted as "the whole sphere except this polygon", so the map * fills solid and every feature reports identical world bounds. It is silent, * it breaks labels and camera framing, and repairing costs one signed-area * pass per ring. See `rewindPolygon` for the full explanation. * 2. **The join key is resolved explicitly and reported.** Auto-detection is a * convenience, never a guess we hide: the resolved field name is returned so * diagnostics can tell the developer what was actually used. * * @module geo/GeoData */ import type { GeoInput, NormalizedFeature, NormalizedGeo } from '../types'; /** * Normalize any supported geometry input. * */ export declare function normalizeGeo(input: GeoInput | null | undefined, options?: { keyField?: string; nameField?: string; object?: string; repairWinding?: boolean; }): NormalizedGeo; /** Build a lookup of key to feature. */ export declare function indexByKey(features: NormalizedFeature[]): Map; //# sourceMappingURL=GeoData.d.ts.map