nowfound

Life & fun · December 11, 2015

Using PostGIS and CartoDB to identify schools at risk from earthquakes

A tutorial on using geospatial analysis, shapefiles and datasets from the U.S. Geological Survey, Census, and Department of Education to visualize the impact of Oklahoma

Using PostGIS and CartoDB to identify schools at risk from earthquakes launched on December 11, 2015 with 14 votes and more than 75% of that year's launches. The site was still online in September 2026, 10 years on.

In plain words

This tutorial demonstrates how to use PostGIS, SQL, and CartoDB to analyze geospatial data from the U.S. Geological Survey, Census, and Department of Education. It combines earthquake intensity measurements, school locations, and socioeconomic indicators to identify Oklahoma schools at risk from seismic activity. The interactive map color-codes schools by student poverty levels and census tracts by median household income, helping visualize the intersection of natural hazard exposure and community vulnerability.

written from the facts on this page · September 2026

From the sources

This CartoDB map shows the location of Oklahoma schools that are within areas in which USGS instruments measured an Modified Mercalli Intensity of at least 4.5 from the most powerful of Oklahoma's recent surge of earthquakes. The school locations are color-coded relative to the percentage of their students eligible for free or reduced lunch (a proxy for estimating the poverty level among students ). The U.S. Census tracts are color-coded relative to the median household income, as measured by the American Community Survey, Table B19013 . This visualization is the result of an exploratory exercise and so it comes with a lot of caveats that are explained below. However, it's meant to be an…from 2015.padjo.org

Does a similar job

all alternatives →
  • Lookup the school district associated with a street address in the US2024 · github.com · ▲58

    I wrote a tool in Python that finds the school district associated with any given street address in the United States. Here’s how it works: An address corresponds to a single point on the map. The U.S Census Bureau has a geocoder that converts an address to latitude and longitude coordinates. School district boundaries can be represented as polygons on the map. The National Center for Education Statistics (NECS) has geographic data on school district boundaries. Once we determine which polygon the point resides in, we know the school district.

  • IE
  • Flatmap – a new tool to make vector tiles from OpenStreetMap data fast2021 · github.com · ▲158

    Flexible tool to build planet-scale vector tilesets from OpenStreetMap data fast - onthegomap/planetiler

  • GeographyHelp2024 · geography.help · ▲136

    Comprehensive GeoGuessr Resources with maps, quizzes & more

  • Free database of geographic place names and geospatial data2015 · github.com · ▲108

    Free database of geographic place names and corresponding geospatial data - delight-im/FreeGeoDB

  • IM
    I made a little tool to practice country positions on the world map2023 · learn-worldmap.netlify.app · ▲45

    Hi HN, I built a little tool to help me get better at remembering country locations on the map: https://learn-worldmap.netlify.app/ It's made from plain HTML/CSS/JS, and not intended to make any money or anything. Just thought that maybe someone else may enjoy it. Also of course happy about any feedback! Cheerz.

More life & fun this month

the category →

Source: Show HN post ↗

Launched alongside, December 2015

the whole month →