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 $
  • Field Details

  • Constructor Details

    • ShapefileDirectoryFactory

      public ShapefileDirectoryFactory()
  • Method Details

    • 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 interface DataAccessFactory
      Overrides:
      getDisplayName in class ShapefileDataStoreFactory
      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 interface DataAccessFactory
      Overrides:
      getDescription in class ShapefileDataStoreFactory
      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 interface DataAccessFactory
      Overrides:
      canProcess in class ShapefileDataStoreFactory
      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.