Creating a Schema
Function Description
You can create a schema in the DataStore of the specified directory.
Sample Code
// establish specifics concerning the SimpleFeatureType to store String simpleFeatureTypeName = "QuickStart"; // list the attributes that constitute the feature type String attributes = "Who:String,What:java.lang.Long,When:Date,*Where:Point:srid=4326,Why:String"; // create the bare simple-feature type SimpleFeatureType simpleFeatureType = SimpleFeatureTypes.createType(simpleFeatureTypeName, attributes); dataStore.createSchema(simpleFeatureType);
Last Article: Creating a DataStore
Next Article: Inserting Data
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.