Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nickysemenza/sf-streets-map
san francisco streets map
https://github.com/nickysemenza/sf-streets-map
openstreetmap osm postgis qgis
Last synced: 16 days ago
JSON representation
san francisco streets map
- Host: GitHub
- URL: https://github.com/nickysemenza/sf-streets-map
- Owner: nickysemenza
- Created: 2023-03-03T18:35:32.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-03-03T18:35:51.000Z (over 1 year ago)
- Last Synced: 2024-01-27T11:30:50.222Z (10 months ago)
- Topics: openstreetmap, osm, postgis, qgis
- Language: Lua
- Homepage:
- Size: 15.7 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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
```