I have a featureCollection and I want to save it into PostGIS dataStore. So I'm going to create a database table by geotools. I want to name my table "ali". But I can't rename the schema!
DataStore dataStore = DataStoreFinder.getDataStore(params);SimpleFeatureCollection collection=...;SimpleFeatureType schema = collection.getSchema();SimpleFeatureType schema2 = DataUtilities.createSubType(schema,null,null,"ali",null);dataStore.createSchema(schema2); // but it creates with name "polygon"How can I rename the schema to create a table with my desired name?
أكثر...
DataStore dataStore = DataStoreFinder.getDataStore(params);SimpleFeatureCollection collection=...;SimpleFeatureType schema = collection.getSchema();SimpleFeatureType schema2 = DataUtilities.createSubType(schema,null,null,"ali",null);dataStore.createSchema(schema2); // but it creates with name "polygon"How can I rename the schema to create a table with my desired name?
أكثر...