<div dir="ltr">In my understanding, the actual value should be provided somewhere here:<div><br></div><div><a href="https://github.com/MapServer/MapServer/blob/89d81cb8d0fcf5d44e043d53afe70f6e6a785756/src/maputil.c#L713">https://github.com/MapServer/MapServer/blob/89d81cb8d0fcf5d44e043d53afe70f6e6a785756/src/maputil.c#L713</a></div><div><br></div><div>in a similar way as the geomtransform code:</div><div><br></div><div><a href="https://github.com/MapServer/MapServer/blob/89d81cb8d0fcf5d44e043d53afe70f6e6a785756/src/mapgeomtransform.c#L283">https://github.com/MapServer/MapServer/blob/89d81cb8d0fcf5d44e043d53afe70f6e6a785756/src/mapgeomtransform.c#L283</a></div><div><br></div><div>Best regards,</div><div><br></div><div>Tamas</div><div><br></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">Lime, Steve D (MNIT) <<a href="mailto:steve.lime@state.mn.us">steve.lime@state.mn.us</a>> ezt írta (időpont: 2026. márc. 5., Cs, 23:17):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg-3409163498228295198">
<div lang="EN-US" style="overflow-wrap: break-word;">
<div class="m_-3409163498228295198WordSection1">
<p class="MsoNormal"><span style="font-size:11pt">Hmmm… I think this should be possible but I’m not sure exactly what would need to change. The expression parser code is not particularly straightforward. The map_cellsize token is generally recognized in the
parser – so not limited to GEOMTRANSFORM but it’s not clear how it gets its value.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<div>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11pt;font-family:Calibri,sans-serif">From:</span></b><span style="font-size:11pt;font-family:Calibri,sans-serif"> MapServer-dev <<a href="mailto:mapserver-dev-bounces@lists.osgeo.org" target="_blank">mapserver-dev-bounces@lists.osgeo.org</a>>
<b>On Behalf Of </b>Tamas Szekeres via MapServer-dev<br>
<b>Sent:</b> Thursday, March 5, 2026 2:32 PM<br>
<b>To:</b> <a href="mailto:mapserver-dev@lists.osgeo.org" target="_blank">mapserver-dev@lists.osgeo.org</a><br>
<b>Subject:</b> [MapServer-dev] Rendering Openstreetmap data in Mapserver<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">Hi Devs, <u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I'm trying to create a vector based map for the openstreetmap data in Mapserver by utilizing the mapnik styles provided by the
<a href="https://github.com/openstreetmap-carto/openstreetmap-carto" target="_blank">openstreetmap-carto</a> project. So far, I could achieve a very good result and the map looks is very similar to the online OSM at all scales, however the only thing I cannot replicate is
the concept of the <b>[way_pixels]</b> attribute conditions, where the feature’s area in pixels at the current map scale should be the part of the class expressions. I don't see such an option in Mapserver as it stands now, but supporting the already existing
<b>[map_cellsize] </b>would be a very close solution I think, however that is only implemented for the GEOMTRANSFORM expressions actually.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">For example the mapnik style expression <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">[way_pixels] > 750 <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal">could be provided in a MapServer CLASS expression as somehing like:
<br>
<br>
[way_area] > 750 * [map_cellsize] * [map_cellsize]<br>
<br>
Would that be reasonable to implement <b>[map_cellsize]</b> in the CLASS expressions?
<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Best regards,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Tamas<u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div></blockquote></div>