arcuser

When Maps Become Lifelines

Luiz Marchiori stepped outside his apartment building in Porto Alegre one Sunday morning in May 2024, squinting into the bright sunshine. There was no sign of what was to come—of the fierce floods that would soon strike his Brazilian state of Rio Grande do Sul.

“I walked through the center of the city, and it was calm. But the water was rising,” said Marchiori, a meteorologist-turned-founder and CEO of Codex—a company specializing in the GIS technology often used to prepare for and respond to this type of natural disaster.

Two people in white hard hats and rain coats with their back to the viewer look down a flooded street with multi-story buildings on both sides.
Engineers assess flooded streets in Porto Alegre after Brazil’s historic floods turned roads into rivers, forcing rapid infrastructure response.

Two hundred miles north, in the highlands, a year’s worth of rain had fallen in just three days. Water in every river and stream was racing toward Marchiori’s city—the state capital and regional home to 2.3 million people—carrying with it a force that would challenge everything he thought he knew about extreme weather.

Marchiori’s mind was racing to think of ways he could help and the data that would be needed. He knew dashboards could give responders real-time awareness of the locations and conditions of people and resources. He considered all the ways that maps could become lifelines for residents who would need to find shelter and food. People and goods would need to be routed around broken roads and bridges. He expected calls from Codex’s government customers to help them see clearly through the chaos.

What he didn’t know was how many of his small team of technologists would be displaced. When they lost everything, his office and their GIS skills would sustain and distract them from the anguish. They would work day and night, building real-time mapping apps to support rescue and response.

Scene Viewer screenshot displaying white 3D models of a city partially submerged in murky water.
Codex’s 3D flood simulation shows Porto Alegre’s city center submerged, helping officials predict which buildings would be affected as water levels rose.

The Perfect Storm

Statistically, such an event might occur once every 10,000 years. Even Marchiori, with his meteorological background, had never studied situations this extreme.

“There was never a scenario that could predict what happened,” he said. “Everyone who works with these scenarios needs to rethink everything.”

The geography of Rio Grande do Sul concentrated the power of the extreme rainfall. All the water from the highlands funneled toward the same place—the Porto Alegre region. Then, in a cruel twist of meteorology, south winds pushed brewing storm clouds against the highlands, bringing more rain as atmospheric pressure from the ongoing heat wave blocked the clouds’ natural path to the ocean. A floodwater volume of 1.5 billion cubic meters descended on the city, causing water levels to rise at unprecedented speed and displacing 600,000 people.

Within 48 hours, rushing waters overwhelmed the city’s Dutch-inspired pumping system that was designed to manage water in a region that sits below sea level. Pumps that normally push excess water into the ocean were knocked offline by inundated electrical systems. Water levels in downtown Porto Alegre reached nearly seven feet. The airport, 70 percent under water, would remain closed for six months.

Screenshot of a map of a Brazilian city, with red and green dots marking facilities like hospitals and schools. Data points about the status of these structures are labeled in Portuguese.
An interactive flood modeling tool highlights the infrastructure impacted by rising water levels in Porto Alegre. Red and green dots mark critical facilities like hospitals and schools, helping emergency responders prioritize rescues.

For Marchiori and Codex’s 70-person staff, the disaster was deeply personal. Four employees lost everything. Twelve had to evacuate their homes. Those who could make it to company headquarters brought mattresses and stayed for the duration of the event. The office never lost power or internet connection, so it became both an impromptu shelter for displaced staff and an emergency operations center to deal with the flooding event.

“When this kind of disaster happens in Brazil, it usually affects people with lower income, more vulnerable people,” Marchiori said. “But in this case, it happened to everyone. People with mansions, people with shacks—everyone was affected.”

When Infrastructure Fails

As the waters rose, traditional systems collapsed. The state’s entire data infrastructure, located in low-lying areas, completely flooded. Government officials found themselves unable to access maps, databases, or even basic information about water levels. Bank systems went down for three days. People couldn’t buy necessities because electronic payment systems had failed.

Codex received immediate aid through Esri’s Disaster Response Program. Codex offered its services to Brazilian state and local governments free of charge. “We put ourselves in a position to help,” Marchiori said. “We just said, let us do what we can.”

Government officials set up emergency headquarters on higher ground and gave Codex a workspace. The team worked around the clock, often delivering applications within 24 hours of receiving requests.

“They would tell us what they needed for tomorrow, and we would work overnight to deliver it the next day,” Marchiori said. “They needed it for planning, for rescuing people, for knowing where they had to go.”

Screenshot of a map with imagery displaying Porto Alegre’s airport under normal conditions as well as while it was impacted by flooding. A slider in the center of the image separates the two displays.
This pre- and postdisaster slider app allowed responders to make sense of the damage. This view shows Porto Alegre’s airport, with 70 percent of the runway submerged. Flood damage forced the closure of this vital link for six months, adding to the impact felt by residents and businesses in Brazil’s fourth-largest city.

17 Applications in 30 Days

The Codex team created a suite of decision-support tools to convey the full scope of the disaster. In 30 days, solution engineers made 17 different applications, each addressing critical needs that emergency planners in the city, the region, and the country had never anticipated.

The first application mapped road blockages in real time. Civil defense teams in the field sent coordinates via mobile phones. Within hours, Codex updated maps to show which routes remained passable for rescue operations. Red dots scattered across digital maps became the difference between dead ends and quick routes for emergency responders.

Another application identified vulnerable populations—people with mobility impairments, including residents who are blind and elderly people who needed assistance to evacuate. “They needed to know where the people who needed help were located to get them out of their homes,” Marchiori said.

Screenshot of a dashboard containing a central map of a region of Brazil with watersheds highlighted and hydroelectric facilities indicated by red, green and yellow dots. Around the map are various data points labeled in Portuguese.
The real-time dam monitoring dashboard tracks conditions and alerts for the 143 hydroelectric facilities across Rio Grande do Sul. The dashboard shows safety alerts in red where water levels caused structural integrity concerns during the May 2024 floods.

Drawing on Marchiori’s meteorological expertise, Codex developed a flood forecasting tool that showed what would happen as water levels continued to rise. The application allowed officials to model different scenarios—if water rose another half meter, which schools would be affected? Which shelters would be flooded?

“We could see that the water was still rising, and it was still raining in the highlands,” Marchiori said. “No one knew what the next morning would bring.”

Innovation Under Pressure

Browsing Esri’s Disaster Response Program solutions, the Codex team members adapted a flood simulation tool. Within hours, they had contacted an Esri solution engineer, obtained the code, and adapted it with local elevation data. Within two days, they had delivered a working application that could show exactly which areas would flood at different water levels.

“You can play with the water level,” Marchiori said. “If it’s going to rise another half meter the next day, you can see which areas are going to be affected. That was really helpful because it guided local authorities not to put a shelter in a place that was going to be flooded in the next two days.”

The team also created detailed 3D models of flooded areas, damage assessment dashboards, and economic impact calculators. State officials needed to quantify losses to receive federal disaster funding. The GIS applications showed how many businesses would lose 50 percent of revenue if water reached one meter or face total loss if it went higher.

Two people in plastic tarps and rainboots walk through thick mud. Around them, debris such as broken furniture is piled high.
Cleanup workers in protective suits navigate through mud-covered streets and mountains of destroyed belongings, beginning the massive recovery effort that will take years to complete.

Codex found another way to help beyond the frenetic building of apps. UNHCR, the UN Refugee Agency, needed space to coordinate aid for displaced immigrants who had been living in low-lying neighborhoods. Codex staff offered them a room in their headquarters. The office became an impromptu humanitarian hub, with UNHCR officials working alongside GIS technicians to coordinate relief efforts.

Empowering Recovery

When disaster response shifted to recovery efforts, Codex developed a platform that empowered private companies to adopt damaged infrastructure directly—schools, hospitals, parks—and offer funds and services to rebuild them.

One beverage company adopted the city’s largest damaged school, rebuilding it with new equipment, furniture, and technology. “Private companies managed all the spending,” Marchiori said. “It was much faster and more effective than traditional approaches.”

Screenshot of a dashboard containing a central map of a Brazilian city with businesses indicated by orange circles of varying sizes, each containing a number. Around the map are various data points labeled in Portuguese.
An economic impact dashboard showed 45,695 businesses affected by flooding across Porto Alegre neighborhoods. This detail was essential for calculating tax revenue losses and justifying federal disaster relief funding requests.

The platform became a model for bypassing bureaucratic delays while ensuring accountability through transparency and corporate responsibility.

Lessons in the Debris

Cleanup work revealed the disaster’s staggering scope. Mountains of debris—eclipsing the size of a football stadium—accumulated throughout the city. Every piece of wooden furniture touched by floodwater was ruined. The city estimated that three years would be needed to process all the debris through recycling programs.

Marchiori hopes to clear away outdated assumptions about meteorology and disaster preparedness. “Extreme weather is accelerating,” he said. “All the studies, especially of risk areas, must be revisited and expanded.”

Now, more than a year after the flood, progress has been made on some infrastructure improvements, including raising electrical panels for the pump stations. A new meteorological monitoring system is planned but is still in the bidding process. There is hope that this event will change how the country prepares for
future events.

“Brazil has been a reactive country,” Marchiori said. “We only do things after the disaster strikes.”

A huge number of plastic bottles and other debris flows down a river or stream between banks with thick vegetation.
When the floodwaters receded, they left behind thousands of plastic bottles and tons of debris choking waterways, creating cleanup challenges that would persist long after the emergency response ended.

The View from Above

Today, Codex continues negotiations with other Brazilian states, knowing that similar disasters are inevitable. Parts of the team’s flood response toolkit developed for the Rio Grande do Sul floods have been used in smaller emergencies, but the comprehensive system awaits the next major crisis.

“It’s probably going to happen again,” Marchiori predicted with the matter-of-fact certainty of a meteorologist. “And at that point, they’re going to call us for an emergency contract, and everything will need to be ready for the next day.”

Codex’s response to the Rio Grande do Sul floods demonstrates how much people need clarity when traditional systems fail. When infrastructure collapsed and institutions stumbled, GIS provided a clear vision of the crisis to guide effective response. When extraordinary events defied all planning, GIS proved its worth—not just as a technology, but as a means to strengthen human resilience. The small team of technologists at Codex showed how maps can become lifelines.

The Rio Grande do Sul floods of May 2024 may have been a once-in-10,000-year event for Brazil, but on our changing planet, the solutions developed will likely be needed somewhere else tomorrow.

About the author

Ryan Lanclos is Esri’s Director of National Government and Public Safety Solutions and a subject matter expert on geographic information system (GIS) technology for emergency management. He helps organizations deploy GIS to improve preparedness and leads the global Disaster Response Program, which provides GIS support during disasters. A former appointed member of the Federal Emergency Management Agency (FEMA) National Advisory Council in the US, Lanclos currently serves on the International Advisory Board of Integrated Research on Disaster Risk (IRDR) for Japan and the XPRIZE Wildfire Advisory Board. He has also served as Missouri’s first geographic information officer (GIO), GIS advisor for the Governor’s Homeland Security Advisory Council, and Director of State and Local Government at the National Alliance for Public Safety GIS (NAPSG) Foundation. Lanclos holds a Master of Science in Cartography and GIS from the University of Wisconsin–Madison, and Bachelor of Arts in Geology from Centenary College of Louisiana.