/** * Adapter for GSI (Geological Survey Ireland) groundwater + historic flood * mapping. Openly licensed; the OPW's fluvial/coastal model extents are * CC-BY-NC-ND and deliberately NOT queried — see docs/DATA_SOURCES.md §5. * * Uses the MapServer `identify` operation, not `query`: verified 2026-07-10 * that this service withholds geometry from /query responses in every format * (returnGeometry=true is silently ignored), while /identify returns full * polygon rings and hits all sublayers in a single request. WGS84 in/out * (sr=4326) confirmed working. The search "radius" is expressed via * tolerance=50px against a 100×100px imageDisplay whose mapExtent spans * ±radius around the point, so it is approximate (documented in caveats). * * Sublayer ids pinned 2026-07-10: * 1 = Groundwater Flooding High Probability * 2 = Groundwater Flooding Medium Probability * 3 = Groundwater Flooding Low Probability * 6 = Winter 2015/2016 Surface Water Flooding * 7 = Maximum Historic Groundwater Flooding */ export declare const GSI_FLOOD_LAYERS: readonly [{ readonly id: 1; readonly key: "groundwater_flood_probability_high"; readonly name: "Groundwater Flooding High Probability"; }, { readonly id: 2; readonly key: "groundwater_flood_probability_medium"; readonly name: "Groundwater Flooding Medium Probability"; }, { readonly id: 3; readonly key: "groundwater_flood_probability_low"; readonly name: "Groundwater Flooding Low Probability"; }, { readonly id: 7; readonly key: "historic_groundwater_flooding_max"; readonly name: "Maximum Historic Groundwater Flooding"; }, { readonly id: 6; readonly key: "surface_water_flooding_winter_2015_16"; readonly name: "Winter 2015/2016 Surface Water Flooding"; }]; export interface FloodLayerCheck { layer: (typeof GSI_FLOOD_LAYERS)[number]["key"]; layer_name: string; checked: true; features_within_radius: number; /** True when the query point lies inside a mapped extent. */ at_point: boolean; /** Metres from the point to the nearest mapped extent within the radius; null when none found. */ nearest_distance_m: number | null; } /** Query all five GSI flood layers around a point in one identify request. Cached 30d. */ export declare function queryGsiFlood(lat: number, lng: number, radiusM: number, fetchImpl?: typeof fetch): Promise; export declare const GSI_FLOOD_META: { readonly source: "Groundwater & Historic Flood Maps, Geological Survey Ireland (GSI)"; readonly source_url: "https://gsi.geodata.gov.ie/server/rest/services/Groundwater/IE_GSI_Groundwater_Historic_and_Probability_Flood_Maps_20K_IE26_ITM/MapServer"; readonly licence: "CC-BY 4.0 (Geological Survey Ireland)"; readonly data_vintage: "GSI groundwater flood probability mapping (1:20,000) and historic groundwater/surface-water flood observations incl. winter 2015/2016"; }; /** floodinfo.ie viewer for the OPW layers we cannot legally query. */ export declare const FLOODINFO_URL = "https://www.floodinfo.ie/map/floodmaps/";