whosonfirst-data / whosonfirst-data-venue-us

Who's On First venue data for the US
Other
0 stars 2 forks source link

SimpleGeo imports #1

Closed thisisaaronland closed 8 years ago

thisisaaronland commented 8 years ago

(12932290 total)

thisisaaronland commented 8 years ago

Notes to self. None of this has been automated or scripted yet. Maybe it's time. Maybe not...

Before:

mv whosonfirst-data-venue-us-oregon whosonfirst-data-venue-us-or
cd whosonfirst-data-venue-us-or/
curl -s -o Makefile https://raw.githubusercontent.com/whosonfirst/whosonfirst-data-utils/master/make/Makefile
make concordances

Re-indexing the csvdb server should happen automagically but I have doubts it is working correctly and haven't had time to investigate so:

./bin/wof-csvdb-server -columns 'wof:id,sg:id,gp:id,gn:id,fips:code' -cors /usr/local/data/whosonfirst-data*/meta/wof-concordances-latest.csv
time to index /usr/local/data/whosonfirst-data/meta/wof-concordances-latest.csv: 6.003949431s
time to index /usr/local/data/whosonfirst-data-venue-dk/meta/wof-concordances-latest.csv: 46.508326ms
time to index /usr/local/data/whosonfirst-data-venue-us-ca/meta/wof-concordances-latest.csv: 19.13601369s
time to index /usr/local/data/whosonfirst-data-venue-us-fl/meta/wof-concordances-latest.csv: 11.700793904s
time to index /usr/local/data/whosonfirst-data-venue-us-ma/meta/wof-concordances-latest.csv: 2.778008834s
time to index /usr/local/data/whosonfirst-data-venue-us-mi/meta/wof-concordances-latest.csv: 6.844124369s
time to index /usr/local/data/whosonfirst-data-venue-us-nc/meta/wof-concordances-latest.csv: 8.324600249s
time to index /usr/local/data/whosonfirst-data-venue-us-nj/meta/wof-concordances-latest.csv: 11.73808044s
time to index /usr/local/data/whosonfirst-data-venue-us-ny/meta/wof-concordances-latest.csv: 7.261153099s
time to index /usr/local/data/whosonfirst-data-venue-us-oh/meta/wof-concordances-latest.csv: 5.490265592s
time to index /usr/local/data/whosonfirst-data-venue-us-or/meta/wof-concordances-latest.csv: 964.026139ms
time to index /usr/local/data/whosonfirst-data-venue-us-pa/meta/wof-concordances-latest.csv: 15.287061795s
time to index /usr/local/data/whosonfirst-data-venue-us-tx/meta/wof-concordances-latest.csv: 13.443723475s
time to index /usr/local/data/whosonfirst-data-venue-us-wa/meta/wof-concordances-latest.csv: 1.290512ms
wof-csvdb-server running at localhost:8228

During:

python ./import.py -a /usr/local/data/whosonfirst-data/data -d /usr/local/data/whosonfirst-data-venue-us-or/data slice-us-or.geojson

After:

cd /usr/local/data/whosonfirst-data-venue-us-or
make concordances
make sync-s3
make sync-es host=HOST