[mapserver-users] class expression question

Lime, Steve D (MNIT) Steve.Lime at state.mn.us
Thu Sep 5 08:45:59 PDT 2013


You can use regexes:

CLASSITEM 'road_type'
CLASS
  EXPRESSION /^I-/
  ...
END

or

CLASS
  EXPRESSION ('[road_type]' ~ '^I-')
   ...
END

Steve

From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob
Sent: Thursday, September 05, 2013 10:40 AM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] class expression question

I'd like to classify road data according to road type.  This includes Interstate highways, where the road name attribute starts with "I-", such as "I-95", "I-295", etc.  So I'd like to create a class where '[roadname]' like 'I-%'


-          What is the correct syntax to do this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20130905/70bcc9b5/attachment.html>


More information about the mapserver-users mailing list