Hi Peter

It does appear to be something to do with the lowercase characters in the labels after transliteration.

The attached patch fixes the problem for your example files.

I think there is more to do since we shouldn't be putting lowercase letters into the img files in the first place.

There is another very big problem with those tiles as I get a lot of streets that cannot be found. This is because the sorted road index in NET is very badly sorted for some reason.

..Steve
Index: src/uk/me/parabola/imgfmt/app/mdr/MDRFile.java
===================================================================
--- src/uk/me/parabola/imgfmt/app/mdr/MDRFile.java	(revision 1926)
+++ src/uk/me/parabola/imgfmt/app/mdr/MDRFile.java	(revision )
@@ -342,6 +342,6 @@
 	 * @return An offset value.
 	 */
 	private int createString(String str) {
-		return mdr15.createString(str.toUpperCase());
+		return mdr15.createString(str);
 	}
 }
Index: src/uk/me/parabola/imgfmt/app/labelenc/Transliterator.java
===================================================================
--- src/uk/me/parabola/imgfmt/app/labelenc/Transliterator.java	(revision 1519)
+++ src/uk/me/parabola/imgfmt/app/labelenc/Transliterator.java	(revision )
@@ -19,7 +19,7 @@
  */
 public interface Transliterator {
 	/**
-	 * Convert a string into a string that uses only ascii characters.
+	 * Convert a string into a string that uses only ascii or latin1 characters.
 	 *
 	 * @param s The original string.  It can use any unicode character.
 	 * @return A string that uses a restricted subset of characters (ascii or
_______________________________________________
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Reply via email to