Implementation of the DataStore service provider interface for Shapefiles.
The specific implementation of ShapefileDataStore created by this class is not specified. For
more information on the connection parameters please review the following public Param constants.
canProcess(Map params) Takes a map of parameters which describes how to access a DataStore
and determines if it can be read by the ShapefileDataStore or IndexedShapefileDataStore
implementations.
Parameters: params - A map of parameters describing the location of a datastore.Files should be pointed to by a 'url' param.
toFilename(URL url) Convert a URL to a String that is suitable for manipulation of its
extension (generally the last three characters of the file).
This uses URL.toExternalForm() in order to preserve valuable
information about the URL's Authority.
Parameters: url - the url to convert to a String.
Takes a map of parameters which describes how to access a DataStore
and determines if it can be read by the ShapefileDataStore or IndexedShapefileDataStore
implementations.
Parameters: params - A map of parameters describing the location of a datastore.Files should be pointed to by a 'url' param. true iff params contains a url param which points to a fileending in shp
Returns an instance of DataStore iff the resource pointed to the
Map of paramers can be handled as a shapefile.
The specific implementation of ShapefileDataStore returned is not specified,
and depends on the parameters given. For more information please review the
public static Param instances available for this class.
URLP
NAMESPACEP
CREATE_SPATIAL_INDEX
MEMORY_MAPPED
DBFCHARSET
Parameters: params - A param list with information on the location of arestore. For shapefiles this should contain a 'url' param whichpoints to a file which ends in shp. DataStore A ShapefileDatastore throws: IOException - If a connection error (such as the file not existing occurs) throws: DataSourceException - Thrown if the datastore which is createdcannot be attached to the restore specified in params.
We may need to create a new datastore if the provided file does not exist.
See Also: org.geotools.data.dir.FileDataStoreFactorySpi.createDataStore(java.net.URL)
Will create the correct implementation of ShapefileDataStore for the provided
parameters.
Parameters: params - Map of parameters throws: IOException - If the specified shapefle could not be accessed throws: UnsupportedOperationException -
Creates a new DataStore - for a file that does not exist yet.
This method has different logic than createDataStore. It is willing
to be memory mapped, and generate an index for a local file that
does not exist yet.
Will create a new shapefile baed on the provided parameters.
Parameters: params - Map of parameters throws: IOException - If the filename is not valid. throws: UnsupportedOperationException -
Describes the type of data the datastore returned by this factory works
with.
String a human readable description of the type of restoresupported by this datastore.
Returns the implementation hints. The default implementation returns an
empty map.
When we have FeatureFactory, GeometryFactory and so on hooked up this
map will return Hints we paid attention too when we were constructed.
An empty map.
Test to see if this datastore is available, if it has all the
appropriate libraries to construct a datastore.
This datastore just checks for the ShapefileDataStore, IndexedShapefileDataStore
and Geometry implementations.
true if and only if this factory is available to createDataStores.
Convert a URL to a String that is suitable for manipulation of its
extension (generally the last three characters of the file).
This uses URL.toExternalForm() in order to preserve valuable
information about the URL's Authority.
Parameters: url - the url to convert to a String. Must not be null. a String representation of the URL throws: MalformedURLException - if the url is invalid