logo separator

[mkgmap-dev] Improved street search in index branch

From Steve Ratcliffe steve at parabola.me.uk on Thu Jan 20 22:31:55 GMT 2011

> My tiles have one speciality: They are quite small. I have splitted with
> max-nodes=100000.

I have fixed it: the mdr15 offset size (PointerSize.getStrOffSize() ) 
has to be always at least 3 bytes.

I made a number of indexes, ran MdrSummary on them and separated them
into good and bad files.

A quick grep showed that the only interesting thing was the the record
sizes (in square brackets) were different and it quickly turned out
that this was down the the string offset pointer size.

$ grep 'MDR 5' ok
MDR 5  NR=70    (00000046) [10]magic=0x1c (28)
MDR 5  NR=60    (0000003c) [10]magic=0x1c (28)
MDR 5  NR=57    (00000039) [10]magic=0x1c (28)

$ grep 'MDR 5' bad
MDR 5  NR=10    (0000000a) [ 9]magic=0x1c (28)
MDR 5  NR=19    (00000013) [ 9]magic=0x1c (28)
MDR 5  NR=46    (0000002e) [ 9]magic=0x1c (28)
MDR 5  NR=43    (0000002b) [ 9]magic=0x1c (28)
MDR 5  NR=36    (00000024) [ 9]magic=0x1c (28)
MDR 5  NR=38    (00000026) [ 9]magic=0x1c (28)
MDR 5  NR=38    (00000026) [ 9]magic=0x1c (28)
MDR 5  NR=46    (0000002e) [ 9]magic=0x1c (28)
MDR 5  NR=45    (0000002d) [ 9]magic=0x1c (28)
MDR 5  NR=46    (0000002e) [ 9]magic=0x1c (28)

$ grep 'MDR 7' ok
MDR 7  NR=4049  (00000fd1) [ 7]magic=0x3 (3)
MDR 7  NR=4173  (0000104d) [ 7]magic=0x3 (3)
MDR 7  NR=3861  (00000f15) [ 7]magic=0x3 (3)

$ grep 'MDR 7' bad
MDR 7  NR=1269  (000004f5) [ 6]magic=0x3 (3)
MDR 7  NR=1646  (0000066e) [ 6]magic=0x3 (3)
MDR 7  NR=2489  (000009b9) [ 6]magic=0x3 (3)
MDR 7  NR=3206  (00000c86) [ 6]magic=0x3 (3)
MDR 7  NR=2020  (000007e4) [ 6]magic=0x3 (3)
MDR 7  NR=3347  (00000d13) [ 6]magic=0x3 (3)
MDR 7  NR=2160  (00000870) [ 6]magic=0x3 (3)
MDR 7  NR=2569  (00000a09) [ 6]magic=0x3 (3)
MDR 7  NR=2395  (0000095b) [ 6]magic=0x3 (3)
MDR 7  NR=3262  (00000cbe) [ 6]magic=0x3 (3)

..Steve



More information about the mkgmap-dev mailing list