Hi,
I believe the correct expression would be: ^[A|D]*
Here is a site where you can test your regular expressions. It has been
really handy for me.
http://myregexp.com/
Hope it helps !
Ricardo
2011/2/3 Edward Mac Gillavry <[email protected]>
> 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: [email protected]
> > To: [email protected]
> > CC: [email protected]
>
> >
> > 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
> > > [email protected]
> > > 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world?
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users