diff --git a/README.md b/README.md index ee56951..228a7f2 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,7 @@ Here are sample screenshots of Sonoma County, Santa Rosa, the City of Sonoma, an - https://gis-sonomacounty.hub.arcgis.com/datasets/2202c1cd6708441f987ca5552f2d9659 - https://gis-sonomacounty.hub.arcgis.com/datasets/0f5982c3582d4de0b811e68d7f0bff8f - http://download.geofabrik.de/north-america/us/california/norcal-latest.osm.pbf +- VTATaz: https://drive.google.com/file/d/0B098fXDVjQOhVHBFS0kwcDNGRlU/view Script: ``` @@ -60,26 +61,26 @@ Debian (shp2pgsql is included in postgis) - For export: sudo apt-get install -y gdal-bin python-lxml - ogr2osm https://github.com/pnorman/ogr2osm + - `cd ~` + - `git clone --recursive https://github.com/pnorman/ogr2osm` - Maybe also/instead: python3-gdal - Do NOT install the osgeo package from pip, it's empty and will cause ogr import errors. ## Running -- First, prepare Postgres for an OSM schema that'll be used for the output data, by running this SQL in your desired database: https://github.com/openstreetmap/osmosis/blob/master/package/script/pgsnapshot_schema_0.6.sql -- Run the following SQL as a superuser (postgres) inside the `openstreetmap` database to enable the PostGIS and hstore extensions: `CREATE EXTENSION postgis; CREATE EXTENSION hstore;` -- Unzip the `original_data` and open a shell in that folder. -- Here we are assuming that the county data uses a WGS84 aka EPSG:4326 geographical projection, which was true as of last check and is also what OSM uses. +- We are assuming that the county data uses a WGS84 aka EPSG:4326 geographical projection, which was true as of last check and is also what OSM uses. - Run from your shell: `shp2pgsql -s 4326 -I Parcels__Public_.shp | psql -d openstreetmap -U openstreetmap -W` - `shp2pgsql -s 4326 -I Sonoma_County_Building_Outlines.shp | psql -d openstreetmap -U openstreetmap -W` - `shp2pgsql -s 4326 -I osm-buildings-01-03.shp | psql -d openstreetmap -U openstreetmap -W` - `osm2pgsql -d openstreetmap -c --prefix son --slim --extra-attributes --hstore --latlong norcal-latest.osm.pbf -U openstreetmap -W -H localhost -P 5432` -Now all the data is in Postgres. For processing and conflation, read through and execute `conflation.sql` as per your comfort level. osm2pgsql should create tables like `son_polygon` for later. +Now all the data is in Postgres. For processing and conflation, read through and execute `conflation.sql` as per your comfort level. + ## Exporting and uploading -TODO, Osmium +TODO, `trial.sh` ## Import and validation diff --git a/original_data/VTATaz/VTATaz.dbf b/original_data/VTATaz/VTATaz.dbf new file mode 100755 index 0000000..0c885bd Binary files /dev/null and b/original_data/VTATaz/VTATaz.dbf differ diff --git a/original_data/VTATaz/VTATaz.prj b/original_data/VTATaz/VTATaz.prj new file mode 100755 index 0000000..a585236 --- /dev/null +++ b/original_data/VTATaz/VTATaz.prj @@ -0,0 +1 @@ +PROJCS["NAD_1983_StatePlane_California_III_FIPS_0403_Feet",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["False_Easting",6561666.666666666],PARAMETER["False_Northing",1640416.666666667],PARAMETER["Central_Meridian",-120.5],PARAMETER["Standard_Parallel_1",37.06666666666667],PARAMETER["Standard_Parallel_2",38.43333333333333],PARAMETER["Latitude_Of_Origin",36.5],UNIT["Foot_US",0.3048006096012192]] \ No newline at end of file diff --git a/original_data/VTATaz/VTATaz.sbn b/original_data/VTATaz/VTATaz.sbn new file mode 100755 index 0000000..a393a80 Binary files /dev/null and b/original_data/VTATaz/VTATaz.sbn differ diff --git a/original_data/VTATaz/VTATaz.sbx b/original_data/VTATaz/VTATaz.sbx new file mode 100755 index 0000000..f6073d6 Binary files /dev/null and b/original_data/VTATaz/VTATaz.sbx differ diff --git a/original_data/VTATaz/VTATaz.shp b/original_data/VTATaz/VTATaz.shp new file mode 100755 index 0000000..e8461ae Binary files /dev/null and b/original_data/VTATaz/VTATaz.shp differ diff --git a/original_data/VTATaz/VTATaz.shp.xml b/original_data/VTATaz/VTATaz.shp.xml new file mode 100755 index 0000000..249ad85 --- /dev/null +++ b/original_data/VTATaz/VTATaz.shp.xml @@ -0,0 +1,2 @@ + +20150317105025001.0TRUECalculateField VTATaz Area [Area] VB # diff --git a/original_data/VTATaz/VTATaz.shx b/original_data/VTATaz/VTATaz.shx new file mode 100755 index 0000000..e5a1661 Binary files /dev/null and b/original_data/VTATaz/VTATaz.shx differ diff --git a/original_data/VTATaz/VTATaz.vpr b/original_data/VTATaz/VTATaz.vpr new file mode 100755 index 0000000..ef34325 --- /dev/null +++ b/original_data/VTATaz/VTATaz.vpr @@ -0,0 +1,42 @@ +[TPPLUS] +PROJECT=NETWORK + +[VTATaz.shp] +Visible=1 +LayerType=5 +LayerSubType=0 +DefaultCentroidColor=8421504,0,0 +DefaultNodeColor=65280,0,0 +DefaultCentroidLinkColor=8421504,0,1 +DefaultLinkColor=65280,0,1 +BaseX=0 +BaseY=0 +ScaleX=0 +ScaleY=1 +LayerMinScale=0 +LayerMaxScale=0 +LinkPostMinScale=0 +LinkPostMaxScale=0 +NodePostMinScale=0 +NodePostMaxScale=0 +BoundingBox=5696745.29818872,1381585.77339379,6646530.42427279,2507172.37079333 +ExternalDBF= +ExternalLinkage= +ActiveNodeSelectGroup=0 +NodeSelectGroup1= +NodeSelect1= +ActiveNodeColorGroup=0 +NodeColorGroup1= +NodeColorPaletteIndex1=0 +NodeDrawOffset1=0 +ActiveLinkSelectGroup=0 +LinkSelectGroup1= +LinkSelect1= +ActiveLinkColorGroup=0 +LinkColorGroup1= +LinkColorPaletteIndex1=0 +LinkDrawOffset1=0 +ActiveSelectGroup=0 +SelectGroup1= +Select1= + diff --git a/original_data/VTATaz/VTAtaz.mxd b/original_data/VTATaz/VTAtaz.mxd new file mode 100755 index 0000000..3d1f051 Binary files /dev/null and b/original_data/VTATaz/VTAtaz.mxd differ