kopia lustrzana https://github.com/JOSM/MapWithAI
Really fix bound expansion issue
This was partially fixed in ca85a58cae
.
Signed-off-by: Taylor Smock <tsmock@fb.com>
pull/1/head
v1.9.4
rodzic
eb143d0afc
commit
a3cd232117
|
@ -199,12 +199,12 @@ public class GetDataRunnable extends RecursiveTask<DataSet> {
|
|||
public static void removeEmptyTags(DataSet dataSet, Bounds bounds) {
|
||||
Bounds boundsToUse;
|
||||
if (bounds == null && !dataSet.getDataSourceBounds().isEmpty()) {
|
||||
boundsToUse = dataSet.getDataSourceBounds().get(0);
|
||||
boundsToUse = new Bounds(dataSet.getDataSourceBounds().get(0));
|
||||
dataSet.getDataSourceBounds().forEach(boundsToUse::extend);
|
||||
} else if (bounds == null) {
|
||||
boundsToUse = new Bounds(-MAX_LATITUDE, -MAX_LONGITUDE, MAX_LATITUDE, MAX_LONGITUDE);
|
||||
} else {
|
||||
boundsToUse = bounds;
|
||||
boundsToUse = new Bounds(bounds);
|
||||
}
|
||||
dataSet.searchPrimitives(boundsToUse.toBBox()).forEach(GetDataRunnable::realRemoveEmptyTags);
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue