diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..f69380b --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,39 @@ + +The MIT License (MIT) + +Copyright (c) 2018 Yuu Hayashi + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +------------------------------------------------------------------- +`osmCoverage.jar` +Copyright (c) 2018 Yuu Hayashi +This software is released under the MIT License, see LICENSE.txt. + +------------------------------------------------------------------- + +* [hayashi.jar](https://osdn.net/projects/hayashilib/) +Copyright (c) 2013 Yuu Hayashi +This software is released under the MIT License. + +* [javax.json.jar](https://javaee.github.io/jsonp/) + +* [hsqldb_2.2.9.jar](http://hsqldb.org/) + +* [postgresql-42.2.4.jar](https://www.postgresql.org/) diff --git a/README.md b/README.md new file mode 100644 index 0000000..5acaf6d --- /dev/null +++ b/README.md @@ -0,0 +1,15 @@ +# osmCoverage + +## Summary + +位置情報付きのデータとOpenStreetMap上のデータとを比較・評価して、各データの`score`を算出する。 + +算出されたデータは、PostGISデータベースに格納される。 + +* [osmCoverage](doc/osmCoverage.md) + + +## License + +* [MIT license](LICENSE.txt) + diff --git a/database.properties b/database.properties deleted file mode 100644 index e66e66c..0000000 --- a/database.properties +++ /dev/null @@ -1,4 +0,0 @@ -db_driver=org.hsqldb.jdbcDriver -db_url=jdbc:hsqldb:file:./database/db -db_user=sa -db_passwd= diff --git a/doc/osmCoverage.md b/doc/osmCoverage.md new file mode 100644 index 0000000..fd47c70 --- /dev/null +++ b/doc/osmCoverage.md @@ -0,0 +1,30 @@ +# osmCoverage + + +## Summary + +1. 位置情報付きのデータとOpenStreetMap上のデータとを比較・評価して、各データの`score`を算出する。 + +2. 算出されたデータは、PostGISデータベースに格納される。 + + +## Development + +* Used by NetBeans 8.2 +* OpenJDK 8 + +### lib + +* [hayashi.jar](https://osdn.net/projects/hayashilib/) +* [javax.json.jar](https://javaee.github.io/jsonp/) +* [hsqldb_2.2.9.jar](http://hsqldb.org/) +* [postgresql-42.2.4.jar](https://www.postgresql.org/) + +### build + + + + +## 使い方 + + diff --git a/doc/overpass.xml b/doc/overpass.xml deleted file mode 100644 index f283cfa..0000000 --- a/doc/overpass.xml +++ /dev/null @@ -1,105 +0,0 @@ - - -The data included in this document is from www.openstreetmap.org. The data is made available under ODbL. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/gisdb.properties b/gisdb.properties deleted file mode 100644 index dd39b0a..0000000 --- a/gisdb.properties +++ /dev/null @@ -1,4 +0,0 @@ -db_driver=org.postgresql.Driver -db_url=jdbc:postgresql://192.168.0.29:5432/gisdb -db_user=postgres -db_passwd= diff --git a/nbproject/build-impl.xml b/nbproject/build-impl.xml index d30546b..884d412 100644 --- a/nbproject/build-impl.xml +++ b/nbproject/build-impl.xml @@ -123,6 +123,7 @@ + @@ -232,6 +233,7 @@ Must set src.dir Must set test.test.dir + Must set test.doc.dir Must set build.dir Must set dist.dir Must set build.classes.dir @@ -416,6 +418,9 @@ + + + @@ -448,6 +453,9 @@ + + + @@ -560,6 +568,9 @@ + + + @@ -1259,12 +1270,13 @@ - + - + + @@ -1279,9 +1291,10 @@ Must select some files in the IDE or set javac.includes - + + diff --git a/nbproject/genfiles.properties b/nbproject/genfiles.properties index e74ced1..ff571e4 100644 --- a/nbproject/genfiles.properties +++ b/nbproject/genfiles.properties @@ -1,8 +1,8 @@ -nbbuild.xml.data.CRC32=7469a291 +nbbuild.xml.data.CRC32=cc6c4e6a nbbuild.xml.script.CRC32=e7ea1557 nbbuild.xml.stylesheet.CRC32=8064a381@1.80.1.48 # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. -nbproject/build-impl.xml.data.CRC32=7469a291 -nbproject/build-impl.xml.script.CRC32=9170c4d3 +nbproject/build-impl.xml.data.CRC32=cc6c4e6a +nbproject/build-impl.xml.script.CRC32=3a0f5e9e nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 diff --git a/nbproject/project.properties b/nbproject/project.properties index 4b46cb1..a167df2 100644 --- a/nbproject/project.properties +++ b/nbproject/project.properties @@ -106,4 +106,5 @@ ${build.test.classes.dir} source.encoding=UTF-8 src.dir=${file.reference.osmCoverage-src} +test.doc.dir=doc test.test.dir=test diff --git a/nbproject/project.xml b/nbproject/project.xml index 24c2e39..c0a9730 100644 --- a/nbproject/project.xml +++ b/nbproject/project.xml @@ -9,6 +9,7 @@ + diff --git a/osmdb.properties b/osmdb.properties deleted file mode 100644 index 73f0f16..0000000 --- a/osmdb.properties +++ /dev/null @@ -1,4 +0,0 @@ -db_driver=org.postgresql.Driver -db_url=jdbc:postgresql://localhost:5432/sens -db_user=jenkins -db_passwd= diff --git a/output.xml b/output.xml deleted file mode 100644 index e69de29..0000000 --- a/output.xml +++ /dev/null diff --git a/src/coverage_FUEL.bat b/src/coverage_FUEL.bat deleted file mode 100644 index 2f1f6e9..0000000 --- a/src/coverage_FUEL.bat +++ /dev/null @@ -1,3 +0,0 @@ -RD /s database -java -cp .;osmCoverage.jar;hayashi_0225.jar;hsqldb_2.2.9.jar;postgresql-9.4.1212.jar osm.jp.coverage.fuel.DbFuel - diff --git a/src/gisdb.properties b/src/gisdb.properties new file mode 100644 index 0000000..dd39b0a --- /dev/null +++ b/src/gisdb.properties @@ -0,0 +1,4 @@ +db_driver=org.postgresql.Driver +db_url=jdbc:postgresql://192.168.0.29:5432/gisdb +db_user=postgres +db_passwd= diff --git a/src/osmdb.properties b/src/osmdb.properties index bdedd56..a705164 100644 --- a/src/osmdb.properties +++ b/src/osmdb.properties @@ -1,7 +1,5 @@ -# for Docker -# db_driver=org.postgresql.Driver -db_url=jdbc:postgresql://172.17.0.1:5432/osmdb +db_url=jdbc:postgresql://localhost:5432/osmdb db_user=postgres -db_passwd=yuu8844 +db_passwd= diff --git a/test/newfile.json b/test/newfile.json deleted file mode 100644 index e69de29..0000000 --- a/test/newfile.json +++ /dev/null diff --git a/test/overpass.xml b/test/overpass.xml new file mode 100644 index 0000000..f283cfa --- /dev/null +++ b/test/overpass.xml @@ -0,0 +1,105 @@ + + +The data included in this document is from www.openstreetmap.org. The data is made available under ODbL. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +