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"><<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;">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 '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">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>