[mapserver-users] Is it posible to substitute a value from table for width of line

prab.raja prab.raja at gmail.com
Tue May 31 23:09:06 PDT 2011


Hi,
I would like to know if it's posible to draw line layer with variable width
from database table.

Something like this?

LAYER
      NAME line_layer
      CONNECTIONTYPE postgis
      CONNECTION "user=postgres password=****** dbname=shpdb host=localhost
port=5432"
      DATA "the_geom FROM  (SELECT gid, the_geom FROM line_layer)
         AS SUBQUERY using unique gid"
      PROCESSING "CLOSE_CONNECTION=DEFER"
      TYPE line
      OPACITY 100
      STATUS Off
      CLASS         
         STYLE
            COLOR 0 140 70
            WIDTH [gid]
         END
      END  
   END

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6425708.html
Sent from the Mapserver - User mailing list archive at Nabble.com.



More information about the MapServer-users mailing list