mirror of
https://github.com/zyphlar/sonoma-import.git
synced 2024-03-08 15:07:48 +00:00
Switch to norcal-latest from overpass
This commit is contained in:
parent
bef81198a8
commit
a599776919
31
README.md
31
README.md
|
@ -30,21 +30,10 @@ Here are sample screenshots of Sonoma County, Santa Rosa, the City of Sonoma, an
|
|||
`original_data` from:
|
||||
- https://gis-sonomacounty.hub.arcgis.com/datasets/2202c1cd6708441f987ca5552f2d9659
|
||||
- https://gis-sonomacounty.hub.arcgis.com/datasets/0f5982c3582d4de0b811e68d7f0bff8f
|
||||
- https://overpass-turbo.eu/
|
||||
- http://download.geofabrik.de/north-america/us/california/norcal-latest.osm.pbf
|
||||
|
||||
Overpass query (you may save as OSM file, shapefile, or postgres sql dump depending on your overpass client)
|
||||
osm2pgsql -d openstreetmap -c --prefix son --slim --extra-attributes --hstore --latlong norcal-latest.osm.pbf -U openstreetmap -W -H localhost -P 5432
|
||||
|
||||
```
|
||||
area[name="Sonoma County"];
|
||||
(
|
||||
way[building](area);
|
||||
relation[building](area);
|
||||
);
|
||||
(._;>;);
|
||||
out;
|
||||
```
|
||||
|
||||
If using an Overpass -> QGIS -> Postgres dump, save it as `osmquery_buildings_pgdump.sql` for later.
|
||||
Otherwise osm2pgsql should create tables like `son_polygon` for later.
|
||||
|
||||
## Prerequisites
|
||||
|
@ -128,6 +117,22 @@ osm2pgsql -d openstreetmap -c --prefix son --slim --extra-attributes --hstore --
|
|||
osm2pgsql -d openstreetmap -c --prefix son --slim --extra-attributes --hstore --latlong norcal-latest-20200103.osm.pbf -U openstreetmap -W -H localhost -P 5432
|
||||
```
|
||||
|
||||
- https://overpass-turbo.eu/
|
||||
|
||||
Overpass query (you may save as OSM file, shapefile, or postgres sql dump depending on your overpass client)
|
||||
|
||||
```
|
||||
area[name="Sonoma County"];
|
||||
(
|
||||
way[building](area);
|
||||
relation[building](area);
|
||||
);
|
||||
(._;>;);
|
||||
out;
|
||||
```
|
||||
|
||||
If using an Overpass -> QGIS -> Postgres dump, save it as `osmquery_buildings_pgdump.sql` for later.
|
||||
|
||||
```
|
||||
sonoma_county_building_outlines
|
||||
"conflated" = FALSE
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user