Okay here is something I should of done ages ago; after noticing how much
easier it was to write/maintain test cases with CQL.
https://jira.codehaus.org/browse/GEOT-4150 DataUtilities createFeature and
encodeFeature methods from PropertyDataStore
Code example:
SimpleFeatureType featureType =
DataUtilities.createType("Contact","id:Integer,party:String,geom:Geometry:srid=4326");
SimpleFeature feature1 = DataUtilities.createFeature( featureType,
"fid1=1|Jody Garnett\\nSteering Committee|POINT (1 2)" );
SimpleFeature feature2 = DataUtilities.createFeature( featureType, "2|John
Hudson\\|Hapless Victim|POINT (6 2)" );
String spec = DataUtilities.encodeType(featureType);
String text = DataUtilities.encodeFeature(feature1);
Enough said.
--
Jody Garnett
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel