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 class="gmail_quote">2011/7/28 Gleb Kosolapov <span dir="ltr">&lt;<a href="mailto:thunderlion@yandex.ru">thunderlion@yandex.ru</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;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 102 102 102<br>
                          WIDTH 4.0<br>
                        END<br>
                        STYLE<br>
                          COLOR 255 255 255<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 &#39;railroad&#39;<br>
                STATUS ON<br>
                TYPE LINE<br>
                PROJECTION<br>
                        &quot;init=epsg:4326&quot;<br>
                END<br>
                CONNECTIONTYPE oraclespatial<br>
                CONNECTION &quot;***/***@****&quot;<br>
                DATA &quot;SHAPE FROM FGIS_DATA USING SRID 8307&quot;<br>
                FILTER &quot;(CATEGORYID = 41 and GTYPE in (2,6))&quot;<br>
<br>
                STYLEITEM &quot;MS_STYLE&quot;<br>
                CLASS<br>
                        NAME &#39;railroad&#39;<br>
                END<br>
<br>
                PROCESSING &quot;CLOSE_CONNECTION=DEFER&quot;<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">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>
</blockquote></div><br>