Trying to access the wikipedia tag

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Trying to access the wikipedia tag

Marc Cousin
Hi,

I'm trying to produce a map with more "tourism" data on it. One thing
I'd like to add is castles. I managed to do this, though as many of them
are areas and I wanted them as POI, I had to add --add-pois-to-areas.

But I'd like to try to guess what castles are "interesting" ones, to
display them on larger zoom levels.

The idea I had was that the more interesting castles would probably have
a wikipedia page attached to them (I live in an area where there are a
lot of castles :) ), and wanted to use this as a filter, to try
something like that:

tourism=castle & wikipedia=* {name '${name} - ${wikipedia}'} [0x5202
resolution 20]
tourism=castle & wikipedia!=* {name '${name}' | 'Castle'} [0x5202
resolution 24]


(I created my own POI icon for 0x5202). But the wikipedia tag doesn't
seem to be available. Is there a way to ask mkgmap to keep a
supplementary tag ? Or is there something smarter I could do ? :)

Regards

Marc
_______________________________________________
mkgmap-dev mailing list
[hidden email]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Reply | Threaded
Open this post in threaded view
|

Re: Trying to access the wikipedia tag

Gerd Petermann
Hi Marc,

not sure what your problem is here. I found only 4 objects in OSM with tourism=castle & wikipedia=*
So maybe your input simply doesn't contain any of them?

________________________________________
Von: mkgmap-dev <[hidden email]> im Auftrag von Marc Cousin <[hidden email]>
Gesendet: Samstag, 3. August 2019 16:23
An: [hidden email]
Betreff: [mkgmap-dev] Trying to access the wikipedia tag

Hi,

I'm trying to produce a map with more "tourism" data on it. One thing
I'd like to add is castles. I managed to do this, though as many of them
are areas and I wanted them as POI, I had to add --add-pois-to-areas.

But I'd like to try to guess what castles are "interesting" ones, to
display them on larger zoom levels.

The idea I had was that the more interesting castles would probably have
a wikipedia page attached to them (I live in an area where there are a
lot of castles :) ), and wanted to use this as a filter, to try
something like that:

tourism=castle & wikipedia=* {name '${name} - ${wikipedia}'} [0x5202
resolution 20]
tourism=castle & wikipedia!=* {name '${name}' | 'Castle'} [0x5202
resolution 24]


(I created my own POI icon for 0x5202). But the wikipedia tag doesn't
seem to be available. Is there a way to ask mkgmap to keep a
supplementary tag ? Or is there something smarter I could do ? :)

Regards

Marc
_______________________________________________
mkgmap-dev mailing list
[hidden email]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________
mkgmap-dev mailing list
[hidden email]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev