Package org.geotools.data.shapefile
Class ShapefileDirectoryFactory
- Object
-
- ShapefileDataStoreFactory
-
- ShapefileDirectoryFactory
-
- All Implemented Interfaces:
DataAccessFactory
,DataStoreFactorySpi
,FileDataStoreFactorySpi
,Factory
public class ShapefileDirectoryFactory extends ShapefileDataStoreFactory
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.ShpFileStoreFactory
-
Nested classes/interfaces inherited from interface DataAccessFactory
DataAccessFactory.Param
-
-
Field Summary
Fields Modifier and Type Field Description static DataAccessFactory.Param
URLP
The directory to be scanned for file data stores-
Fields 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 Constructor Description ShapefileDirectoryFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canProcess(Map<String,?> params)
Test to see if this factory is suitable for processing the data pointed to by the params map.String
getDescription()
Describe the nature of the datasource constructed by this factory.String
getDisplayName()
Name suitable for display to end user.-
Methods inherited from class ShapefileDataStoreFactory
canProcess, createDataStore, createDataStore, createNewDataStore, getFileExtensions, getImplementationHints, getParametersInfo, getTypeName, isAvailable
-
-
-
-
Field Detail
-
URLP
public static final DataAccessFactory.Param URLP
The directory to be scanned for file data stores
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
Description copied from interface:DataAccessFactory
Name suitable for display to end user.A non localized display name for this data store type.
- Specified by:
getDisplayName
in interfaceDataAccessFactory
- Overrides:
getDisplayName
in classShapefileDataStoreFactory
- Returns:
- A short name suitable for display in a user interface.
-
getDescription
public String getDescription()
Description copied from interface:DataAccessFactory
Describe the nature of the datasource constructed by this factory.A non localized description of this data store type.
- Specified by:
getDescription
in interfaceDataAccessFactory
- Overrides:
getDescription
in classShapefileDataStoreFactory
- Returns:
- A human readable description that is suitable for inclusion in a list of available datasources.
-
canProcess
public boolean canProcess(Map<String,?> params)
Description copied from interface:DataAccessFactory
Test 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:
canProcess
in interfaceDataAccessFactory
- Overrides:
canProcess
in 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.
-
-