
Hello, I built a map using us_midwest extract from Geofabrik and have 5 countries listed in the country list on my Etrex Vista: Country Israel Mongolia Ukraine United States Country seems to be when there is no info and I am fine with that. US is OK but I do not understand the other three. Below are example of cities that show up under those countries: Israel: Abbells Corners, Wis. http://www.openstreetmap.org/browse/node/153786773 Mongolia: Basswood Grove, Minn. http://www.openstreetmap.org/browse/node/151919152 Ukraine: Ackworth, Iowa http://www.openstreetmap.org/browse/node/151408706 Why does it happen? Thanks, N.

Nakor <nakor.osm@gmail.com> wrote:
Hello,
I built a map using us_midwest extract from Geofabrik and have 5 countries listed in the country list on my Etrex Vista:
Country Israel Mongolia Ukraine United States
Country seems to be when there is no info and I am fine with that. US is OK but I do not understand the other three. Below are example of cities
that show up under those countries:
Israel: Abbells Corners, Wis. http://www.openstreetmap.org/browse/node/153786773 Mongolia: Basswood Grove, Minn. http://www.openstreetmap.org/browse/node/151919152 Ukraine: Ackworth, Iowa http://www.openstreetmap.org/browse/node/151408706
Why does it happen?
Thanks,
N. _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Thanks for the very specific examples, it should be easy to track down from them. I'm on a train at the moment, but my initial guess is that regionOffset in LocatorConfig should be set. But there must be more to it than that.

Thanks for the very specific examples, it should be easy to track down from them.
I'm on a train at the moment, but my initial guess is that regionOffset in LocatorConfig should be set. But there must be more to it than that.
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev I looked a little bit more into it by adding debug info in Locator.java (see attached patch). I tried different values of location-autofill (-1 thru 4) and it did not change anything.
At that point everything looks fine. Where else could the problem happen? 2011/03/02 16:15:09 FINE (Locator): C:\OSM\maps\Test.osm: Processing Ackworth 2011/03/02 16:15:09 FINE (Locator): C:\OSM\maps\Test.osm: is_in=WARREN,IOWA,IOWA,IA,USA 2011/03/02 16:15:09 FINE (Locator): C:\OSM\maps\Test.osm: using format 3 2011/03/02 16:15:09 FINE (Locator): C:\OSM\maps\Test.osm: region: IOWA, country: UNITED STATES 2011/03/02 16:15:09 FINE (Locator): C:\OSM\maps\Test.osm: region: IOWA, country: UNITED STATES

Hi
I looked a little bit more into it by adding debug info in Locator.java (see attached patch). I tried different values of location-autofill (-1 thru 4) and it did not change anything.
At that point everything looks fine. Where else could the problem happen?
2011/03/02 16:15:09 FINE (Locator): C:\OSM\maps\Test.osm: Processing Ackworth
Yes I've found that a tiny extract containing just Ackworth and its surroundings works perfectly. I've downloaded the same us-midwest extract and am currently compiling that. Perhaps there is some other Ackworth that really causes the problem. I note that it is not close to the edge of the state, in fact rather near the middle. I've been lucky the second map tile contains a Mongolia, so I will go and look at that. ..Steve

On Wed, Mar 02, 2011 at 01:11:02PM -0500, Nakor wrote:
Hello,
I built a map using us_midwest extract from Geofabrik and have 5 countries listed in the country list on my Etrex Vista:
Country Israel Mongolia Ukraine United States
Could these be typos in addr:country? Note that U,I and A,S are adjacent on the QWERTY keyboard: US=United States UA=Ukraine IS=Israel I do not know about Mongolia. Apparently, it is MN (I had to look up). Maybe it is a typo on a Dvorak keyboard? :-) Marko

Hi
I built a map using us_midwest extract from Geofabrik and have 5 countries listed in the country list on my Etrex Vista:
Country Israel Mongolia Ukraine United States
OK I have got it. There are two things. 1. A silly bug, the country list is sorted without renumbering the index values. This means that cities that had correct information can be assigned to the wrong country. 2. The previous bug would not cause a problem if there were just the one country and Mongolia wasn't there. The Mongolia appeared because there is a isin="Dakota, MN" (on one of the places called "West Saint Paul"). The location code takes the MN as the name of a country as it is at the end. So problem 1 is the major one and I am just about to commit a fix for that. In my test tile, all the cities were "in" Mongolia, even though there was really only one that was problematical from looking at the tags. Problem 2 is less of a problem, and at least it is easy to see why it is happening by looking at the data. THe data could be fixed if that is not the accepted way of tagging in the USA. For mkgmap I'd suggest that, for the USA at least, country information is not taken from isin lists that are shorter than 4. ..steve

For mkgmap I'd suggest that, for the USA at least, country information is not taken from isin lists that are shorter than 4.
Thanks for fixing this! On a side topic how can I have a consistent region (state) naming. Now I have MI. Mich., Michigan. How can I ensure that I have only one entry for all variants? Thanks, N.
participants (3)
-
Marko Mäkelä
-
Nakor
-
Steve Ratcliffe