# # HOST ~/docker/osm_get # # cd ~/docker/osm_get # docker run --rm -it -v $(pwd)/share:/root/osmCoverage/share haya4/osmget bash # docker run --rm -t -v $(pwd)/share:/root/osmCoverage/share haya4/osmget bash coverage_BUSSTOP_.sh # pwd cp share/pbfDate.json GML_BUSSTOP/pbfDate.json curl -o share/GML_BUSSTOP/P11-10.removed.json.txt https://raw.githubusercontent.com/yuuhayashi/coverageWeb/master/GML_BUSSTOP/P11-10.removed.json.txt cp share/P11-10.removed.json.txt GML_BUSSTOP/P11-10.removed.json.txt cp share/gisdb.properties gisdb.properties cp share/osmdb.properties osmdb.properties cp share/database.properties database.properties # make to PostGIS mkdir database CLASSPATH=.:osmCoverage.jar:hayashi.jar:hsqldb.jar:postgresql.jar:javax.json.jar export CLASSPATH java -cp $CLASSPATH osm.jp.coverage.busstop.DbBusstop -INIT java -cp $CLASSPATH osm.jp.coverage.busstop.DbBusstop -IMPORT GML_BUSSTOP java -cp $CLASSPATH osm.jp.coverage.busstop.DbBusstop -REMOVED GML_BUSSTOP/P11-10.removed.json.txt java -cp $CLASSPATH osm.jp.coverage.busstop.DbExistBusstop -INIT java -cp $CLASSPATH osm.jp.coverage.busstop.DbExistBusstop -IMPORT java -cp $CLASSPATH osm.jp.coverage.busstop.Busstop java -cp $CLASSPATH osm.jp.coverage.busstop.DbBusstop -OUTPUT P11-10.removed.txt mv P11-10.removed.txt GML_BUSSTOP/P11-10.removed.json.txt java -cp $CLASSPATH osm.jp.coverage.busstop.ToPostgis osmdb java -cp $CLASSPATH osm.jp.coverage.busstop.ToPostgis gisdb ## create 't_busstop.carto.csv' java -cp $CLASSPATH osm.jp.coverage.busstop.ToCartoCSV java -cp $CLASSPATH 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 $CLASSPATH osm.jp.coverage.busstop.ToGeoJSON -slim java -cp $CLASSPATH osm.jp.coverage.busstop.CoverageBusstop GML_BUSSTOP/coverage.busstop.csv java -cp $CLASSPATH osm.jp.coverage.busstop.CoverageBusstop GML_BUSSTOP/coverage.busstop.json java -cp $CLASSPATH 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