Newer
Older
osmCoverage / src / coverage_BUSSTOP.sh
#
# HOST ~/docker/osm_get
# 
# cd ~/docker/osm_get
# docker run --rm -it -v $(pwd)/share:/root/osmCoverageBin/share haya4/osmget bash
# docker run --rm -t  -v $(pwd)/share:/root/osmCoverageBin/share haya4/osmget bash coverage_BUSSTOP_.sh
#
pwd
cp share/pbfDate.json GML_BUSSTOP/pbfDate.json
curl -o GML_BUSSTOP/P11-10.removed.json.txt https://raw.githubusercontent.com/yuuhayashi/coverageWeb/master/GML_BUSSTOP/P11-10.removed.json.txt

# make to PostGIS
mkdir database
java -cp .:osmCoverage.jar:hayashi.jar:hsqldb.jar:postgresql.jar osm.jp.coverage.busstop.DbBusstop -INIT
java -cp .:osmCoverage.jar:hayashi.jar:hsqldb.jar:postgresql.jar osm.jp.coverage.busstop.DbBusstop -IMPORT GML_BUSSTOP
java -cp .:osmCoverage.jar:hayashi.jar:hsqldb.jar:postgresql.jar osm.jp.coverage.busstop.DbBusstop -REMOVED GML_BUSSTOP/P11-10.removed.json.txt

java -cp .:osmCoverage.jar:hayashi.jar:hsqldb.jar:postgresql.jar:javax.json.jar osm.jp.coverage.busstop.DbExistBusstop -INIT
java -cp .:osmCoverage.jar:hayashi.jar:hsqldb.jar:postgresql.jar:javax.json.jar osm.jp.coverage.busstop.DbExistBusstop -IMPORT

java -cp .:osmCoverage.jar:hayashi.jar:hsqldb.jar:postgresql.jar:javax.json.jar osm.jp.coverage.busstop.Busstop
java -cp .:osmCoverage.jar:hayashi.jar:hsqldb.jar:postgresql.jar osm.jp.coverage.busstop.DbBusstop -OUTPUT GML_BUSSTOP/P11-10.removed.txt
mv GML_BUSSTOP/P11-10.removed.txt GML_BUSSTOP/P11-10.removed.json.txt

java -cp .:osmCoverage.jar:hayashi.jar:hsqldb.jar:postgresql.jar osm.jp.coverage.busstop.ToPostgis osmdb
java -cp .:osmCoverage.jar:hayashi.jar:hsqldb.jar:postgresql.jar osm.jp.coverage.busstop.ToPostgis gisdb


## create 't_busstop.carto.csv'
java -cp .:osmCoverage.jar:hayashi.jar:hsqldb.jar:postgresql.jar:javax.json.jar osm.jp.coverage.busstop.ToCartoCSV
java -cp .:osmCoverage.jar:hayashi.jar:hsqldb.jar:postgresql.jar:javax.json.jar osm.jp.coverage.busstop.ToGeoJSON

ls -l
rm -rf vtile
mkdir -m +w vtile
cp GML_BUSSTOP/pbfDate.json vtile
mv GML_BUSSTOP/busstop?.json vtile
tar czf share/busstopJSON.tgz vtile/*.json

java -cp .:osmCoverage.jar:hayashi.jar:hsqldb.jar:postgresql.jar:javax.json.jar osm.jp.coverage.busstop.ToGeoJSON -slim
java -cp .:osmCoverage.jar:hayashi.jar:hsqldb.jar:postgresql.jar:javax.json.jar osm.jp.coverage.busstop.Coverage GML_BUSSTOP/coverage.busstop.csv
java -cp .:osmCoverage.jar:hayashi.jar:hsqldb.jar:postgresql.jar:javax.json.jar osm.jp.coverage.busstop.Coverage GML_BUSSTOP/coverage.busstop.json
java -cp .:osmCoverage.jar:hayashi.jar:hsqldb.jar:postgresql.jar:javax.json.jar osm.jp.coverage.busstop.ExportCSV
mv t_*.csv GML_BUSSTOP

tar czf share/coverage.busstopJSON.tgz GML_BUSSTOP/coverage.*.json GML_BUSSTOP/*.csv GML_BUSSTOP/pbfDate.json GML_BUSSTOP/*.txt

chmod -R 777 share