
Mark Burton escribió:
Hi Carlos,
I'm getting the error below building maps with r1020. I suppose it's related with recent changes for codepage, but I don't know how to fix it. I'm using --latin1 --code-page=1252 options. Any hint?
I'm not familiar with any of that code but the assertion is related to processing of a style file. Have you changed anything in the style files that could cause an upset? I don't find anything suspicious in my files (no recent changes), but I attach my differences with current code so others with more knowledge can check. Regards Carlos
Index: src/uk/me/parabola/mkgmap/osmstyle/StyledConverter.java =================================================================== --- src/uk/me/parabola/mkgmap/osmstyle/StyledConverter.java (revisión: 1020) +++ src/uk/me/parabola/mkgmap/osmstyle/StyledConverter.java (copia de trabajo) @@ -367,7 +367,7 @@ String phone = element.getTag("phone"); String isIn = element.getTag("is_in"); String country = element.getTag("is_in:country"); - String region = element.getTag("is_in:county"); + String region = element.getTag("is_in:region"); if(country != null) country = element.getTag("addr:country"); Index: src/uk/me/parabola/mkgmap/build/MapBuilder.java =================================================================== --- src/uk/me/parabola/mkgmap/build/MapBuilder.java (revisión: 1020) +++ src/uk/me/parabola/mkgmap/build/MapBuilder.java (copia de trabajo) @@ -417,7 +417,7 @@ } else if (guessed && locationAutofillLevel > 0) { - Label streetName = lbl.newLabel("FIX MY ADDRESS"); + Label streetName = lbl.newLabel("Completar dirección"); r.setStreetName(streetName); } Index: resources/styles/default/points =================================================================== --- resources/styles/default/points (revisión: 1020) +++ resources/styles/default/points (copia de trabajo) @@ -75,10 +75,10 @@ highway=bus_stop [0x2f08 resolution 21] -highway=motorway_junction { name '${ref} ${name}' | '${ref}' | '${name}' } +highway=motorway_junction { name '${ref}: ${name}' | '${ref}' | '${name}' } highway=motorway_junction [0x2000 resolution 16] -highway=services { name '${ref} ${name}' | '${ref}' | '${name}' } +highway=services { name '${ref}: ${name}' | '${ref}' | '${name}' } highway=services [0x210f resolution 16] historic=museum [0x2c02 resolution 20] Index: resources/LocatorConfig.xml =================================================================== --- resources/LocatorConfig.xml (revisión: 1020) +++ resources/LocatorConfig.xml (copia de trabajo) @@ -27,7 +27,14 @@ <variant>IT</variant> </country> <country name="France" abr="FRA"> - </country> + </country> + <country name="España" abr="ESP" poiDispFlag="0xc"> + <variant>Spain</variant> + <variant>ES</variant> + </country> + <country name="Portugal" abr="POR" poiDispFlag="0xc"> + <variant>PT</variant> + </country> <country name="United States" abr="USA"> <variant>USA</variant> </country>