Hi,

It may help to avoid typos  to use the PropertyIsLike filter that works with 
topp:states from this comment as a template:

http://jira.codehaus.org/browse/GEOS-6553?focusedCommentId=363026&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-363026

Notice also that matchCase is perhaps not supported. The default is anyway 
“true” meaning case sensitive match should work.

-Jukka Rahkonen-

Ian Turton wrote:

And couldn't you use the OGC PropertyIsLike function 
(http://docs.geoserver.org/stable/en/user/filter/filter_reference.html#propertyislike-operator)
  to achieve the same solution with out the over head of a second function call?

Ian

On Thu, Mar 19, 2015 at 3:11 PM emmexx 
<[email protected]<mailto:[email protected]>> wrote:
Il 03/19/2015 03:52 PM, Ville Jussila scrisse:

> I wrote in SLD:
>
> <ogc:Filter xmlns:ogc="http://www.opengis.net/ogc";>
>
> <ogc:And>
>
> <ogc:Function name="strMatches">
>
> <ogc:PropertyName>kohdenimi</ogc:PropertyName>
>
> <ogc:Literal>_viiteviiva</ogc:Literal>
>
> </ogc:Function>

The right syntax should be:

...
        <ogc:PropertyIsEqualTo>
           <ogc:Function name="strMatches">
             <ogc:PropertyName>kohdenimi</ogc:PropertyName>
             <ogc:Literal>_viiteviiva</ogc:Literal>
           </ogc:Function>
           <ogc:Literal>true</ogc:Literal>
        </ogc:PropertyIsEqualTo>
...

Andrea dixit :-)

bye
   maxx



------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Geoserver-users mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/geoserver-users
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to