# # 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_POLICE_.sh # pwd cp share/pbfDate.json GML_POLICE/pbfDate.json 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 # make to PostGIS java -cp $CLASSPATH osm.jp.coverage.police.DbPolice java -cp $CLASSPATH osm.jp.coverage.police.DbExistPolice java -cp $CLASSPATH osm.jp.coverage.police.Police java -cp $CLASSPATH osm.jp.coverage.police.ToPostgis osmdb java -cp $CLASSPATH osm.jp.coverage.police.ToPostgis gisdb java -cp $CLASSPATH osm.jp.coverage.police.ToGeoJSON ls -l GML_POLICE/*.json rm -rf vtile mkdir -m +w vtile cp GML_POLICE/pbfDate.json vtile cp GML_POLICE/police*.json vtile tar czf policeJSON.tgz vtile/*.json mv policeJSON.tgz share ### export from PostGIS # output file "coverage.police2.csv" and "coverage.police2.json" java -cp $CLASSPATH osm.jp.coverage.police.CoveragePolice2 # output file "coverage.police4.csv" and "coverage.police4.json" java -cp $CLASSPATH osm.jp.coverage.police.CoveragePolice4 # output file "coverage.police5.csv" and "coverage.police5.json" java -cp $CLASSPATH osm.jp.coverage.police.CoveragePolice5 # output file "coverage.police5.csv" and "coverage.police6.json" java -cp $CLASSPATH osm.jp.coverage.police.CoveragePolice6 #java -cp .:osmCoverage.jar:hayashi.jar:hsqldb.jar:postgresql.jar osm.jp.coverage.police.ToGeoJSON -slim java -cp $CLASSPATH osm.jp.coverage.police.ToGeoJSON -slim java -cp $CLASSPATH osm.jp.coverage.police.ExportCSV mv t_*.csv GML_POLICE ls -l GML_POLICE/*.csv ls -l GML_POLICE/*.json tar czf coverage.policeJSON.tgz GML_POLICE/coverage.*.json GML_POLICE/*.csv GML_POLICE/pbfDate.json GML_POLICE/police*.json mv coverage.policeJSON.tgz share chmod -R 777 share