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