[mapserver-users] RE: HI

Paolo Corti pcorti at gmail.com
Wed Mar 21 02:10:05 PDT 2012


On Wed, Mar 21, 2012 at 4:31 AM, Özgür Arslan <ozgurarslan81 at hotmail.com> wrote:
> 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:
>

Use EXPRESSION inside each CLASS you want to define (in your case a
couple of ones):

LAYER
  NAME name
  TYPE type
  ...
  CLASS
        EXPRESSION ([TYPE]='Expressway')
    STYLE
      ...
    END
  END
  CLASS
        EXPRESSION ([TYPE]='Primary highway')
    STYLE
      ...
    END
  END

best regards
P

-- 
Paolo Corti
Geospatial software developer
web: http://www.paolocorti.net
twitter: @capooti
skype: capooti



More information about the MapServer-users mailing list