logo separator

[mkgmap-dev] How to display administrative boundaries / shade them?

From Craig Durkin craigdurkin at gmail.com on Tue Jan 18 19:30:02 GMT 2022

That's what I would have thought too, but no luck. It seems like the
"polygons" file maybe only deals with closed ways and not specifically
relations?

For what it's worth, my program is invoked with:

java -jar mkgmap-r4586/mkgmap.jar --gmapsupp --gmapi --transparent
--output-dir=gmap_output --style-file=mkgmap-r4586/new_style/ data.osm

and the 'polygons' file in new_style/polygons has the following line in it:
boundary=administrative [0x07 resolution 20]

Craig

*From* Gerd Petermann gpetermann_muenchen at hotmail.com
<mkgmap-dev%40lists.mkgmap.org.uk?Subject=Re:%20Re%3A%20%5Bmkgmap-dev%5D%20How%20to%20display%20administrative%20boundaries%20/%20shade%0A%20them%3F&In-Reply-To=%3CAM0PR08MB541016A276CDB396533304559E589%40AM0PR08MB5410.eurprd08.prod.outlook.com%3E>
*on* *Tue Jan 18 18:41:33 GMT 2022*

Hi Craig,

I think all you need is a rule in style file polygons to render the object.

Gerd


On Tue, Jan 18, 2022 at 1:33 PM Craig Durkin <craigdurkin at gmail.com> wrote:

> Hi mkgmap folks -- sorry if this is kind of a beginning question, but I
> can't for the life of me figure out how to get administrative boundaries
> (or really any arbitrary polygon) to display with mkgmap. Ideally I'd be
> able to lightly shade the inside of the boundary polygon, but even
> displaying the polygon is eluding me.
>
> An example OSM relation that I'm trying to display is Conyers, GA, USA
> relation ID 119584.
>
> I understand that there might be editing necessary to the style files, but
> it's not really clear: do I edit relations, lines, or polygons? Or all 3?
>
> Can anyone offer any tips?
>
> Thanks,
> Craig
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20220118/fa322541/attachment-0001.html>


More information about the mkgmap-dev mailing list