Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nickysemenza/sf-streets-map

san francisco streets map
https://github.com/nickysemenza/sf-streets-map

openstreetmap osm postgis qgis

Last synced: 10 days ago
JSON representation

san francisco streets map

Awesome Lists containing this project

README

        

# SF area map

openstreetmap data visualized with QGIS

![sf area](sf-area.png)

```bash
# download metadata about county oF SF
# https://www.openstreetmap.org/relation/111968#map=15/37.7067/-122.4405&layers=HD
wget -O sf-county.osm https://www.openstreetmap.org/api/0.6/relation/111968/full

# download map data for all of northern california
# https://download.geofabrik.de/north-america/us/california/norcal.html
wget https://download.geofabrik.de/north-america/us/california/norcal-latest.osm.pbf
# extract just SF county
osmium extract -p sf-county.osm norcal-latest.osm.pbf --output sf-county.osm.pbf
# load into postgres with GIS with lua
osm2pgsql -d m -O flex -S streets.lua sf-county.osm.pbf --host localhost --username=m --password --keep-coastlines
# open QGIS project
```