Jackey,<br><br>If it can&#39;t be achieved in Map Server settings, it might be possible to accomplish if your data is in PostGIS and you can get your data from a database function rather than a table/view as your data source.  In that case, and if appropriate arguments can be sent to a PostGIS function, the dynamic part can be taken care of as part of the select.  You&#39;ll then have to optimise the speed/structure in the PostGIS side.<br>
<br>I have no idea if this might work!<br><br>Steve<br><br><br><br><div class="gmail_quote">On 13 April 2010 09:45, Jackey Cheung <span dir="ltr">&lt;<a href="mailto:cheung.jackey@gmail.com">cheung.jackey@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div class="h5"><span style="font-family: arial,sans-serif; font-size: 13px; border-collapse: collapse;">Hi all,<div>
<br></div><div>Say, I have two polygon in the same layer, and they are at the same logical group/level on the map. Means that both feature should be drawn and labeled at the same scale. However, one polygon is much larger than (say 10 times larger) than the other. Currently, I let MapServer to handle the scaling automatically, so that in a display scale, the label of the larger one looks too small while the larger one looks gigantic.</div>

<div><br></div><div>My thought is straight forward: tie the font size to the size of the polygon. However, since the label must be scaled with respect to the map display scale, it has to be dynamic; further, since they belongs to the same logical group, they&#39;ll eventually be in the same size when zoomed in enough. My first thought is to bind the MINSIZE to a data attribute, so that they start with different font sizes and eventually scaled to the same MAXSIZE. But the MINSIZE/MAXSIZE cannot be used in this way.</div>

<div><br></div><div>Any suggestions?</div><div><br></div><div>P.S. I&#39;m not using mapscript, just map file.</div></span>
</div></div><br>_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br></blockquote></div><br><div style="visibility: hidden; display: inline;" id="avg_ls_inline_popup"></div><style type="text/css">#avg_ls_inline_popup {  position:absolute;  z-index:9999;  padding: 0px 0px;  margin-left: 0px;  margin-top: 0px;  width: 240px;  overflow: hidden;  word-wrap: break-word;  color: black;  font-size: 10px;  text-align: left;  line-height: 13px;}</style>