Just for reference:
I tried to select about 130 items using a regular expression in the form
of EXPRESSION (/^ITEM1|ITEM2|ITEM3|...|ITEM130$/) and rendering took
about 4.5-5 seconds.
I tried to select the exact same 130 items using "IN" syntax: EXPRESSION
("[myfield]" IN "ITEM1,ITEM2,ITEM3,.
Hello everyone,
I'm trying to filter items by using a regular expression and a
string/number comparison. Here's what works, and what doesnt:
EXPRESSION (/MYREGEXP/i)-> doesn't work (doesn't match anything)
EXPRESSION /MYREGEXP/i -> works
EXPRESSION "[myColumn]" ==1 -> doesn't work (lo
Adrian Popa wrote:
EXPRESSION (/MYREGEXP/i)-> doesn't work (doesn't match anything)
EXPRESSION /MYREGEXP/i -> works
EXPRESSION "[myColumn]" ==1 -> doesn't work (loadClass(): Unknown
identifier. Parsing error near (=))
EXPRESSION ("[myColumn]" ==1) -> doesn't work (doesn't match anythin
Thanks, Andreas,
I've tried your solution (and already looked over the manual) but it
still doesn't match anything...
Also - EXPRESSION ("[myColumn]" =~ /MYREGEXP/i) doesn't match anything
and EXPRESSION "[myColumn]" =~ /MYREGEXP/i complains of a syntax error.
myColumn is the exact same thi
I managed to find a workaround for my problem: I used a FILTER statement
in the layer definition and an EXPRESSION in my classes:
LAYER
...
FILTERITEM "myColumn1"
FILTER /MYREGEXP/i
CLASS
NAME "Test"
EXPRESSION ( "[myColumn2]" eq "1" )
END
END
This configu
Adrian Popa wrote:
Thanks, Andreas,
I've tried your solution (and already looked over the manual) but it
still doesn't match anything...
Also - EXPRESSION ("[myColumn]" =~ /MYREGEXP/i) doesn't match anything
and EXPRESSION "[myColumn]" =~ /MYREGEXP/i complains of a syntax error.
Adrian,
= FOSS4G Abstracts announced + Early Bird registration looming =
Sydney, Australia. 20 July 2009. http://2009.foss4g.org
== Abstracts Announced ==
A comprehensive list of presentations has been announced for the
international Free and Open Source Software for Geospatial conference,
in Sydney,
Thanks for the report, not unexpected I think... Steve
>>> On 7/21/2009 at 3:32 AM, in message <4a657d19.9050...@romtelecom.ro>, Adrian
Popa wrote:
> Just for reference:
>
> I tried to select about 130 items using a regular expression in the form
> of EXPRESSION (/^ITEM1|ITEM2|ITEM3|...|ITEM130