logo separator

[mkgmap-dev] Finding administrative areas

From Thorsten Kukuk kukuk at suse.de on Sun Jul 29 20:56:32 BST 2012

On Sun, Jul 29, Roger Calvert wrote:

> When a custom style is used, does this completely replace the default 
> style, or is the default style processed after the custom style? My custom 
> style does not include the admin level rules. Do I need to incorporate 
> them?

If your custom style does not include the default style, the
default style is not used together with your custom style.

You have to incorporate the admin level rules in your style.

> On 29/07/2012 15:58, WanMil wrote:
>> Hi Roger,
>>
>> you can do that by using the precompiled bounds. The style file already
>> contains rules to assign the country/region/city information. You can
>> use similar rules for your purpose, e.g.:
>>
>> mkgmap:admin_level6=Cumbria && highway=primary { set highway=secondary }
>>
>> This example works only if you use the precompiled bounds. Read step 4
>> of http://wiki.openstreetmap.org/wiki/Mkgmap/help/How_to_create_a_map
>> how to use them.
>>
>> WanMil
>>
>>> A bit of advice, please, if anyone can help.
>>>
>>> How can one obtain information on the administrative area (e.g. county)
>>> an object is in in the style files? For example, I would like to find
>>> out if an object is in Cumbria or Lancashire.
>>>
>>> Some objects have "is_in" tags, but most do not. Such information should
>>> be accessible from the surrounding boundaries. Can I access this
>>> information in a style file?
>>>
>>> Thanks,
>>>
>>> Roger
>>> --
>>> ------------------------------------------------------------------------
>>>
>>> Roger Calvert
>>> ------------------------------------------------------------------------
>>>
>>>
>>> _______________________________________________
>>> mkgmap-dev mailing list
>>> mkgmap-dev at lists.mkgmap.org.uk
>>> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
>>>
>> _______________________________________________
>> mkgmap-dev mailing list
>> mkgmap-dev at lists.mkgmap.org.uk
>> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
>>
>>
>
> -- 
> ------------------------------------------------------------------------
>
> Roger Calvert
> ------------------------------------------------------------------------

> _______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev at lists.mkgmap.org.uk
> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

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