Verified Commit b96c15e4 authored by Johannes Visintini's avatar Johannes Visintini
Browse files

replaced deprecated method of OSHDBBoundingBox

parent 9568226e
Pipeline #2512 passed with stage
in 0 seconds
......@@ -25,7 +25,7 @@ public class DistinctContributors {
// query
result = OSMContributionView.on(oshdb)
.keytables(oshdbKeytables)
.areaOfInterest(new OSHDBBoundingBox(71.45, -1.16, 74.7, 7.47)) // maldives
.areaOfInterest(OSHDBBoundingBox.bboxWgs84Coordinates(71.45, -1.16, 74.7, 7.47)) // maldives
.timestamps("2007-01-01", "2017-12-01", Interval.MONTHLY)
.filter("type:way and highway=*")
.map(OSMContribution::getContributorUserId)
......
......@@ -36,7 +36,7 @@ public class RoadLength {
// query
result = OSMEntitySnapshotView.on(oshdb)
.keytables(oshdbKeytables)
.areaOfInterest(new OSHDBBoundingBox(71.45, -1.16, 74.7, 7.47)) // maldives
.areaOfInterest(OSHDBBoundingBox.bboxWgs84Coordinates(71.45, -1.16, 74.7, 7.47)) // maldives
.timestamps("2007-01-01", "2017-12-01", Interval.MONTHLY)
.filter("type:way and highway in (" + String.join(",", highway_motorway) + ")")
.aggregateByTimestamp()
......
......@@ -40,7 +40,7 @@ public class Tutorial {
// Setting spatial extent
// create BoundingBox
OSHDBBoundingBox boundingBox = new OSHDBBoundingBox(71.45, -1.16, 74.7, 7.47); //Maldives
OSHDBBoundingBox boundingBox = OSHDBBoundingBox.bboxWgs84Coordinates(71.45, -1.16, 74.7, 7.47); //Maldives
// add hte boundingBox to the MapReducer
mapReducer = mapReducer.areaOfInterest(boundingBox);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment