Hi
I don't know why but I tried it again with 2028 an new data and there
isn't any error any more. I tried it with default-style and my own
style. Both where fine.
OK, so I can't go any further with the original problem unless it
happens again in a more repeatable way.
I do have a patch (attached) for the bug that I found with the file that
you uploaded, which I will commit.
..Steve
Index: src/uk/me/parabola/imgfmt/app/net/NETFileReader.java
===================================================================
--- src/uk/me/parabola/imgfmt/app/net/NETFileReader.java (revision 2028)
+++ src/uk/me/parabola/imgfmt/app/net/NETFileReader.java (revision )
@@ -222,8 +222,14 @@
List<Integer> offsets = new ArrayList<Integer>();
while (reader.position() < end) {
- int off = reader.getu3();
- offsets.add(off);
+ int net1 = reader.getu3();
+
+ // The offset is stored in the bottom 22 bits. The top 2 bits are an index into the list
+ // of lbl pointers in the net1 entry. Since we pick up all the labels at a particular net1
+ // entry we only need one of the offsets so pick the first one.
+ int idx = (net1 >> 22) & 0x3;
+ if (idx == 0)
+ offsets.add(net1 & 0x3fffff);
}
// Sort in address order in the hope of speeding up reading.
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev