public class GeoJSONDataStore extends ContentDataStore implements FileDataStore
dataStoreFactory, entries, featureFactory, filterFactory, geometryFactory, JOINED_FEATURE_TYPE, lockingManager, LOGGER, namespaceURI, typeFactory, WRITER_ADD, WRITER_COMMIT, WRITER_UPDATE| Constructor and Description |
|---|
GeoJSONDataStore(File f) |
GeoJSONDataStore(URL url) |
createContentState, dispose, ensureEntry, ensureFeatureStore, entry, getDataStoreFactory, getEntry, getFeatureFactory, getFeatureReader, getFeatureSource, getFeatureSource, getFeatureSource, getFeatureSource, getFeatureTypeFactory, getFeatureWriter, getFeatureWriter, getFeatureWriterAppend, getFilterFactory, getGeometryFactory, getInfo, getLockingManager, getLogger, getNames, getNamespaceURI, getSchema, getSchema, getTypeNames, name, removeEntry, removeSchema, removeSchema, setDataStoreFactory, setFeatureFactory, setFeatureTypeFactory, setFilterFactory, setGeometryFactory, setNamespaceURI, updateSchema, updateSchemaclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFeatureReader, getFeatureSource, getFeatureSource, getFeatureWriter, getFeatureWriter, getFeatureWriterAppend, getLockingManager, getSchema, getTypeNames, removeSchema, updateSchemadispose, getInfo, getNames, getSchema, removeSchema, updateSchemapublic GeoJSONDataStore(URL url)
public GeoJSONDataStore(File f)
protected ContentFeatureSource createFeatureSource(ContentEntry entry) throws IOException
ContentDataStoreSubclasses should override this method to return a specific subclass of ContentFeatureSource.
createFeatureSource in class ContentDataStoreentry - The entry.ContentFeatureSource for the entry.IOExceptionprotected List<Name> createTypeNames() throws IOException
ContentDataStoreNamespaces may be left null for data stores which do not support namespace
qualified type names.
createTypeNames in class ContentDataStoreName.IOException - Any errors occuring connecting to data.public void createSchema(SimpleFeatureType featureType) throws IOException
ContentDataStoreThis implementation throws aUnsupportedOperationException. Subclasses should
override to support schema creation.
createSchema in interface DataAccess<SimpleFeatureType,SimpleFeature>createSchema in class ContentDataStorefeatureType - FetureType to add to DataStoreIOException - If featureType cannot be createdDataAccess.createSchema(FeatureType)public SimpleFeatureType getSchema() throws IOException
FileDataStoreThis is the same as getSchema( getTypeName[0] )
getSchema in interface FileDataStoreIOExceptionDataStore.getSchema(java.lang.String)public void updateSchema(SimpleFeatureType featureType) throws IOException
updateSchema in interface FileDataStoreIOExceptionDataStore.updateSchema(java.lang.String,SimpleFeatureType)public CoordinateReferenceSystem getCrs()
public void setCrs(CoordinateReferenceSystem crs)
crs - the crs to setpublic URL getUrl()
public void setUrl(URL url)
public SimpleFeatureSource getFeatureSource() throws IOException
getFeatureSource in interface FileDataStoreIOExceptionDataStore.getFeatureSource(java.lang.String)public FeatureReader<SimpleFeatureType,SimpleFeature> getFeatureReader() throws IOException
getFeatureReader in interface FileDataStoreIOExceptionorg.geotools.data.DataStore#getFeatureReader(java.lang.String)public FeatureWriter<SimpleFeatureType,SimpleFeature> getFeatureWriter(Filter filter, Transaction transaction) throws IOException
getFeatureWriter in interface FileDataStoreIOExceptionorg.geotools.data.DataStore#getFeatureWriter(Filter,Transaction)public FeatureWriter<SimpleFeatureType,SimpleFeature> getFeatureWriter(Transaction transaction) throws IOException
getFeatureWriter in interface FileDataStoreIOExceptionDataStore.getFeatureWriter(java.lang.String,
org.geotools.data.Transaction)public FeatureWriter<SimpleFeatureType,SimpleFeature> getFeatureWriterAppend(Transaction transaction) throws IOException
getFeatureWriterAppend in interface FileDataStoreIOExceptionDataStore.getFeatureWriterAppend(java.lang.String,
org.geotools.data.Transaction)public Name getTypeName()
public void setWriteBounds(boolean booleanValue)
booleanValue - public boolean isWriteBounds()
public void setQuickSchema(boolean booleanValue)
booleanValue - public boolean isQuick()
public ReferencedEnvelope getBbox()
public void setBbox(ReferencedEnvelope bbox)
Copyright © 1996–2021 Geotools. All rights reserved.