Newer
Older
osmCoverage / src / osmCoverage_PoliceJson.sh
@hayashi hayashi on 21 Mar 2018 1 KB add: fuel test
  1. ### dummy
  2. pwd
  3.  
  4. # git http://surveyor.mydns.jp/gitbucket/git/yuu/osmCoverageBin.git
  5.  
  6. curl --user yuu:yuu8844 -O http://surveyor.mydns.jp/gitbucket/yuu/osmCoverage/raw/master/lib/hsqldb_2.2.9.jar
  7. curl --user yuu:yuu8844 -O http://surveyor.mydns.jp/gitbucket/yuu/osmCoverage/raw/master/lib/postgresql-9.4.1212.jar
  8. curl --user yuu:yuu8844 -O http://localhost:8080/job/hayashiLib/lastSuccessfulBuild/artifact/dist/hayashi.jar
  9. curl --user yuu:yuu8844 -O http://localhost:8080/job/osmCoverage/lastSuccessfulBuild/artifact/osmCoverage.jar
  10.  
  11.  
  12. ### export from PostGIS
  13. java -cp .:osmCoverage.jar:hayashi.jar:hsqldb_2.2.9.jar:postgresql-9.4.1212.jar osm.jp.coverage.police.ToGeoJSON
  14.  
  15. ls -l
  16. rm -rf vtile
  17. mkdir -m +w vtile
  18. mv ./GML_POLICE/police?.json vtile
  19. tar czvf policeJSON.tgz vtile/*.json
  20.  
  21. java -cp .:osmCoverage.jar:hayashi.jar:hsqldb_2.2.9.jar:postgresql-9.4.1212.jar osm.jp.coverage.police.ToGeoJSON -slim
  22.  
  23. # output file "coverage.police2.csv" and "coverage.police2.json"
  24. java -cp .:osmCoverage.jar:hayashi.jar:hsqldb_2.2.9.jar:postgresql-9.4.1212.jar osm.jp.coverage.police.Coverage2
  25.  
  26. # output file "coverage.police4.csv" and "coverage.police4.json"
  27. java -cp .:osmCoverage.jar:hayashi.jar:hsqldb_2.2.9.jar:postgresql-9.4.1212.jar osm.jp.coverage.police.Coverage4
  28.  
  29. # output file "coverage.police5.csv" and "coverage.police5.json"
  30. java -cp .:osmCoverage.jar:hayashi.jar:hsqldb_2.2.9.jar:postgresql-9.4.1212.jar osm.jp.coverage.police.Coverage5
  31.  
  32. ls -l
  33. mv coverage.police.json GML_POLICE
  34. mv coverage.police.csv GML_POLICE
  35. mv police?.json GML_POLICE
  36. mv police.json GML_POLICE
  37. tar czvf coverage.policeJSON.tgz GML_POLICE/*.json GML_POLICE/*.csv
  38.  
  39. git config --global user.name "hayashi"
  40. git config --global user.email hayashi.yuu@gmail.com
  41. git add *.json
  42. git add GML_POLICE/*.json
  43. git commit --allow-empty -m "coverage police update $(date +%Y-%m-%d_%H:%M)"
  44.  
  45. git remote -v
  46. #git push gitbucket HEAD:master
  47.