Hi
I've just tried with an up-to-date version of mapsource and I see the
same thing. Back to the drawing board then!
The attached patch seems to work better.
..Steve
Index: src/uk/me/parabola/imgfmt/app/mdr/Mdr5.java
===================================================================
--- src/uk/me/parabola/imgfmt/app/mdr/Mdr5.java (revision 1870)
+++ src/uk/me/parabola/imgfmt/app/mdr/Mdr5.java (revision )
@@ -64,16 +64,18 @@
cities.clear();
int count = 0;
int lastMapId = 0;
+ int lastRegion = 0;
String lastName = null;
for (SortKey<Mdr5Record> key : sortKeys) {
Mdr5Record c = key.getObject();
- if (c.getMapIndex() != lastMapId || !c.getName().equals(lastName)) {
+ if (c.getMapIndex() != lastMapId || !c.getName().equals(lastName) || c.getRegionIndex() != lastRegion) {
count++;
c.setGlobalCityIndex(count);
cities.add(c);
lastName = c.getName();
lastMapId = c.getMapIndex();
+ lastRegion = c.getRegionIndex();
} else {
c.setGlobalCityIndex(count);
}
Index: src/uk/me/parabola/imgfmt/app/mdr/Mdr20.java
===================================================================
--- src/uk/me/parabola/imgfmt/app/mdr/Mdr20.java (revision 1870)
+++ src/uk/me/parabola/imgfmt/app/mdr/Mdr20.java (revision )
@@ -1,0 +1,0 @@
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev