About REGEX. {Scanned}

Siki Zoltan siki at AGT.BME.HU
Mon Oct 11 17:50:04 PDT 2004


Hi,

On Mon, 11 Oct 2004, Bob Basques wrote:

> All,
>
> I have a set of 1 foot contours that I would like to publish.
>
> I had thought about setting up more than one source file for different
> resolutions.  But, if I can use a REGEX to filter for say 5 and ten foot
> elevations (attributes) I can get it all done with a single layer.
>
> Can I filter on the values or characters in some way for display/labelling?
>
> Some desired layers:
>
> All the Contours.
> Every 2 feet. (even values)

EXPRESSION /[02468]$/

> Every 5 feet. (values ending in "0" or "5")

EXPRESSION /[05]$/

> Every 10 feet. (values ending in "0")

EXPRESSION /0$/

These regexp will work if you have integer values for the elevation.

Bye
Zoltan



More information about the MapServer-users mailing list