logo separator

[mkgmap-dev] city of riga not found

From Thorsten Kukuk kukuk at suse.de on Fri Mar 1 10:45:40 GMT 2013

On Fri, Mar 01, Rich wrote:

> On 2013-02-28 23:30, Steve Ratcliffe wrote:
> > I downloaded the two tiles around Riga from garmin.openstreetmap.nl.
> >
> > The city itself was easily found.
> >
> > What does happen is if you search for a street eg "Elizabetes
> > Iela" it is classed as being in the city of "Centrs" in the region
> > "Riga". Likewise if you try to enter riga in the city field of the
> > address search it is not found there.
> >
> > If that is what you mean, then it is probably that the wrong admin
> > level is selected when creating the boundary files, so the streets
> > are being allocated to suburbs/disticts rather than the city itself.
> > Since Riga is a capital city it may be an exception to the normal case.
> 
> ah, streets being assigned to suburbs seems likely... is there maybe 
> some easy solution (that does not involve modifying osm data :) )

Ok, Riga is admin_level6, Centrs is admin_level10.
admin_level6 is not used for cities, thus admin_level10 at the
last line wins.

Maybe this will work. Add the following line
before the "# common rules for all the rest of countries"
line or whatever else rules you are using for your area to your style:

mkgmap:country=LVA & mkgmap:city!=* & mkgmap:admin_level6=Rīga {set mkgmap:city='${mkgmap:admin_level6}' }

I hope "LVA" is correct, haven't tested it.
For Germany I have meanwhile quite some of this "hacks".

  Thorsten
-- 
Thorsten Kukuk, Project Manager/Release Manager SLES
SUSE LINUX Products GmbH, Maxfeldstr. 5, D-90409 Nuernberg
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg)


More information about the mkgmap-dev mailing list