Update uploader
This commit is contained in:
parent
cd7ccb85e8
commit
9764f6e2ed
2 changed files with 16 additions and 11 deletions
|
@ -11,24 +11,29 @@ public class IndexConstants {
|
||||||
public final static int TTSVOICE_VERSION = 1; //supported download versions
|
public final static int TTSVOICE_VERSION = 1; //supported download versions
|
||||||
|
|
||||||
public static final String POI_INDEX_EXT = ".poi.odb"; //$NON-NLS-1$
|
public static final String POI_INDEX_EXT = ".poi.odb"; //$NON-NLS-1$
|
||||||
|
|
||||||
public static final String BINARY_MAP_INDEX_EXT = ".obf"; //$NON-NLS-1$
|
public static final String BINARY_MAP_INDEX_EXT = ".obf"; //$NON-NLS-1$
|
||||||
public static final String BINARY_SRTM_MAP_INDEX_EXT = ".srtm.obf"; //$NON-NLS-1$
|
public static final String BINARY_MAP_INDEX_EXT_ZIP = ".obf.zip"; //$NON-NLS-1$
|
||||||
public static final String BINARY_WIKI_MAP_INDEX_EXT_ZIP = ".wiki.obf.zip"; //$NON-NLS-1$
|
|
||||||
public static final String BINARY_WIKI_MAP_INDEX_EXT = ".wiki.obf"; //$NON-NLS-1$
|
public static final String BINARY_WIKI_MAP_INDEX_EXT = ".wiki.obf"; //$NON-NLS-1$
|
||||||
|
public static final String BINARY_WIKI_MAP_INDEX_EXT_ZIP = ".wiki.obf.zip"; //$NON-NLS-1$
|
||||||
|
public static final String BINARY_ROAD_MAP_INDEX_EXT = ".road.obf"; //$NON-NLS-1$
|
||||||
|
public static final String BINARY_ROAD_MAP_INDEX_EXT_ZIP = ".road.obf.zip"; //$NON-NLS-1$
|
||||||
|
public static final String BINARY_SRTM_MAP_INDEX_EXT = ".srtm.obf"; //$NON-NLS-1$
|
||||||
public static final String BINARY_SRTM_MAP_INDEX_EXT_ZIP = ".srtm.obf.zip"; //$NON-NLS-1$
|
public static final String BINARY_SRTM_MAP_INDEX_EXT_ZIP = ".srtm.obf.zip"; //$NON-NLS-1$
|
||||||
|
public static final String EXTRA_EXT = ".extra";
|
||||||
|
public static final String EXTRA_ZIP_EXT = ".extra.zip";
|
||||||
|
|
||||||
public static final String TOUR_INDEX_EXT = ".tour"; //$NON-NLS-1$
|
public static final String TOUR_INDEX_EXT = ".tour"; //$NON-NLS-1$
|
||||||
|
public static final String TOUR_INDEX_EXT_ZIP = ".tour.zip"; //$NON-NLS-1$
|
||||||
|
|
||||||
public static final String GEN_LOG_EXT = ".gen.log"; //$NON-NLS-1$
|
public static final String GEN_LOG_EXT = ".gen.log"; //$NON-NLS-1$
|
||||||
|
|
||||||
public static final String POI_INDEX_EXT_ZIP = ".poi.zip"; //$NON-NLS-1$
|
|
||||||
public static final String VOICE_INDEX_EXT_ZIP = ".voice.zip"; //$NON-NLS-1$
|
public static final String VOICE_INDEX_EXT_ZIP = ".voice.zip"; //$NON-NLS-1$
|
||||||
public static final String TTSVOICE_INDEX_EXT_ZIP = ".ttsvoice.zip"; //$NON-NLS-1$
|
public static final String TTSVOICE_INDEX_EXT_ZIP = ".ttsvoice.zip"; //$NON-NLS-1$
|
||||||
public static final String ANYVOICE_INDEX_EXT_ZIP = "voice.zip"; //$NON-NLS-1$ //to cactch both voices, .voice.zip and .ttsvoice.zip
|
public static final String ANYVOICE_INDEX_EXT_ZIP = "voice.zip"; //$NON-NLS-1$ //to cactch both voices, .voice.zip and .ttsvoice.zip
|
||||||
public static final String BINARY_MAP_INDEX_EXT_ZIP = ".obf.zip"; //$NON-NLS-1$
|
|
||||||
public static final String TOUR_INDEX_EXT_ZIP = ".tour.zip"; //$NON-NLS-1$
|
|
||||||
|
|
||||||
public static final String EXTRA_ZIP_EXT = ".extra.zip";
|
|
||||||
public static final String EXTRA_EXT = ".extra";
|
|
||||||
|
|
||||||
public static final String RENDERER_INDEX_EXT = ".render.xml"; //$NON-NLS-1$
|
public static final String RENDERER_INDEX_EXT = ".render.xml"; //$NON-NLS-1$
|
||||||
|
|
||||||
|
|
|
@ -67,14 +67,14 @@ public class BinaryInspector {
|
||||||
if(args.length == 1 && "test".equals(args[0])) {
|
if(args.length == 1 && "test".equals(args[0])) {
|
||||||
in.inspector(new String[]{
|
in.inspector(new String[]{
|
||||||
// "-vpoi",
|
// "-vpoi",
|
||||||
"-vmap", "-vmapobjects", "-vmapcoordinates",
|
// "-vmap", "-vmapobjects", // "-vmapcoordinates",
|
||||||
// "-vrouting",
|
// "-vrouting",
|
||||||
// "-vaddress", "-vcities","-vstreetgroups",
|
// "-vaddress", "-vcities","-vstreetgroups",
|
||||||
// "-vstreets", "-vbuildings", "-vintersections",
|
// "-vstreets", "-vbuildings", "-vintersections",
|
||||||
// "-zoom=15",
|
// "-zoom=15",
|
||||||
// "-bbox=1.74,51.17,1.75,51.16",
|
// "-bbox=1.74,51.17,1.75,51.16",
|
||||||
// "-vstats",
|
// "-vstats",
|
||||||
"/Users/victorshcherb/osmand/maps/Netherlands_noord-holland_europe_15_07_28.obf"
|
"/Users/victorshcherb/osmand/temp/Angola_cuanza-sul_africa_2.srtm.obf"
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
in.inspector(args);
|
in.inspector(args);
|
||||||
|
@ -403,7 +403,7 @@ public class BinaryInspector {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private static void copyBinaryPart(CodedOutputStream ous, byte[] BUFFER, RandomAccessFile raf, long fp, int length)
|
public static void copyBinaryPart(CodedOutputStream ous, byte[] BUFFER, RandomAccessFile raf, long fp, int length)
|
||||||
throws IOException {
|
throws IOException {
|
||||||
raf.seek(fp);
|
raf.seek(fp);
|
||||||
int toRead = length;
|
int toRead = length;
|
||||||
|
|
Loading…
Reference in a new issue