A Hands-On Guide for Working with Large-Scale Spatial Data. Learn more.
Live Session: Bring your hardest physical world problem and put Waldo to work.
Authors
A flood risk map shows where flooding is likely, how deep the water could get, and how often a flood of that size is expected. In the United States the regulatory flood risk map is the flood map of the Federal Emergency Management Agency (FEMA). It marks the Special Flood Hazard Area: land with a 1% chance of flooding in any year. Modeled flood maps add water depth for floods of several sizes, from the 10-year to the 500-year flood. Satellite maps record where water reached during a real event.
This article's claim is that no single flood map is enough. Each map covers some flood sources and misses others. A flood risk question needs two or more layers matched to the buildings or parcels at risk. The walkthrough tests it over west Houston with a river flood model, terrain, buildings and streams.
A 100-year flood has a 1% chance of being equaled or exceeded in any given year. Its return period, the average time between floods of that size, is 100 years. A 500-year flood has a 0.2% chance. FEMA calls the 1% annual chance flood the base flood, and the land it covers the Special Flood Hazard Area (SFHA).
Over a 30-year mortgage, a 1% annual chance gives a 26% chance of at least one flood, the figure FEMA's FloodSmart program uses for high-risk zones.
Hazard and risk differ. Hazard is the water: extent, depth, and probability. Risk multiplies hazard by exposure (the buildings, people, and roads in the way) and vulnerability (how much damage a given depth causes). Loss models convert depth to damage with depth-damage curves, which give the share of a building's value lost at each water depth. One example comes from the European Commission's Joint Research Centre (JRC): the JRC global flood depth-damage functions by Huizinga, de Moel, and Szewczyk (2017) for 214 countries. A product sold as a "flood risk map" is often a hazard map. The user overlays the assets.
A map built for one flood source can miss the others.
Large floods combine sources. Sebastian and colleagues reconstructed Harvey's rain, river, and coastal flood damage in Houston (2021) with one model.
A modeled flood map is built in three steps: hydrology, hydraulics, and post-processing. Hydrology estimates how much water arrives for each return period, from river gauge records, rainfall statistics, or a hydrological model. Hydraulics moves that water across a digital elevation model (DEM) and computes the depth and extent in each cell. Post-processing removes permanent water and adds flood defenses where they are known. It then converts depth to zones or classes.
Paul Bates and Ad De Roo introduced LISFLOOD-FP, a simple raster-based model for flood inundation (2000). It moves water between DEM cells with the simplest physics that still captures a moving flood. That design made continental and global flood maps possible.
Terrain indices and observation are two shortcuts beside hydraulic models:
Each step adds uncertainty: the DEM's height error, the estimated river flow for each return period, and unknown channel depths and defenses.
The National Flood Hazard Layer (NFHL) combines the Flood Insurance Rate Maps in force and their changes into one database. It covers over 90% of the US population.
FEMA's glossary defines the shaded and unshaded X zones. In communities that join the National Flood Insurance Program (NFIP), lenders require flood insurance on federally backed mortgages for buildings inside A and V zones. For them, the zone line adds an insurance cost.
A 2017 audit by the Department of Homeland Security (DHS) Inspector General found that only 42% of FEMA's flood map miles were new, valid, or updated as of December 2016. FEMA's maps model river and coastal flooding. Rain-driven flooding appears only where shallow ponding or sheet flow is drawn as Zone AO or AH. FEMA's FloodSmart program reports that almost one-third of NFIP flood claims from 2014 to 2024 came from outside high-risk areas.
First Street. The nonprofit's national model maps river, rain, and coastal flooding at 30 m. Bates and colleagues documented it (2021). Against local models and FEMA maps, it scored a Critical Success Index of 0.69 to 0.82. That index is the overlap of two flood extents divided by their union. Its 2020 release identified 14.6 million US properties at substantial flood risk, against 8.7 million identified by FEMA.
Fathom. Wing and colleagues describe the Bristol company's 30 m global flood inundation model for any climate scenario (2024), covering fluvial, pluvial, and coastal perils across ten return periods.
JRC and GloFAS. The European Commission's Joint Research Centre publishes global river flood hazard maps at about 90 m for seven return periods. They are built from the open LISFLOOD hydrological model and LISFLOOD-FP hydraulics. The same Copernicus Emergency Management Service runs the Global Flood Awareness System (GloFAS), which Alfieri and colleagues introduced in 2013. GloFAS forecasts river flow up to 30 days ahead; the hazard maps give the depth of a return-period flood.
SAR flood extent. The RAPID NRT flood maps (NRT: near real time) on AWS hold 10 m flood extents from the Sentinel-1 radar satellites over the contiguous US from 2016 onward. Yang and colleagues describe the archive (2021).
HAND. The National Oceanic and Atmospheric Administration (NOAA) Office of Water Prediction runs HAND-based inundation mapping with the National Water Model. It starts from a continental HAND raster first computed by Liu and colleagues in a framework for continental-scale flood mapping (2018).
Search the address on FEMA's Flood Map Service Center to see its flood map panel and zone. This works in Florida, Kansas, or any state. Many counties and cities, Wichita among them, publish floodplain viewers built on the same zones. For depth, rainfall flooding, and future climate, First Street's Flood Factor scores each property. Local floodplain administrators confirm base flood elevations and pending map revisions.
WherobotsDB joins flood depth grids to buildings in SQL. Raster and vector run in one engine; most stacks pick one. The example covers a 24 km by 18 km box of west and southwest Houston. It runs from Katy and the Barker Reservoir south to Sugar Land and the Brazos River floodplain, the area Harvey flooded in 2017.
The two queries read these sources.
overture_maps_foundation.buildings_building
copernicus_dem.glo_30m
overture_maps_foundation.base_water
The first query counts every Overture building by the water depth the JRC maps give at its location for the 10-, 100-, and 500-year floods. A Cloud Optimized GeoTIFF (COG) is a raster file a reader can fetch in parts. RS_FromPath registers each file as an out-db raster, read in place from cloud storage. RS_Clip reads only the parts inside the box. RS_Value returns the depth under each building centroid.
-- Overture buildings in west Houston by JRC modeled river flood depth (10-, 100- and 500-year) WITH box AS ( SELECT ST_PolygonFromEnvelope(-95.80, 29.60, -95.55, 29.76) AS g -- 24 km x 18 km ), hazard AS ( -- Clip each JRC depth COG to the box once; out-db reads fetch only the tiles inside it SELECT RS_Clip(RS_FromPath('s3://us-west-2.opendata.source.coop/nlebovits/jrc-glofas/depth-rp10/ID38_N30_W100/ID38_N30_W100_RP10_depth.tif'), 1, k.g, false, -9999, true) AS rp10, RS_Clip(RS_FromPath('s3://us-west-2.opendata.source.coop/nlebovits/jrc-glofas/depth-rp100/ID38_N30_W100/ID38_N30_W100_RP100_depth.tif'), 1, k.g, false, -9999, true) AS rp100, RS_Clip(RS_FromPath('s3://us-west-2.opendata.source.coop/nlebovits/jrc-glofas/depth-rp500/ID38_N30_W100/ID38_N30_W100_RP500_depth.tif'), 1, k.g, false, -9999, true) AS rp500 FROM box k ), bld AS ( SELECT id, ST_Centroid(geometry) AS c FROM wherobots_open_data.overture_maps_foundation.buildings_building WHERE bbox.xmin >= -95.80 AND bbox.xmax <= -95.55 AND bbox.ymin >= 29.60 AND bbox.ymax <= 29.76 ), depth AS ( -- Modeled water depth (m) in the 90 m cell under each building; NoData means dry SELECT /*+ BROADCAST(h) */ b.id, COALESCE(NULLIF(RS_Value(h.rp10, b.c), -9999), 0) AS d10, COALESCE(NULLIF(RS_Value(h.rp100, b.c), -9999), 0) AS d100, COALESCE(NULLIF(RS_Value(h.rp500, b.c), -9999), 0) AS d500 FROM bld b CROSS JOIN hazard h ), classed AS ( SELECT *, CASE WHEN d100 = 0 THEN '0: dry at 100-year' WHEN d100 < 0.5 THEN '1: under 0.5 m' WHEN d100 < 1 THEN '2: 0.5 to 1 m' WHEN d100 < 2 THEN '3: 1 to 2 m' ELSE '4: 2 m or more' END AS depth_class_100yr FROM depth ) -- One row per 100-year depth class, plus a total row (depth_class_100yr is NULL) SELECT depth_class_100yr, COUNT(*) AS buildings, SUM(CASE WHEN d10 > 0 THEN 1 ELSE 0 END) AS wet_at_10yr, SUM(CASE WHEN d500 > 0 THEN 1 ELSE 0 END) AS wet_at_500yr, ROUND(AVG(d100), 2) AS mean_depth_100yr_m FROM classed GROUP BY ROLLUP (depth_class_100yr) ORDER BY depth_class_100yr
The query returned 173,169 buildings in about seven and a half minutes:
36,254 buildings, 20.9% of those in the box, sit in a cell the JRC model floods at the 100-year return period. 17,119 of them sit under 1 m or more of water. 28,509 buildings are already wet at the 10-year flood, and the 500-year flood adds 4,673 beyond the 100-year count. The JRC maps exclude flood defences. They show where the Brazos and the larger bayous would spread with no levees, and the high 10-year count reflects that assumption. A 90 m cell also covers several houses. A building on a rise and its neighbor in a low swale get one value. The model covers river flooding only.
A 90 m JRC cell is wider than most of Houston's drains and ditches. A terrain index built from mapped channels and GLO-30, the Copernicus 30 m elevation model, can include them. The second query computes a simplified HAND for each building. It takes the GLO-30 elevation at the building and subtracts the GLO-30 elevation at the nearest point on a mapped channel. Full HAND follows the flow path downhill to the stream each cell drains to. This version takes the nearest channel point instead. An ST_KNN join, a nearest-neighbor search, finds it by distance along the Earth's surface.
-- A simplified HAND per building: height above the nearest mapped channel, from Copernicus GLO-30 WITH box AS ( SELECT ST_PolygonFromEnvelope(-95.80, 29.60, -95.55, 29.76) AS g, ST_PolygonFromEnvelope(-95.83, 29.57, -95.52, 29.79) AS g_wide -- room for channels outside the box ), dem AS ( -- The GLO-30 table is tiled: 25 tiles touch the wider box, each clipped to it SELECT /*+ BROADCAST(k) */ RS_Clip(d.rast, 1, k.g_wide, true, -9999, true) AS r FROM wherobots_open_data.copernicus_dem.glo_30m d JOIN box k ON ST_Intersects(d.footprint, k.g_wide) ), jrc AS ( SELECT RS_Clip(RS_FromPath('s3://us-west-2.opendata.source.coop/nlebovits/jrc-glofas/depth-rp100/ID38_N30_W100/ID38_N30_W100_RP100_depth.tif'), 1, k.g, false, -9999, true) AS rp100 FROM box k ), channel_pts AS ( -- Overture river, stream and canal lines (the canal subtype holds classes canal, ditch and drain), -- cut to the box and sampled every ~30 m SELECT /*+ BROADCAST(k), REPARTITION(32) */ explode(ST_DumpPoints(ST_Segmentize(ST_Intersection(w.geometry, k.g_wide), 0.0003))) AS p FROM wherobots_open_data.overture_maps_foundation.base_water w CROSS JOIN box k WHERE w.bbox.xmin < -95.52 AND w.bbox.xmax > -95.83 AND w.bbox.ymin < 29.79 AND w.bbox.ymax > 29.57 AND w.subtype IN ('river', 'stream', 'canal') AND ST_GeometryType(w.geometry) = 'ST_LineString' ), channel_z AS ( -- Channel elevation: the GLO-30 cell under each sample point (raster-vector join to its tile) SELECT /*+ BROADCAST(d) */ c.p, RS_Value(d.r, c.p) AS z_ch FROM channel_pts c JOIN dem d ON RS_Intersects(d.r, c.p) ), bld AS ( SELECT /*+ REPARTITION(32) */ id, ST_Centroid(geometry) AS c FROM wherobots_open_data.overture_maps_foundation.buildings_building WHERE bbox.xmin >= -95.80 AND bbox.xmax <= -95.55 AND bbox.ymin >= 29.60 AND bbox.ymax <= 29.76 ), bld_z AS ( -- GLO-30 surface height under each building centroid; MAX keeps one value where two tiles meet SELECT /*+ BROADCAST(d) */ b.id, first(b.c) AS c, MAX(RS_Value(d.r, b.c)) AS z_b FROM bld b JOIN dem d ON RS_Intersects(d.r, b.c) GROUP BY b.id ), nearest AS ( -- The nearest channel sample point to each building, ranked by great-circle distance in meters SELECT b.id, b.c, b.z_b - z.z_ch AS hand_m, ST_DistanceSphere(b.c, z.p) AS dist_m FROM bld_z b JOIN channel_z z ON ST_KNN(b.c, z.p, 1, true) ), classed AS ( SELECT /*+ BROADCAST(j) */ n.*, COALESCE(NULLIF(RS_Value(j.rp100, n.c), -9999), 0) > 0 AS in_jrc_100yr, CASE WHEN hand_m IS NULL THEN '0: no elevation' WHEN hand_m < 1 THEN '1: under 1 m' WHEN hand_m < 2 THEN '2: 1 to 2 m' WHEN hand_m < 3 THEN '3: 2 to 3 m' WHEN hand_m < 5 THEN '4: 3 to 5 m' ELSE '5: 5 m or more' END AS hand_class FROM nearest n CROSS JOIN jrc j ) -- One row per HAND class, plus a total row (hand_class is NULL) SELECT hand_class, COUNT(*) AS buildings, SUM(CASE WHEN in_jrc_100yr THEN 1 ELSE 0 END) AS in_jrc_100yr, ROUND(percentile(dist_m, 0.5)) AS median_dist_to_channel_m FROM classed GROUP BY ROLLUP (hand_class) ORDER BY hand_class
It ran in under eight minutes and matched all 173,169 buildings to a channel, at a median distance of 325 m:
Low ground near a channel is more than twice as likely to sit in the river model's 100-year floodplain. 35.1% of buildings under 1 m of HAND sit there, against 15.2% at 3 to 5 m. The relation breaks above 5 m, where 22.1% are back in a JRC flood cell. The inputs explain the break. GLO-30 is a surface model, so roofs and trees raise the building elevation. West Houston's relief, the change in height across the land, is a few metres, close to the DEM's own error. The nearest channel by distance is often a small drainage ditch. The flooding river, the Brazos, lies farther away. True flow-path HAND removes that mismatch.
Both queries joined COG rasters and Havasu tables in SQL in one WherobotsDB engine. The same pattern works for a county or a state: each raster tile is clipped once and joined to the buildings inside it. A post on the out-of-database raster architecture explains why each query reads only the pixels inside the box. RS_ZonalStats returns the maximum depth inside each footprint or parcel in place of the value at its centroid. FEMA's NFHL zone polygons join the same way. The ArcGIS Feature Service reader loads them from FEMA's web service. ST_Intersects matches them to buildings or parcel data. The California coastal flood risk notebook runs that zone join end to end. It sums the assessed property value at risk in each city. The data stays in the customer's cloud storage or Iceberg catalog. An AI agent can connect through the Wherobots MCP Server. MCP, the Model Context Protocol, is a standard way for AI agents to call outside tools. The agent can write either query from a request such as "count buildings in the 100-year floodplain in west Houston".
LISFLOOD-FP became the hydraulic model behind the JRC, Fathom, and First Street maps above. Bates, Horritt, and Fewtrell's simple inertial formulation of the shallow water equations (2010) made it fast enough for large areas. Neal, Schumann, and Bates added a subgrid channel model (2012). It lets rivers narrower than a grid cell carry water.
Global maps followed. Ward and colleagues assessed flood risk at the global scale (2013) with the GLOFRIS framework. Their results changed sharply with the assumed flood protection standard, the size of flood that defenses hold back. Sampson and colleagues built a high-resolution global flood hazard model (2015) at about 90 m. Dottori and colleagues set out the framework for global flood hazard mapping (2016) behind the JRC maps used above. In the US, Wing and colleagues validated a 30 m US flood hazard model (2017) against FEMA and U.S. Geological Survey (USGS) maps. That model is the basis for the 40.8 million estimate. Bates reviewed the field in Flood inundation prediction (Annual Review of Fluid Mechanics, 2022).
Camilo Rennó and colleagues introduced HAND in a terrain descriptor for mapping Amazon rainforest environments (2008). Nobre and colleagues developed it into a hydrologically relevant new terrain model (2011) and then proposed HAND contours to predict flood extent (2016). Zheng and colleagues showed how to estimate river channel geometry and rating curves from HAND (2018). A rating curve converts a forecast river flow into a stage, the water level. The stage sets a HAND threshold, and land below it is mapped as flooded. This is the method behind NOAA's National Water Model inundation maps.
Mason and colleagues showed flood detection in urban areas using TerraSAR-X (2010). In cities, buildings hide the water between them from the radar. Shen and colleagues built RAPID for near-real-time non-obstructed flood inundation mapping (2019), the algorithm behind the RAPID archive. For Harvey, Scotti and colleagues combined SAR, hydraulic modelling, and social media (2020) to recover flooded streets that radar alone missed.
A national flood risk analysis joins hundreds of millions of buildings to depth grids. It runs for several return periods and climate scenarios, and again whenever a map changes. Jia Yu, Jinxuan Wu, and Mohamed Sarwat introduced distributed spatial processing on Apache Spark with GeoSpark (ACM SIGSPATIAL 2015). Yu, Zhang, and Sarwat described its partitioning, indexing, and spatial join design in GeoInformatica (2019). That design is now Apache Sedona and WherobotsDB. It splits the buildings into partitions by location. Each partition receives only the raster tiles it touches, so the west Houston query above runs unchanged on a state.
The west Houston queries and the studies above show that each flood risk map covers some flood sources, at one resolution, under its own assumptions.
Join flood depth grids and zones to every building in your portfolio with a Wherobots free trial at cloud.wherobots.com.
A flood risk map shows where flooding is likely, how deep the water could get, and how often. In the United States the regulatory version is the FEMA flood map. It marks the Special Flood Hazard Area, the zone with a 1% annual chance of flooding. Modeled depth grids add water depth for floods such as the 100-year and 500-year flood. Satellite maps record where water reached during a real flood.
A 100-year flood zone is the area with a 1 percent chance of flooding in any given year. Over a 30-year mortgage, the chance of at least one such flood is about 26 percent. FEMA maps it as the Special Flood Hazard Area: Zones A, AE, AO, AH, V, and VE. The 500-year zone has a 0.2 percent chance.
FEMA publishes the National Flood Hazard Layer free as downloads, a map service, and an ArcGIS REST API, a web interface that software can query. The European Commission’s Joint Research Centre (JRC) global river flood hazard maps are free 90 m depth grids for seven flood sizes, from the 10-year to the 500-year flood. The RAPID archive on AWS holds Sentinel-1 satellite flood extents for the contiguous US since 2016. First Street, Fathom, and others license commercial flood data. It gives river, rainfall, and coastal flood depth, with climate scenarios.
A flood zone is a mapped area that shows whether a location is inside a hazard area for a given flood size, such as the 100-year flood. A flood depth grid is a raster, a grid of cells, that gives the water depth in each cell for that flood size. Insurance requirements follow the zone. Loss estimates and engineering design use depth grids.
FEMA flood risk data is the regulatory standard but has known gaps. A 2017 DHS Inspector General audit found only 42 percent of FEMA’s flood map miles were new, valid, or updated. FEMA maps show rainfall (pluvial) flooding only as shallow Zones AO and AH. They reflect historical climate only. First Street’s 2020 release counted 14.6 million properties at substantial flood risk, against 8.7 million identified by FEMA.
Search your address on FEMA’s Flood Map Service Center (msc.fema.gov) to see the effective flood map and zone. Zones beginning with A or V are high risk; X is moderate or minimal. For water depth, rainfall flooding, and future climate, tools such as First Street’s Flood Factor add a modeled score for each property. Your local floodplain administrator can confirm base flood elevations and pending map changes.
Your flood zone is on your community’s current FEMA Flood Insurance Rate Map. The FEMA Flood Map Service Center shows it for any US address. Many cities and counties publish the same zones in their own map viewers. Users of geographic information system (GIS) software can download the National Flood Hazard Layer for a county or state.
In Florida, as in every state, enter the address in FEMA’s Flood Map Service Center to read its flood zone. Coastal addresses can fall in V or VE zones as well as A and AE. County property appraiser and floodplain management sites in Florida also show the zone. An elevation certificate records the building’s height and the base flood elevation, the height the 100-year flood is expected to reach.
In Wichita, the areas most prone to flooding are the land inside FEMA’s Special Flood Hazard Area along the city’s rivers and creeks. The City of Wichita publishes this land as its Flood Hazard Area dataset. Checking an address there, or on FEMA’s Flood Map Service Center, shows whether it falls in a high-risk A zone or a moderate- or low-risk X zone.
There are four main types of flooding. Fluvial flooding is rivers overtopping their banks, and pluvial flooding is intense rain pooling away from rivers. Coastal flooding comes from storm surge, tides, and waves. Groundwater flooding is the water table rising to the surface or into basements. FEMA maps cover river and coastal flooding; rainfall and groundwater flooding appear mostly in modeled datasets and local studies.
HAND, height above nearest drainage, is the vertical distance from a point on the ground down to the stream it drains to. It is computed from a digital elevation model, a raster of land heights. Rennó and colleagues introduced it in 2008. Low HAND values mark land a rising river reaches first. That makes HAND a fast way to map flood-prone ground at national scale. NOAA uses it with the National Water Model for inundation forecasts.
What is a Kelvin Wave? Speed, El Niño and 2026 Data
A Kelvin wave is a long, low ocean wave that carries warm water east along the equator in an El Niño. In the 30 days to 10 November 2026, the sea at San Diego stood a record 41.2 cm above NOAA's tide prediction.
What Is an ETL Pipeline? Steps, Examples and Spatial ETL
An ETL (extract, transform, load) pipeline moves data from sources into storage. Learn the steps with examples. Then see a spatial mistake that passed the usual checks: rounding coordinates emptied 27% of Denver's building outlines.
What is an MCP Server? Spatial Context for AI Agents
An MCP server gives AI agents tools to call. With no tools, Claude Code gave no count of San Francisco's buildings. Via Wherobots MCP, it counted 162,538.
share this article
Awesome that you’d like to share our articles. Where would you like to share it to: