On Wed, Mar 21, 2012 at 4:31 AM, Özgür Arslan <[email protected]> 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
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to