Creating features with a restriction always fails
-------------------------------------------------
Key: GEOT-1510
URL: http://jira.codehaus.org/browse/GEOT-1510
Project: GeoTools
Issue Type: Bug
Components: core feature
Affects Versions: 2.5-M0
Reporter: Jesse Eichar
Assignee: Justin Deoliveira
Priority: Critical
Fix For: 2.4-RC1
Here's an unit test for this case:
public void testCreateFeatureWithRestriction() throws Exception {
FilterFactory
fac=CommonFactoryFinder.getFilterFactory(GeoTools.getDefaultHints());
String attributeName = "string";
PropertyIsEqualTo filter =
fac.equals(fac.property(attributeName), fac.literal("Value"));
SimpleFeatureTypeBuilder builder=new
SimpleFeatureTypeBuilder(); //$NON-NLS-1$
builder.setName("test");
builder.restriction(filter).add(attributeName, String.class);
SimpleFeatureType featureType = builder.buildFeatureType();
SimpleFeature feature = SimpleFeatureBuilder.build( featureType, new
Object[]{"Value"}, "ID" );
assertNotNull(feature);
}
--
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
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel