@Override public void removeSchema(String name) throws IOException { getDataStore(name).removeSchema(name); } }
public SimpleFeatureSource getFeatureSource(Name typeName) throws IOException { return getFeatureSource(typeName.getLocalPart()); }
public SimpleFeatureType getSchema(Name name) throws IOException { return getSchema(name.getLocalPart()); }
new DirectoryDataStore( mosaic.getFile(), new ShapefileDataStoreFactory.ShpFileStoreFactory( dir.createSchema(typeBuilder.buildFeatureType()); dir.getFeatureWriterAppend(mosaic.getName(), Transaction.AUTO_COMMIT); dir.dispose();
return new DirectoryDataStore( URLs.urlToFile(url), new ShpFileStoreFactory(this, params)); } else {
public List<Name> getNames() throws IOException { String[] typeNames = getTypeNames(); List<Name> names = new ArrayList<Name>(typeNames.length); for (String typeName : typeNames) { names.add(new NameImpl(typeName)); } return names; }
public void updateSchema(Name typeName, SimpleFeatureType featureType) throws IOException { updateSchema(typeName.getLocalPart(), featureType); }
DirectoryDataStore dir = new DirectoryDataStore(mosaic.getFile(), new ShapefileDataStoreFactory.ShpFileStoreFactory(shpFactory, new HashMap())); dir.createSchema(typeBuilder.buildFeatureType()); dir.getFeatureWriterAppend(mosaic.getName(), Transaction.AUTO_COMMIT); dir.dispose();
public DataStore createDataStore(Map<String, Serializable> params) throws IOException { if (!canProcess(params)) { throw new IOException("Invalid parameters for DirectoryDataStore"); } URL url = (URL) URLP.lookUp(params); File f = DataUtilities.urlToFile(url); if (!f.isDirectory()) { throw new IOException("Invalid parameter " + URLP.key + " : is not a valid directory"); } URI namespace = (URI) NAMESPACE.lookUp(params); return new DirectoryDataStore(f, namespace); }
public List<Name> getNames() throws IOException { String[] typeNames = getTypeNames(); List<Name> names = new ArrayList<Name>(typeNames.length); for (String typeName : typeNames) { names.add(new NameImpl(typeName)); } return names; }
public void updateSchema(Name typeName, SimpleFeatureType featureType) throws IOException { updateSchema(typeName.getLocalPart(), featureType); }
public FeatureWriter<SimpleFeatureType, SimpleFeature> getFeatureWriter( String typeName, Filter filter, Transaction transaction) throws IOException { return getDataStore(typeName).getFeatureWriter(typeName, filter, transaction); }
return new DirectoryDataStore(DataUtilities.urlToFile(url), new ShpFileStoreFactory(this, params)); } else { ShpFiles shpFiles = new ShpFiles(url);
public List<Name> getNames() throws IOException { String[] typeNames = getTypeNames(); List<Name> names = new ArrayList<Name>(typeNames.length); for (String typeName : typeNames) { names.add(new NameImpl(typeName)); } return names; }
public SimpleFeatureType getSchema(Name name) throws IOException { return getSchema(name.getLocalPart()); }
public void updateSchema(Name typeName, SimpleFeatureType featureType) throws IOException { updateSchema(typeName.getLocalPart(), featureType); }
public SimpleFeatureSource getFeatureSource( Name typeName) throws IOException { return getFeatureSource(typeName.getLocalPart()); }
public FeatureWriter<SimpleFeatureType, SimpleFeature> getFeatureWriter( String typeName, Transaction transaction) throws IOException { return getDataStore(typeName).getFeatureWriter(typeName, transaction); }
return new DirectoryDataStore(DataUtilities.urlToFile(url), new ShpFileStoreFactory(this, params)); } else { ShpFiles shpFiles = new ShpFiles(url);
public SimpleFeatureType getSchema(Name name) throws IOException { return getSchema(name.getLocalPart()); }