[mapserver-users] class expression question

Bistrais, Bob Bob.Bistrais at maine.gov
Thu Sep 5 08:48:24 PDT 2013


Thanks Steve!  That works great!
Bob

From: Lime, Steve D (MNIT) [mailto:Steve.Lime at state.mn.us]
Sent: Thursday, September 05, 2013 11:46 AM
To: Bistrais, Bob; mapserver-users at lists.osgeo.org
Subject: RE: class expression question

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> [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<mailto: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/ce10eecd/attachment-0001.html>


More information about the mapserver-users mailing list