[mapserver-users] RE: HI
Fawcett, David (MPCA)
David.Fawcett at state.mn.us
Wed Mar 21 07:29:58 PDT 2012
I haven't tested it, but try something like this:
LAYER
NAME 'gtroads'
TYPE LINE
DUMP false
EXTENT -143.208273 40.614882 -50.461099 84.297613
DATA '../Data/gtroads.shp'
METADATA
'ows_title' 'gtroads'
END
STATUS DEFAULT
#TRANSPARENCY 100
# TRANSPARENCY is deprecated, use OPACITY if you want to create a semi-opaque layer.
PROJECTION
'proj=longlat'
'datum=WGS84'
'no_defs'
END
CLASS
NAME 'expressway'
EXPRESSION '[ROADTYPE]' = 'expressway' # substitute your column name and data value here
STYLE
WIDTH 3.5
COLOR 255 0 0
END
END
CLASS
NAME 'primary'
EXPRESSION '[ROADTYPE]' = 'primary' # substitute your column name and data value here
STYLE
WIDTH 2.5
COLOR 0 255 0
END
END
END
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Özgür Arslan
Sent: Tuesday, March 20, 2012 10:32 PM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] RE: HI
Hi All,
I am working on a project and I am trying to split a roads layer called gtroads. Roads layer should be split into two classes "Expressway" and "Primary highway" based on the "TYPE" field. How can I split the layer? Could someone help me about the problem? Thanks. The code line like below:
LAYER
NAME 'gtroads'
TYPE LINE
DUMP false
EXTENT -143.208273 40.614882 -50.461099 84.297613
DATA '../Data/gtroads.shp'
METADATA
'ows_title' 'gtroads'
END
STATUS DEFAULT
TRANSPARENCY 100
PROJECTION
'proj=longlat'
'datum=WGS84'
'no_defs'
END
CLASS
NAME 'gtroads'
STYLE
WIDTH 3.5
COLOR 0 0 0
END
END
END
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120321/81e81d38/attachment.htm>
More information about the MapServer-users
mailing list