Removing deprecate MapReducerSettings methods is unfortunately not straight forward for example in
TestMapReducer.testOSMEntitySnapshotViewStream we got following query.
OSMEntitySnapshotView.on(oshdb)
.osmType(type)
.osmTag("highway") replace to -> filter("highway=*")
.areaOfInterest(bbox)
.timestamps(timestamps)
.osmEntityFilter(entity -> entity.getId() == id)
.groupByEntity()
will throw an
new UnsupportedOperationException(
"groupByEntity() must be called before any `map` or `flatMap` "
+ "transformation functions have been set");
the reason for that is that filter(...) instead of osmTag(...) adds a mapping step at
which then conflicts with groupByEntity later on
Removing deprecate MapReducerSettings methods is unfortunately not straight forward for example in
TestMapReducer.testOSMEntitySnapshotViewStreamwe got following query.will throw an
the reason for that is that
filter(...)instead ofosmTag(...)adds a mapping step atoshdb/oshdb-api/src/main/java/org/heigit/ohsome/oshdb/api/mapreducer/MapReducer.java
Line 796 in 64bc0d8
which then conflicts with
groupByEntitylater on