Re: [mapserver-users] Performance in regular expressions or analternative way to select a list of features

2009-07-21 Thread Adrian Popa
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,.

[mapserver-users] Problems when using complex expressions

2009-07-21 Thread Adrian Popa
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

Re: [mapserver-users] Problems when using complex expressions

2009-07-21 Thread Andreas Albarello
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

Re: [mapserver-users] Problems when using complex expressions

2009-07-21 Thread Adrian Popa
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

Re: [mapserver-users] Problems when using complex expressions

2009-07-21 Thread Adrian Popa
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

Re: [mapserver-users] Problems when using complex expressions

2009-07-21 Thread Andreas Albarello
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,

[mapserver-users] FOSS4G Abstracts announced + Early Bird registration looming

2009-07-21 Thread Steve Lime
= 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,

Re: [mapserver-users] Performance in regular expressions or analternativeway to select a list of features

2009-07-21 Thread Steve Lime
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