Newer
Older
osmCoverage / src / osmCoverage_PoliceJson
@hayashi hayashi on 24 Feb 2018 1 KB police
  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. ### export from PostGIS
  12. java -cp .:osmCoverage.jar:hayashi.jar:hsqldb_2.2.9.jar:postgresql-9.4.1212.jar osm.jp.coverage.police.ToGeoJSON
  13.  
  14. ls -l
  15. rm -rf vtile
  16. mkdir -m +w vtile
  17. mv ./GML_POLICE/police?.json vtile
  18. tar czvf policeJSON.tgz vtile/*.json
  19.  
  20. java -cp .:osmCoverage.jar:hayashi.jar:hsqldb_2.2.9.jar:postgresql-9.4.1212.jar osm.jp.coverage.police.ToGeoJSON -slim
  21. java -cp .:osmCoverage.jar:hayashi.jar:hsqldb_2.2.9.jar:postgresql-9.4.1212.jar osm.jp.coverage.police.Coverage coverage.police.csv
  22. java -cp .:osmCoverage.jar:hayashi.jar:hsqldb_2.2.9.jar:postgresql-9.4.1212.jar osm.jp.coverage.police.Coverage coverage.police.json
  23. ls -l
  24. mv coverage.police.json GML_POLICE
  25. mv coverage.police.csv GML_POLICE
  26. mv police?.json GML_POLICE
  27. mv police.json GML_POLICE
  28. tar czvf coverage.policeJSON.tgz GML_POLICE/*.json GML_POLICE/*.csv
  29.  
  30. git config --global user.name "hayashi"
  31. git config --global user.email hayashi.yuu@gmail.com
  32. git add *.json
  33. git add GML_POLICE/*.json
  34. git commit --allow-empty -m "coverage police update $(date +%Y-%m-%d_%H:%M)"
  35.  
  36. git remote -v
  37. #git push gitbucket HEAD:master
  38.