logo separator

[mkgmap-dev] Finding administrative areas

From Roger Calvert roger at rogercalvert.me.uk on Sun Jul 29 18:33:23 BST 2012

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?

Thanks,

Roger

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
------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20120729/9901c7a1/attachment.html 


More information about the mkgmap-dev mailing list