Newer
Older
osmCoverage / src / coverage_PoliceGet.sh
@hayashi hayashi on 3 May 2018 1 KB Tile code=2,4,5
# dummy
cd /home/yuu/workspace/osmCoverageBin
pwd

git config --global user.name "hayashi"
git config --global user.email hayashi.yuu@gmail.com
git fetch
git pull gitbucket master

#rm -rf GML_POSTOFFICE
#mkdir GML_POSTOFFICE
#cd GML_POSTOFFICE
#curl --user yuu:yuu8844 -O http://surveyor.mydns.jp/coverage/GML_POLICE/P18-12-??.xml

#cd ..
pwd
curl --user yuu:yuu8844 -O http://localhost:8080/job/osmCoverage/lastSuccessfulBuild/artifact/osmCoverage.jar
cp ../hayashi/dist/hayashi.jar .


# make to PostGIS
java -cp .:osmCoverage.jar:hayashi.jar:hsqldb_2.2.9.jar:postgresql-9.4.1212.jar osm.jp.coverage.police.DbPolice
java -cp .:osmCoverage.jar:hayashi.jar:hsqldb_2.2.9.jar:postgresql-9.4.1212.jar osm.jp.coverage.police.DbExist
java -cp .:osmCoverage.jar:hayashi.jar:hsqldb_2.2.9.jar:postgresql-9.4.1212.jar osm.jp.coverage.police.Police
java -cp .:osmCoverage.jar:hayashi.jar:hsqldb_2.2.9.jar:postgresql-9.4.1212.jar osm.jp.coverage.police.ToPostgis



#
#
# osmCoverage_PoliceJson
#

## export from PostGIS to JSON
### export from PostGIS
java -cp .:osmCoverage.jar:hayashi.jar:hsqldb_2.2.9.jar:postgresql-9.4.1212.jar osm.jp.coverage.police.Coverage2
java -cp .:osmCoverage.jar:hayashi.jar:hsqldb_2.2.9.jar:postgresql-9.4.1212.jar osm.jp.coverage.police.Coverage4
java -cp .:osmCoverage.jar:hayashi.jar:hsqldb_2.2.9.jar:postgresql-9.4.1212.jar osm.jp.coverage.police.Coverage5
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
cp ./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

tar czvf coverage.postofficeJSON.tgz ./GML_POLICE/*.json ./GML_POLICE/*.csv

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 master


#
#
# osmCoverage_PostofficeTile
#