Updated to Geoserver 2.1 beta1! Pardon my ignorance, but how would I 
reformulate the ECQL filter  strMatches(CFCC, 'D\d+') = true in an SLD? What to 
put between   <ogc:Filter> ...     </ogc:Filter>?

Thanks in advance.

Edward
                



> Date: Wed, 9 Feb 2011 21:42:01 +0100
> Subject: Re: [Geoserver-users] How to filter road numbers in SLD using 
> [SEC=Unclassified] propertyislike? [SEC=Unclassified]
> From: [email protected]
> To: [email protected]
> CC: [email protected]; [email protected]
> 
> On Wed, Feb 9, 2011 at 9:34 PM, Andrea Aime
> <[email protected]> wrote:
> > On Wed, Feb 9, 2011 at 8:40 PM, Edward Mac Gillavry
> > <[email protected]> wrote:
> >> Thanks Miles for pushing me on! Unfortunately, I had given that one a try
> >> already...
> >>
> >> So, my observations now:
> >> - ^A\d+ does NOT work to pick out road number like A2, A35, A235 etc : NOT
> >> OK
> >> - ^A[0-9]+ does NOT work to pick out road numbers like A2 A35, A235: NOT OK
> >> - ^A\D+ DOES work to pick out any road name starting with an A and ignores
> >> the road numbers that start with an A: OK!
> >> - ^A.+ DOES work to pick out both road names AND road numbers starting with
> >> an A: OK!
> >
> > I had a quick try with GeoServer 2.1 and using the pattern d\d+ against the
> > tiger:poly_landmarks layer (CFCC contains values such as D83, H21, and so 
> > on)
> >
> > First try was with a plain ECQL filter (it's expression = expression,
> > only ECQL will
> > parse it so it will work only on the 2.1 series):
> > strMatches(CFCC, 'D\d+') = true
> 
> Ah, forgot to add,
> strMatches(CFCC, 'D[0-9]+') = true
> works fine for me as well
> 
> Cheers
> Andrea
> 
> -- 
> -------------------------------------------------------
> Ing. Andrea Aime
> GeoSolutions S.A.S.
> Tech lead
> 
> Via Poggio alle Viti 1187
> 55054  Massarosa (LU)
> Italy
> 
> phone: +39 0584 962313
> fax:      +39 0584 962313
> mob:    +39 333 8128928
> 
> http://www.geo-solutions.it
> http://geo-solutions.blogspot.com/
> http://www.youtube.com/user/GeoSolutionsIT
> http://www.linkedin.com/in/andreaaime
> http://twitter.com/geowolf
> 
> -------------------------------------------------------
                                          
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to