Encode PropertyIsLike filter 'matchcase' is ignored
---------------------------------------------------
Key: GEOT-2603
URL: http://jira.codehaus.org/browse/GEOT-2603
Project: GeoTools
Issue Type: Bug
Components: core xml
Affects Versions: 2.5.5
Reporter: Roy Braam
When you encode a propertyIsLike filter with matchcase = false the matchcase is
ignored in encoding:
FilterFactory2 ff =
CommonFactoryFinder.getFilterFactory2(GeoTools.getDefaultHints());
ByteArrayOutputStream baos = new ByteArrayOutputStream();
org.geotools.xml.Configuration configuration2 = new OGCConfiguration();
org.geotools.xml.Encoder encoder = new
org.geotools.xml.Encoder(configuration2);
//make like filter
Filter likefilter = ff.like(ff.property("test"), "tEst1","*", "?",
"/",false);
//encode
encoder.encode(likefilter, org.geotools.filter.v1_1.OGC.Filter, baos);
String s = baos.toString();
System.out.println("Propertyislike matchcase=false filter: /n" + s);
Result:
Propertyislike matchcase=false filter:<?xml version="1.0" encoding="UTF-8"?>
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc"
xmlns:gml="http://www.opengis.net/gml"><ogc:PropertyIsLike escapeChar="/"
singleChar="?"
wildCard="*"><ogc:PropertyName>test</ogc:PropertyName><ogc:Literal>tEst1</ogc:Literal></ogc:PropertyIsLike></ogc:Filter>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel