I mean you can place class definitions to the database as style strings according to:<br><a href="http://mapserver.org/development/rfc/ms-rfc-61.html#supported-style-representations">http://mapserver.org/development/rfc/ms-rfc-61.html#supported-style-representations</a><br>
<br>Best regards,<br><br>Tamas<br><br><br><br><div class="gmail_quote">2011/7/28 Gleb Kosolapov <span dir="ltr"><<a href="mailto:thunderlion@yandex.ru">thunderlion@yandex.ru</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>Yes, I can encapsulate multiple styles in a CLASS definition, but I need to take it from database.</div><div> </div><div>28.07.2011, 16:07, "Tamas Szekeres" <<a href="mailto:szekerest@gmail.com" target="_blank">szekerest@gmail.com</a>>:</div>
<div><div></div><div class="h5"><blockquote>Hi Gleb,<br><br>You may probably encapsulate multiple styles in a CLASS definition.<br><br>Best regards,<br><br>Tamas<br><br><br><br><div>2011/7/28 Gleb Kosolapov <span dir="ltr"><<a href="mailto:thunderlion@yandex.ru" target="_blank">thunderlion@yandex.ru</a>></span><br>
<blockquote style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid #cccccc;padding-left:1ex">Hi, everyone!<br> <br> I try to use variable styles for objects in Oracle DB.<br> To show railroads I have to use styles like that:<br>
STYLE<br> COLOR <span>102 102 102</span><br> WIDTH 4.0<br> END<br> STYLE<br> COLOR <span>255 255 255</span><br>
WIDTH 2.0<br> LINECAP BUTT<br> PATTERN 8 12 END<br> END<br> <br> If I store it in table field MS_STYLE I must define this layer:<br>
LAYER<br> NAME 'railroad'<br> STATUS ON<br> TYPE LINE<br> PROJECTION<br> "init=epsg:4326"<br> END<br>
CONNECTIONTYPE oraclespatial<br> CONNECTION "***/***@****"<br> DATA "SHAPE FROM FGIS_DATA USING SRID 8307"<br> FILTER "(CATEGORYID = 41 and GTYPE in (2,6))"<br>
<br> STYLEITEM "MS_STYLE"<br> CLASS<br> NAME 'railroad'<br> END<br> <br> PROCESSING "CLOSE_CONNECTION=DEFER"<br>
END<br> <br> But MapServer reads only the first definition of STYLE (without pattern). Is there another way to make it work?<br> <br> Regards, Gleb<br> _______________________________________________<br> mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">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></blockquote>
</div></blockquote></div></div></blockquote></div><br>