diff --git a/DataExtractionOSM/src/net/osmand/binary/BinaryInspector.java b/DataExtractionOSM/src/net/osmand/binary/BinaryInspector.java index ac6ec33ca8..c4154a6923 100644 --- a/DataExtractionOSM/src/net/osmand/binary/BinaryInspector.java +++ b/DataExtractionOSM/src/net/osmand/binary/BinaryInspector.java @@ -30,7 +30,7 @@ public class BinaryInspector { public static void main(String[] args) throws IOException { inspector(args); // test cases show info - inspector(new String[]{"/home/victor/projects/OsmAnd/data/osm-gen/saved/Belarus-oldrt.obf"}); + inspector(new String[]{"/home/victor/projects/OsmAnd/data/osm-gen/saved/Belarus-newzooms-new-rt.obf"}); // test case extract parts // inspector(new String[]{"-c", "E:\\Information\\OSM maps\\osmand\\Netherlands-addr-trans.map.obf", diff --git a/DataExtractionOSM/src/net/osmand/data/preparation/IndexCreator.java b/DataExtractionOSM/src/net/osmand/data/preparation/IndexCreator.java index 7fef6c8686..96af28030e 100644 --- a/DataExtractionOSM/src/net/osmand/data/preparation/IndexCreator.java +++ b/DataExtractionOSM/src/net/osmand/data/preparation/IndexCreator.java @@ -605,7 +605,7 @@ public class IndexCreator { // creator.deleteOsmDB = true; // creator.setZoomWaySmothness(2); -// creator.setNodesDBFile(new File("e:/Information/OSM maps/osmand/minsk.tmp.odb")); + creator.setNodesDBFile(new File("/home/victor/projects/OsmAnd/data/osm-gen/nodes.tmp.odb")); // creator.generateIndexes(new File("/home/victor/projects/OsmAnd/data/osm-maps/germany_bayern_part.osm"), creator.generateIndexes(new File("/home/victor/projects/OsmAnd/data/belarus-osm/belarus.osm.pbf"), diff --git a/DataExtractionOSM/src/net/osmand/osm/rendering_types.xml b/DataExtractionOSM/src/net/osmand/osm/rendering_types.xml index a197a15dea..2970bfd672 100644 --- a/DataExtractionOSM/src/net/osmand/osm/rendering_types.xml +++ b/DataExtractionOSM/src/net/osmand/osm/rendering_types.xml @@ -10,32 +10,32 @@ - + - + - + - - - + + + - - - - - + + + + + - - - - - - - + + + + + + + @@ -371,7 +371,7 @@ - + diff --git a/OsmAnd/src/net/osmand/OsmAndFormatter.java b/OsmAnd/src/net/osmand/OsmAndFormatter.java index 1f94ebd349..7bdbe4dcb7 100644 --- a/OsmAnd/src/net/osmand/OsmAndFormatter.java +++ b/OsmAnd/src/net/osmand/OsmAndFormatter.java @@ -18,8 +18,8 @@ public class OsmAndFormatter { public static double calculateRoundedDist(double distInMeters, Context ctx) { OsmandSettings settings = OsmandSettings.getOsmandSettings(ctx); MetricsConstants mc = settings.METRIC_SYSTEM.get(); - float mainUnitInMeter = 1; - float metersInSecondUnit = METERS_IN_KILOMETER; + double mainUnitInMeter = 1; + double metersInSecondUnit = METERS_IN_KILOMETER; if (mc == MetricsConstants.MILES_AND_FOOTS) { mainUnitInMeter = FOOTS_IN_ONE_METER; metersInSecondUnit = METERS_IN_ONE_MILE; @@ -31,7 +31,7 @@ public class OsmAndFormatter { int generator = 5; byte pointer = 0; - float point = mainUnitInMeter; + double point = mainUnitInMeter; while(distInMeters * point > generator){ if (pointer++ % 3 == 2) { generator = generator * 5 / 2; diff --git a/OsmAnd/src/net/osmand/plus/render/MapRenderRepositories.java b/OsmAnd/src/net/osmand/plus/render/MapRenderRepositories.java index 77dfc110b3..0724219710 100644 --- a/OsmAnd/src/net/osmand/plus/render/MapRenderRepositories.java +++ b/OsmAnd/src/net/osmand/plus/render/MapRenderRepositories.java @@ -261,7 +261,7 @@ public class MapRenderRepositories { } // search lower level zooms only in basemap for now :) before it was intersection of maps on zooms 5-7 boolean basemapSearch = false; - if (zoom < 8) { + if (zoom < 7) { for (String f : files.keySet()) { if (f.toLowerCase().contains(BASEMAP_NAME)) { basemapSearch = true;