diff --git a/DataExtractionOSM/src/net/osmand/data/index/IndexBatchCreator.java b/DataExtractionOSM/src/net/osmand/data/index/IndexBatchCreator.java index c49e1832e8..fd7e7fde52 100644 --- a/DataExtractionOSM/src/net/osmand/data/index/IndexBatchCreator.java +++ b/DataExtractionOSM/src/net/osmand/data/index/IndexBatchCreator.java @@ -80,6 +80,7 @@ public class IndexBatchCreator { boolean generateIndexes = false; boolean uploadIndexes = false; MapZooms mapZooms = null; + Integer zoomWaySmoothness = null; MapRenderingTypes types = MapRenderingTypes.getDefault(); boolean deleteFilesAfterUploading = true; @@ -166,6 +167,11 @@ public class IndexBatchCreator { mapZooms = MapZooms.parseZooms(zooms); } + String szoomWaySmoothness = process.getAttribute("zoomWaySmoothness"); + if(szoomWaySmoothness != null){ + zoomWaySmoothness = Integer.parseInt(szoomWaySmoothness); + } + String f = process.getAttribute("renderingTypesFile"); if(f == null || f.length() == 0){ types = MapRenderingTypes.getDefault(); @@ -433,6 +439,9 @@ public class IndexBatchCreator { try { alreadyGeneratedFiles.add(f.getName()); indexCreator.generateIndexes(f, new ConsoleProgressImplementation(3), null, mapZooms, types); + if(zoomWaySmoothness != null){ + indexCreator.setZoomWaySmothness(zoomWaySmoothness); + } if (indexPOI) { uploadIndex(new File(indexDirFiles, poiFileName), alreadyUploadedFiles); } diff --git a/DataExtractionOSM/src/net/osmand/data/index/batch.xml b/DataExtractionOSM/src/net/osmand/data/index/batch.xml index 8f4385f760..5ffa4449e5 100644 --- a/DataExtractionOSM/src/net/osmand/data/index/batch.xml +++ b/DataExtractionOSM/src/net/osmand/data/index/batch.xml @@ -20,10 +20,11 @@ All these subprocess could be ran independently ! So you can create some files check them and after that try to upload on googlecode, or you can upload any file you have to googlecode (just put into 'directory_for_index_files') --> +