From 8f02ee8351ed3697edc2f402c58bdcf0ca826f9d Mon Sep 17 00:00:00 2001 From: Arndt Brenschede Date: Sat, 8 Apr 2017 12:19:41 +0200 Subject: [PATCH] added main method to text-decode an rd5 --- .../src/main/java/btools/codec/MicroCache2.java | 8 +++++--- .../java/btools/mapaccess/PhysicalFile.java | 17 ++++++++++++++++- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/brouter-codec/src/main/java/btools/codec/MicroCache2.java b/brouter-codec/src/main/java/btools/codec/MicroCache2.java index 85a9b67..fae63f3 100644 --- a/brouter-codec/src/main/java/btools/codec/MicroCache2.java +++ b/brouter-codec/src/main/java/btools/codec/MicroCache2.java @@ -60,7 +60,7 @@ public final class MicroCache2 extends MicroCache int[] alon = size > dataBuffers.alon.length ? new int[size] : dataBuffers.alon; int[] alat = size > dataBuffers.alat.length ? new int[size] : dataBuffers.alat; - if ( debug ) System.out.println( "*** decoding cache of size=" + size ); + if ( debug ) System.out.println( "*** decoding cache of size=" + size + " for lonIdx=" + lonIdx + " latIdx=" + latIdx ); bc.decodeSortedArray( faid, 0, size, 0x20000000, 0 ); @@ -124,7 +124,7 @@ public final class MicroCache2 extends MicroCache writeVarBytes( nodeTags == null ? null : nodeTags.data ); int links = bc.decodeNoisyNumber( 1 ); - if ( debug ) System.out.println( "*** decoding node with links=" + links ); + if ( debug ) System.out.println( "*** decoding node " + ilon + "/" + ilat + " with links=" + links ); for( int li=0; li