更新时间:2021-03-18 GMT+08:00
分享

创建数据表

功能简介

在指定目录的DataStore中创建数据表。

样例代码

// 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);
分享:

    相关文档

    相关产品

关闭导读