FastMath reorganization
This commit is contained in:
@@ -18,7 +18,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;
|
||||
@@ -116,7 +116,7 @@ public class MapzenGeojsonTileSource 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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user