FastMath reorganization

This commit is contained in:
Emux
2018-02-11 11:19:54 +02:00
parent bd9e7d7456
commit 67dde0af7d
9 changed files with 86 additions and 98 deletions

View File

@@ -17,7 +17,7 @@ package org.oscim.tiling.source.geojson;
import org.oscim.core.MapElement;
import org.oscim.core.Tag;
import org.oscim.tiling.source.UrlTileSource;
import org.oscim.utils.math.MathUtils;
import org.oscim.utils.FastMath;
import java.util.LinkedHashMap;
import java.util.Map;
@@ -115,7 +115,7 @@ public class NextzenGeojsonTileSource extends GeojsonTileSource {
Object area = properties.get(Tag.KEY_AREA);
String areaStr = (area instanceof String) ? (String) area : String.valueOf(area);
float height = Float.parseFloat(volumeStr) / Float.parseFloat(areaStr);
String heightStr = String.valueOf(MathUtils.round2(height));
String heightStr = String.valueOf(FastMath.round2(height));
mapElement.tags.add(new Tag(Tag.KEY_HEIGHT, heightStr, false));
}
}