Package org.geotools.data.shapefile
Class ShapefileDirectoryFactory
Object
ShapefileDataStoreFactory
ShapefileDirectoryFactory
- All Implemented Interfaces:
DataAccessFactory,DataStoreFactorySpi,FileDataStoreFactorySpi,Factory
Creates a directory datastore pointing to a directory of shapefiles
- Author:
- Andrea Aime main/java/org/geotools/data/dir/DirectoryDataStoreFactory.java $
-
Nested Class Summary
Nested classes/interfaces inherited from class ShapefileDataStoreFactory
ShapefileDataStoreFactory.ShpFileStoreFactoryNested classes/interfaces inherited from interface DataAccessFactory
DataAccessFactory.Param -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DataAccessFactory.ParamThe directory to be scanned for file data storesFields inherited from class ShapefileDataStoreFactory
CACHE_MEMORY_MAPS, CREATE_SPATIAL_INDEX, DBFCHARSET, DBFTIMEZONE, ENABLE_CPG_SWITCH, ENABLE_SPATIAL_INDEX, FILE_TYPE, FSTYPE, MEMORY_MAPPED, NAMESPACEP, SKIP_SCAN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanProcess(Map<String, ?> params) Test to see if this factory is suitable for processing the data pointed to by the params map.Describe the nature of the datasource constructed by this factory.Name suitable for display to end user.Methods inherited from class ShapefileDataStoreFactory
canProcess, createDataStore, createDataStore, createNewDataStore, getFileExtensions, getImplementationHints, getParametersInfo, getTypeName, isAvailable
-
Field Details
-
URLP
The directory to be scanned for file data stores
-
-
Constructor Details
-
ShapefileDirectoryFactory
public ShapefileDirectoryFactory()
-
-
Method Details
-
getDisplayName
Description copied from interface:DataAccessFactoryName suitable for display to end user.A non localized display name for this data store type.
- Specified by:
getDisplayNamein interfaceDataAccessFactory- Overrides:
getDisplayNamein classShapefileDataStoreFactory- Returns:
- A short name suitable for display in a user interface.
-
getDescription
Description copied from interface:DataAccessFactoryDescribe the nature of the datasource constructed by this factory.A non localized description of this data store type.
- Specified by:
getDescriptionin interfaceDataAccessFactory- Overrides:
getDescriptionin classShapefileDataStoreFactory- Returns:
- A human readable description that is suitable for inclusion in a list of available datasources.
-
canProcess
Description copied from interface:DataAccessFactoryTest to see if this factory is suitable for processing the data pointed to by the params map.If this datasource requires a number of parameters then this mehtod should check that they are all present and that they are all valid. If the datasource is a file reading data source then the extentions or mime types of any files specified should be checked. For example, a Shapefile datasource should check that the url param ends with shp, such tests should be case insensative.
- Specified by:
canProcessin interfaceDataAccessFactory- Overrides:
canProcessin classShapefileDataStoreFactory- Parameters:
params- The full set of information needed to construct a live data source.- Returns:
- booean true if and only if this factory can process the resource indicated by the param set and all the required params are pressent.
-