Newer
Older
osmCoverage / src / coverage_POSTOFFICE.sh
@hayashi hayashi on 11 Feb 2018 1 KB without "GML_*'
# 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_POSTOFFICE/P30-13.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.postoffice.DbPostoffice
java -cp .:osmCoverage.jar:hayashi.jar:hsqldb_2.2.9.jar:postgresql-9.4.1212.jar osm.jp.coverage.postoffice.DbExist
java -cp .:osmCoverage.jar:hayashi.jar:hsqldb_2.2.9.jar:postgresql-9.4.1212.jar osm.jp.coverage.postoffice.Postoffice
java -cp .:osmCoverage.jar:hayashi.jar:hsqldb_2.2.9.jar:postgresql-9.4.1212.jar osm.jp.coverage.postoffice.ToPostgis



#
#
# osmCoverage_PostofficeJson
#

## 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.postoffice.CoverageAll
java -cp .:osmCoverage.jar:hayashi.jar:hsqldb_2.2.9.jar:postgresql-9.4.1212.jar osm.jp.coverage.postoffice.ToGeoJSON

ls -l
rm -rf vtile
mkdir -m +w vtile
cp ./GML_POSTOFFICE/postoffice?.json vtile
tar czvf postofficeJSON.tgz vtile/*.json

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

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

git add GML_POSTOFFICE/*.json
git commit --allow-empty -m "coverage postoffice update $(date +%Y-%m-%d_%H:%M)"
git remote -v
git push gitbucket master


#
#
# osmCoverage_PostofficeTile
#