This commit is contained in:
Hannes Janetzek 2013-06-04 22:52:42 +02:00
parent dc5b264a0a
commit 528d59263b
2 changed files with 4 additions and 4 deletions

View File

@ -100,9 +100,9 @@ public class OSciMap2TileSource extends UrlTileSource {
throws IOException { throws IOException {
int byteCount = readUnsignedInt(is, buffer); int byteCount = readUnsignedInt(is, buffer);
Log.d(TAG, tile + " contentLength:" + byteCount); //Log.d(TAG, tile + " contentLength:" + byteCount);
if (byteCount < 0) { if (byteCount < 0) {
Log.d(TAG, "invalid contentLength: " + byteCount); Log.d(TAG, tile + " invalid content length: " + byteCount);
return false; return false;
} }

View File

@ -23,8 +23,8 @@ import org.oscim.core.MapElement;
import org.oscim.core.Tag; import org.oscim.core.Tag;
import org.oscim.core.TagSet; import org.oscim.core.TagSet;
import org.oscim.core.Tile; import org.oscim.core.Tile;
import org.oscim.tilesource.common.PbfDecoder;
import org.oscim.tilesource.ITileDataSink; import org.oscim.tilesource.ITileDataSink;
import org.oscim.tilesource.common.PbfDecoder;
import android.util.Log; import android.util.Log;
@ -87,7 +87,7 @@ public class TileDecoder extends PbfDecoder {
throws IOException { throws IOException {
int byteCount = readUnsignedInt(is, buffer); int byteCount = readUnsignedInt(is, buffer);
Log.d(TAG, tile + " contentLength:" + byteCount); //Log.d(TAG, tile + " contentLength:" + byteCount);
if (byteCount < 0) { if (byteCount < 0) {
Log.d(TAG, "invalid contentLength: " + byteCount); Log.d(TAG, "invalid contentLength: " + byteCount);
return false; return false;