You are not logged in.

Announcement

*** NOTICE: forum.openstreetmap.org is being retired. Please request a category for your community in the new ones as soon as possible using this process, which will allow you to propose your community moderators.
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***

#1 2012-03-26 16:54:32

Bernhard Hiller
Member
Registered: 2011-05-10
Posts: 1,122

Apply a role in a specific country only

I want to apply the rule
highway=* & highway!=trunk & ref~'\d\d\d\d' {set highway=major}
in my lines file only when the highway in Thailand.
I thought that I could use mkgmap:country for that purpose, i.e.
highway=* & highway!=trunk & ref~'\d\d\d\d' & mkgmap:country=THA {set highway=major}
But it does not work: those highways do not change their type (the rule without a country works fine, but everywhere).
I downloaded the boundaries freshly from http://www.navmaps.eu/index.php/developers/bound and unzipped them into E:\Maps\Raw\bounds.
The call to mkgmap is:
"C:\Program Files (x86)\Java\jre6\bin\java.exe" -Xmx1000m -ea -jar "C:\Program Files (x86)\OpenStreetMap\mkgmap-r2207\mkgmap.jar" --bounds=E:\Maps\Raw\bounds  --latin1  --lower-case --name-tag-list=name:en,int_name,name  --style-file=E:\Maps\Development\Thai\Style --family-name=BernieMapThai --route --location-autofill=1 --preserve-element-order --tdbfile --index --nsis 6*.osm.pbf
What's wrong with that?

Offline

#2 2012-03-26 18:31:22

ligfietser
Member
Registered: 2008-10-09
Posts: 5,353
Website

Re: Apply a role in a specific country only

Try --location-autofill=bounds,is-in,nearest

Offline

#3 2012-03-27 18:41:35

Bernhard Hiller
Member
Registered: 2011-05-10
Posts: 1,122

Re: Apply a role in a specific country only

Thanks for that hint. Among the many things I tried after posting my question, that eventually made it work.

Offline

Board footer

Powered by FluxBB