[mapserver-users] Multiple styles in STYLEITEM
Tamas Szekeres
szekerest at gmail.com
Thu Jul 28 06:11:42 PDT 2011
I mean you can place class definitions to the database as style strings
according to:
http://mapserver.org/development/rfc/ms-rfc-61.html#supported-style-representations
Best regards,
Tamas
2011/7/28 Gleb Kosolapov <thunderlion at yandex.ru>
> Yes, I can encapsulate multiple styles in a CLASS definition, but I need
> to take it from database.
>
> 28.07.2011, 16:07, "Tamas Szekeres" <szekerest at gmail.com>:
>
> Hi Gleb,
>
> You may probably encapsulate multiple styles in a CLASS definition.
>
> Best regards,
>
> Tamas
>
>
>
> 2011/7/28 Gleb Kosolapov <thunderlion at yandex.ru>
>
> Hi, everyone!
>
> I try to use variable styles for objects in Oracle DB.
> To show railroads I have to use styles like that:
> STYLE
> COLOR 102 102 102
> WIDTH 4.0
> END
> STYLE
> COLOR 255 255 255
> WIDTH 2.0
> LINECAP BUTT
> PATTERN 8 12 END
> END
>
> If I store it in table field MS_STYLE I must define this layer:
> LAYER
> NAME 'railroad'
> STATUS ON
> TYPE LINE
> PROJECTION
> "init=epsg:4326"
> END
> CONNECTIONTYPE oraclespatial
> CONNECTION "***/***@****"
> DATA "SHAPE FROM FGIS_DATA USING SRID 8307"
> FILTER "(CATEGORYID = 41 and GTYPE in (2,6))"
>
> STYLEITEM "MS_STYLE"
> CLASS
> NAME 'railroad'
> END
>
> PROCESSING "CLOSE_CONNECTION=DEFER"
> END
>
> But MapServer reads only the first definition of STYLE (without pattern).
> Is there another way to make it work?
>
> Regards, Gleb
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110728/d2f2da72/attachment.htm>
More information about the MapServer-users
mailing list