Skip to content

Commit

Permalink
update OSHDB to version 1.0.0 (#283)
Browse files Browse the repository at this point in the history
* update OSHDB to version 1.0.0

* add Changelog for update to 1.0.0
  • Loading branch information
joker234 authored Nov 23, 2022
1 parent 515b729 commit 56d6c6c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ Changelog

### Breaking Changes
* remove caching command line parameter ([#281])
* update to OSHDB 1.0.0-SNAPSHOT ([#281])
* update to OSHDB 1.0.0 ([#281], [#283])

### New Features
* tag translator parameter are now configurable via CLI parameter: `tt.maxbytesvalue`, `tt.maxnumroles` ([#281])

[#281]: https://github.com/GIScience/ohsome-api/pull/281
[#283]: https://github.com/GIScience/ohsome-api/pull/283


## 1.7.0
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<jts2geojson.version>0.17.0</jts2geojson.version>
<mavenjar.version>3.2.0</mavenjar.version>
<opencsv.version>5.6</opencsv.version>
<oshdb.version>1.0.0-RC1</oshdb.version>
<oshdb.version>1.0.0</oshdb.version>
<projectlombok.version>1.18.16</projectlombok.version>
<sonar.sources>src/main/lombok</sonar.sources>
<springboot.version>2.5.14</springboot.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
public class DbConnData {

public static OSHDBDatabase db = null;
public static OSHDBJdbc keytables = null;
public static TagTranslator tagTranslator = null;
public static DataSource dbSource = null;
public static DataSource keytablesDbSource = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,7 @@ public static boolean usesCsvFormat(HttpServletRequest request) {
* #readTree(String) readTree}
*/
public static void extractOSHDBMetadata() throws IOException {
OSHDBDatabase db;
if (DbConnData.keytables != null) {
db = DbConnData.keytables;
} else {
if (!(DbConnData.db instanceof OSHDBJdbc)) {
throw new DatabaseAccessException(ExceptionMessages.DATABASE_ACCESS);
}
db = DbConnData.db;
}
OSHDBDatabase db = DbConnData.db;
if (db.metadata("extract.region") != null) {
String dataPolyString = db.metadata("extract.region");
ObjectMapper mapper = new ObjectMapper();
Expand Down

0 comments on commit 56d6c6c

Please sign in to comment.