# # HOST ~/docker/osm_get # # cd ~/docker/osm_get # docker run --rm -it -v $(pwd)/share:/root/osmCoverage/share haya4/osmget bash # pwd cp share/pbfDate.json GML_FUEL/pbfDate.json curl -o share/GML_FUEL/P07-15.removed.json.txt https://raw.githubusercontent.com/yuuhayashi/coverageWeb/master/GML_FUEL/P07-15.removed.json.txt cp share/P07-15.removed.json.txt GML_FUEL/P07-15.removed.json.txt cp share/gisdb.properties gisdb.properties cp share/osmdb.properties osmdb.properties cp share/database.properties database.properties mkdir database CLASSPATH=.:osmCoverage.jar:hayashi.jar:hsqldb.jar:postgresql.jar:javax.json.jar export CLASSPATH java -cp $CLASSPATH osm.jp.coverage.fuel.DbFuel -INIT java -cp $CLASSPATH osm.jp.coverage.fuel.DbFuel -IMPORT GML_FUEL java -cp $CLASSPATH osm.jp.coverage.fuel.DbFuel -REMOVED GML_FUEL/P07-15.removed.json.txt java -cp $CLASSPATH osm.jp.coverage.fuel.DbExistFuel -INIT java -cp $CLASSPATH osm.jp.coverage.fuel.DbExistFuel -IMPORT java -cp $CLASSPATH osm.jp.coverage.fuel.Fuel java -cp $CLASSPATH osm.jp.coverage.fuel.DbFuel -OUTPUT GML_FUEL/P07-15.removed.txt mv GML_FUEL/P07-15.removed.txt GML_FUEL/P07-15.removed.json.txt java -cp $CLASSPATH osm.jp.coverage.fuel.ToPostgis osmdb java -cp $CLASSPATH osm.jp.coverage.fuel.ToPostgis gisdb ## create 't_fuel.carto.csv' java osm.jp.coverage.fuel.ToCartoCSV ## export from PostGIS to 'fuel.json fuel0.json fuel1.json fuel2.json' ## create 'fuelJSON.tgz' from 'fuel.json fuel0.json fuel1.json fuel2.json' java osm.jp.coverage.fuel.ToGeoJSON rm -rf vtile mkdir -m +w vtile cp GML_FUEL/pbfDate.json vtile mv fuel?.json vtile tar czf share/fuelJSON.tgz vtile/*.json ## create 'coverage.fuelJSON.tgz' java -cp $CLASSPATH osm.jp.coverage.fuel.ToGeoJSON -slim java -cp $CLASSPATH osm.jp.coverage.fuel.CoverageFuel coverage.fuel.csv java -cp $CLASSPATH osm.jp.coverage.fuel.CoverageFuel coverage.fuel.json java -cp $CLASSPATH osm.jp.coverage.fuel.ExportCSV mv t_*.csv GML_FUEL ls -l mv fuel?.json GML_FUEL mv fuel.json GML_FUEL tar czf share/coverage.fuelJSON.tgz GML_FUEL/coverage.*.json GML_FUEL/*.csv GML_FUEL/pbfDate.json GML_FUEL/*.json.txt chmod -R 777 share