OpenStreetMap Forum

The Free Wiki World Map

You are not logged in.

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

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 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?


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

Re: Apply a role in a specific country only

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


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

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.


Board footer

Powered by FluxBB 1.4.8
Hosting sponsored by Oxilion
Report abuse to osm at na1400 dot info