Issue Type: Improvement Improvement
Affects Versions: 8.0-RC1
Assignee: Unassigned
Created: 24/May/12 9:05 PM
Description:

The time devoted to explaining the method for encoding / decoding a feature from a String is a bit off topic; and now that we have two PropertyDataStore implementations I am going to refactor this common functionality out.

DataUtilities already has the following methods to support PropertyDataStore:

  • DataUtilities.createType( String, String )
  • DataUtilities.createType( String, String, String )
  • DataUtilities.spec( FeatureType )

The goal is to end up with:

  • DataUtilities.createType( String, String )
  • DataUtilities.createType( String, String, String )
  • DataUtilities.encodeType( SimpleFeatureType )
  • DataUtilities.createFeature( SimpleFeatureType, String )
  • DataUtilities.encodeFeature( SimpleFeature )

To review the format we are going for is:

SimpleFeatureType featureType = DataUtilities.createType("FLAG","id:Integer|name:String|geom:Geometry:4326");
SimpleFeature feature =  DataUtilities.createFeature( featureType, "fid1=1|Jody Garnett\\nSteering Committee|POINT(1,2)" );
Project: GeoTools
Priority: Major Major
Reporter: Jody Garnett
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
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

Reply via email to