Oh, thank you, Tamas.
28.07.2011, 17:11, "Tamas Szekeres" <[email protected]>:
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 <[email protected]>
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" <[email protected]>:
 
Hi Gleb,

You may probably encapsulate multiple styles in a CLASS definition.

Best regards,

Tamas



2011/7/28 Gleb Kosolapov <[email protected]>
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
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to