Opened 20 years ago
Closed 20 years ago
#537 closed defect (fixed)
length() is missing from the EXPRESSION documentation
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | high | Milestone: | 4.2 release |
Component: | Documentation - MapServer | Version: | 4.0 |
Severity: | normal | Keywords: | |
Cc: |
Description
in class expressions you can compute the length() of a string and use it for comparison or whatever. In the following example: EXPRESSION ('[CFCC]' =~ /^A3/ && length('[RTE_NUM]') < 3) the number of digits in the RTE_NUM is being used to select an appropriate symbol that is large enough to handle 1 or 2 digits and a similar expression can be used to select a wider symbol capable of handling 3+ digits. This feature has been around for a while like back as far as 3.4 or maybe 3.3, check with Steve L. if you need more info.
Change History (3)
comment:3 by , 20 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
added length() to expressions for CLASS object...in mapfile-reference CVS main
Note:
See TracTickets
for help on using tickets.