<div dir="ltr">Also, from one of the talks on SOTM-EU 2014 [1], I learned that Mapnik, does not allow one to use a value from the database as color in the rendering.<div><br></div><div><br></div><div>[1] <a href="https://www.youtube.com/watch?v=850JJHQKp_s">https://www.youtube.com/watch?v=850JJHQKp_s</a></div>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Aug 20, 2014 at 6:07 PM, Peter Wendorff <span dir="ltr"><<a href="mailto:wendorff@uni-paderborn.de" target="_blank">wendorff@uni-paderborn.de</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Okay, let me get a bit more verbose.<br>
<br>
I want to get Walmarts shown on the map in a different color.<br>
Before there's a polygon with the following tags:<br>
<br>
shop=supermarket<br>
building=yes<br>
operator=WalMart<br>
addr:street=whatever<br>
addr:housenumber:42<br>
addr:city=YouLike<br>
render=blue<br>
<br>
Another polygon is tagged<br>
<br>
shop=supermarket<br>
building=yes<br>
building:levels=2<br>
operator=WalMart<br>
addr:street=another street<br>
addr:city=some city<br>
<br>
Let's consider the usual rendering of the osm-carto (default mapnik)<br>
stylesheet.<br>
<br>
without considering the render tag both buildings are drawn as buildings<br>
(dark outlined polygon filled in slightly lighter gray) and a shopping<br>
cart icon on top.<br>
<br>
Now let's consider the render-tag.<br>
<br>
Variant 1: just use it. You get an entirely inconsistent look, as I<br>
myself wasn't interested in all WalMarts, but probably only those in one<br>
particular town, so I only added the render tag to some objects.<br>
Let two others add arbitrary, but different render ideas to other<br>
objects and the map get's unusable as there's nothing like a map key any<br>
more: all visuals on the map get more or less meaningless.<br>
<br>
Variant 2: Try to use the render tag, but in a consistent way.<br>
In that case my stylesheet/renderer would have to figure out what is<br>
meant by the render-tag. It may refer to supermarkets, to WalMarts, to<br>
stuff in the whatever-street or in the city YouLike. Figuring out a rule<br>
from that is incredibly hard and very error prone.<br>
<br>
Your last sentence might be the misunderstanding:<br>
<div class="">"As soon as rendering is defined for an element, it is used instead and<br>
RENDER is normally ignored".<br>
</div>But even that is a tricky strategy. Let's stay at the WalMart-Example.<br>
I want to have a special (!) rendering for WalMarts, so there is no<br>
rendering defined for it before (as any rendering defined is a fallback<br>
to a more generic case: supermarkets or even buildings).<br>
It would therefore lead to cluttering map objects where it is not<br>
necessary, or doesn't solve anything at all. Although it would break<br>
down stylesheet innovation even more as you can render your very own<br>
tags - as long as it isn't rendered on the map itself.<br>
<br>
Put the effort to add rendering for missing objects. This is harder to<br>
achieve, yes; but it is the straightforward way, not a hack around, with<br>
major drawbacks and side effects.<br>
<br>
regards<br>
Peter<br>
<br>
Am 20.08.2014 um 14:46 schrieb André Pirard:<br>
<div class="HOEnZb"><div class="h5">> On 2014-08-15 16:31, Peter Wendorff wrote :<br>
>> not a good idea IMHO.<br>
>> 1) what is the feature this tag should refer to? Consider a polygon that<br>
>> is tagged as a building (building=yes) and a shop (shop=supermarked) and<br>
>> a Walmart (operator=WalMart), and the mapper added RENDER=blue. What is<br>
>> it that should be rendered blue? This object? Any supermarket? any<br>
>> Walmart?<br>
> I don't understand what you say very well. "added RENDER" to what?<br>
> As I say RENDER would typically apply to "an area", to one object, not<br>
> to "any".<br>
> That is, you have building=yes + render=blue and that building gets blue.<br>
><br>
>> Any building? How should any rendering decide if the default<br>
>> rendering should be used or the one defined by the tag you propose?<br>
> Did you read my sentence:<br>
>>> As soon as rendering is defined for an element, it is used instead<br>
>>> and RENDER is normally ignored.<br>
> ?<br>
> a.s.o. ...<br>
><br>
> André.<br>
><br>
><br>
>> 2) I want to get Walmarts shown on the map in a different color, thus<br>
>> all Walmarts I want to see in the map get<br>
>> RENDER={mycolor-which-is-not-used-yet-in-the-zoomlevel-I'm-interested-in}.<br>
>> Now the stylesheet maintainer uses that color for another object -<br>
>> conflict, damn, fail.<br>
>> 3) I want to get Walmarts rendered pink on osm-carto, green on HOT,<br>
>> orange on the cyclemap - what should go to the render-tag (even if the<br>
>> styles would follow your proposal?<br>
>><br>
>> The only benefit I see in this proposal is just what you said: people<br>
>> would stop tagging stuff just to get their map to display it the way<br>
>> they want; but how do you ensure they don't tag stuff to be rendered<br>
>> with the same style? How do you ensure the map stays usable?<br>
>><br>
>> regards<br>
>> Peter<br>
>><br>
>> Am 15.08.2014 um 16:12 schrieb André Pirard:<br>
>>> Hi,<br>
>>><br>
>>> It's a well known fact that many people complain to tag in vain because<br>
>>> what they tag doesn't show on the map (e.g. mini-golf vs tennis pitch),<br>
>>> because they're told to open a rendering ticket which replies that only<br>
>>> official tags are supported, and because they open a vote for an<br>
>>> official tag and nobody signs.<br>
>>> As a result they are accused of "tagging for the renderer" instead of<br>
>>> 'being forced to tag for the renderer".<br>
>>><br>
>>> The solution is simple however.  A RENDER tag that, typically, would<br>
>>> assign a color to an area.<br>
>>> I'll let the rendering specialists define what else it can do.<br>
>>> ⚠ ⚠ ⚠ RENDER only requests *by default* rendering.<br>
>>> As soon as rendering is defined for an element, it is used instead and<br>
>>> RENDER is normally ignored.<br>
>>><br>
>>> For a better map,<br>
>>><br>
>>> André.<br>
>>><br>
><br>
><br>
><br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> Tagging mailing list<br>
> <a href="mailto:Tagging@openstreetmap.org">Tagging@openstreetmap.org</a><br>
> <a href="https://lists.openstreetmap.org/listinfo/tagging" target="_blank">https://lists.openstreetmap.org/listinfo/tagging</a><br>
><br>
<br>
<br>
_______________________________________________<br>
Tagging mailing list<br>
<a href="mailto:Tagging@openstreetmap.org">Tagging@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/tagging" target="_blank">https://lists.openstreetmap.org/listinfo/tagging</a><br>
</div></div></blockquote></div><br></div>