Bart,
Thanks for pointing me into the right direction! Got the regex A\D* working to
pick up any road names that start with an "A"
For some reason though, the expression A\d* doesn't seem to pick up any road
numbers, e.g. "A2" or "A59"...
<ogc:PropertyIsEqualTo>
<ogc:Function name="strMatches">
<ogc:PropertyName>openbareruimtenaam</ogc:PropertyName>
<ogc:Literal>A\d*</ogc:Literal>
</ogc:Function>
<ogc:Literal>true</ogc:Literal>
</ogc:PropertyIsEqualTo>
Any thoughts?
Edward
> Date: Thu, 3 Feb 2011 10:01:04 +0100
> Subject: Re: [Geoserver-users] How to filter road numbers in SLD using
> propertyislike?
> From: bart...@osgis.nl
> To: emacgilla...@hotmail.com
> CC: geoserver-users@lists.sourceforge.net
>
> Hi Edward,
>
> I am not sure if you can use a regex directly in a PropertyIsLike, did you
> try using the String function strMatches in a Filter?
>
> http://docs.geoserver.org/stable/en/user/filter/function_reference.html
>
> Best regards,
> Bart
>
> >
> > Hi all,
> >
> > The data set I am currently dealing with contains both road numbers and
> > road names in the same database field. Fortunately, the structure of road
> > numbers is easy enough to filter them out? I would use the following regex
> > "A\d+" to pick up A2,A35,A252
> >
> > However the following SLD filter doesn't seem to pick out the road
> > numbers:
> >
> > <ogc:PropertyIsLike wildCard="*" singleChar="." escapeChar="!">
> >
> > <ogc:PropertyName>openbareruimtenaam</ogc:PropertyName>
> >
> > <ogc:Literal>A\d+</ogc:Literal>
> >
> > </ogc:PropertyIsLike>
> >
> > Should I be looking into CQL instead or is there even a more obvious
> > approach? Many thanks in advance.
> >
> > Edward
> >
> >
> >
> > ------------------------------------------------------------------------------
> > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> > Finally, a world-class log management solution at an even better
> > price-free!
> > Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> > February 28th, so secure your free ArcSight Logger TODAY!
> > http://p.sf.net/sfu/arcsight-sfd2d_______________________________________________
> > Geoserver-users mailing list
> > Geoserver-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/geoserver-users
> >
>
>
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users