On 09/01/12 11:19, Martin wrote:
Hi,
I done some tests. You can find the results here:
http://snailrun.de/all_tests.zip
Thanks again for the excellent test cases. There is so much data in a
normal tile is is very useful to trim it down like this.
As a result I quickly saw a problem in the 'only_fs' files.
I'm not sure if it is the same problem you were seeing earlier though --
as I think it will only happen if a city has just the one street, which
is why it is found again in 'with_other_only_fs'.
But in any case a patch that fixes this is attached and pre-built
mkgmap.jar can be found at:
http://files.mkgmap.org.uk/download/47/mkgmap.jar
With this patch I could find all 4 Friedrichstrasse streets in Berlin on
my Legend.
..Steve
Index: src/uk/me/parabola/imgfmt/app/mdr/Mdr20.java
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- src/uk/me/parabola/imgfmt/app/mdr/Mdr20.java (revision 2164)
+++ src/uk/me/parabola/imgfmt/app/mdr/Mdr20.java (revision )
@@ -94,8 +94,10 @@
String name = street.getName();
Mdr5Record city = street.getCity();
+ boolean citySameByName = city.isSameByName(lastCity);
+
// Only save a single copy of each street name.
- if (!name.equals(lastName)) {
+ if (!name.equals(lastName) || !citySameByName) {
record++;
streets.add(street);
@@ -103,7 +105,7 @@
}
// The mdr20 value changes for each new city name
- if (city.isSameByName(lastCity)) {
+ if (citySameByName) {
city.setMdr20(cityRecord);
} else {
// New city name, this marks the start of a new section in mdr20
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev