Skip to content

1ec5/openstreetmap-urban-areas

Repository files navigation

Urban areas in OpenStreetMap

A demonstration of OpenStreetMap place classification reform in the United States based on census urban areas.

Reproduction

  1. Download Natural Earth I with Shaded Relief, Water, and Drainages (large size), Admin 0 – Countries, and Admin 1 – States, Provinces from the Natural Earth project.
  2. Download a shapefile of 2020 urban areas from the Census Bureau.
  3. Query Sophox for urban areas and their namesakes.
  4. Run sed -i 's/https:\/\/www\.openstreetmap\.org\/node\///g' ua-namesake.tsv.
  5. Query the Wikidata Query Service for urban areas classified as major and minor by population.
  6. In QGIS, join the urban area shapefile to the classified urban areas.
  7. Query QLever for place points in the United States (“osm-planet”).
  8. Run sed '1 s/?//g' osm-planet_YCt2Be.tsv | csvjson --quoting 1 --lat 'latitude' --lon 'longitude' --no-bbox > osm-planet.geojson.
  9. Reproject osm-planet to ESRI:102039 Contiguous Albers Equal Area Conic USGS.
  10. Buffer the reprojected points by 1 kilometer.
  11. Join the buffered circles to the classified urban area shapes.
  12. Join the OSM place points by location within the buffered, classified circles.
  13. Join the classified place points to the urban area namesakes.

About

Demonstration of OpenStreetMap place classification reform in the United States based on census urban areas

Resources

License

Stars

Watchers

Forks