Newer
Older
osmCoverage / src / osmCoverage_PoliceJson.sh
yuu on 30 Mar 2019 1 KB 2019-03-30
### dummy
pwd

# git http://surveyor.mydns.jp/gitbucket/git/yuu/osmCoverageBin.git

curl --user yuu:yuu8844 -O http://surveyor.mydns.jp/gitbucket/yuu/osmCoverage/raw/master/lib/hsqldb_2.2.9.jar
curl --user yuu:yuu8844 -O http://surveyor.mydns.jp/gitbucket/yuu/osmCoverage/raw/master/lib/postgresql-9.4.1212.jar
curl --user yuu:yuu8844 -O http://localhost:8080/job/hayashiLib/lastSuccessfulBuild/artifact/dist/hayashi.jar
curl --user yuu:yuu8844 -O http://localhost:8080/job/osmCoverage/lastSuccessfulBuild/artifact/osmCoverage.jar


### export from PostGIS
java -cp .:osmCoverage.jar:hayashi.jar:hsqldb_2.2.9.jar:postgresql-9.4.1212.jar osm.jp.coverage.police.ToGeoJSON

ls -l
rm -rf vtile
mkdir -m +w vtile
mv ./GML_POLICE/police?.json vtile
tar czvf policeJSON.tgz vtile/*.json

java -cp .:osmCoverage.jar:hayashi.jar:hsqldb_2.2.9.jar:postgresql-9.4.1212.jar osm.jp.coverage.police.ToGeoJSON -slim

# output file "coverage.police2.csv" and "coverage.police2.json"
java -cp .:osmCoverage.jar:hayashi.jar:hsqldb_2.2.9.jar:postgresql-9.4.1212.jar osm.jp.coverage.police.Coverage2

# output file "coverage.police4.csv" and "coverage.police4.json"
java -cp .:osmCoverage.jar:hayashi.jar:hsqldb_2.2.9.jar:postgresql-9.4.1212.jar osm.jp.coverage.police.Coverage4

# output file "coverage.police5.csv" and "coverage.police5.json"
java -cp .:osmCoverage.jar:hayashi.jar:hsqldb_2.2.9.jar:postgresql-9.4.1212.jar osm.jp.coverage.police.Coverage5

ls -l
mv coverage.police.json GML_POLICE
mv coverage.police.csv GML_POLICE
mv police?.json GML_POLICE
mv police.json GML_POLICE
tar czvf coverage.policeJSON.tgz GML_POLICE/*.json GML_POLICE/*.csv

git config --global user.name "hayashi"
git config --global user.email hayashi.yuu@gmail.com
git add *.json
git add GML_POLICE/*.json
git commit --allow-empty -m "coverage police update $(date +%Y-%m-%d_%H:%M)"

git remote -v
#git push gitbucket HEAD:master