|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.data.shapefile.indexed.IndexedShapefileDataStoreFactory
Implementation of the DataStore service provider interface for Shapefiles.
Nested Class Summary |
Nested classes inherited from class org.geotools.data.DataStoreFactorySpi |
DataStoreFactorySpi.Param |
Field Summary | |
static DataStoreFactorySpi.Param |
CREATE_SPATIAL_INDEX
|
static DataStoreFactorySpi.Param |
MEMORY_MAPPED
|
static DataStoreFactorySpi.Param |
NAMESPACEP
|
static DataStoreFactorySpi.Param |
SPATIAL_INDEX_TYPE
|
static java.lang.Byte |
TREE_GRX
|
static java.lang.Byte |
TREE_NONE
|
static java.lang.Byte |
TREE_QIX
|
static DataStoreFactorySpi.Param |
URLP
|
Constructor Summary | |
IndexedShapefileDataStoreFactory()
|
Method Summary | |
boolean |
canProcess(java.util.Map params)
Takes a list of params which describes how to access a restore and determins if it can be read by the Shapefile Datastore. |
boolean |
canProcess(java.net.URL f)
DOCUMENT ME! |
DataStore |
createDataStore(java.util.Map params)
Returns an instance of a ShapeFileDataStore iff the restore pointed to by params actualy is a Shapefile. |
DataStore |
createDataStore(java.net.URL url)
DOCUMENT ME! |
DataStore |
createDataStore(java.net.URL url,
boolean memorymapped)
|
DataStore |
createNewDataStore(java.util.Map params)
Not implemented yet. |
java.lang.String |
getDescription()
Describes the type of data the datastore returned by this factory works with. |
java.lang.String |
getDisplayName()
Name suitable for display to end user. |
java.lang.String[] |
getFileExtensions()
DOCUMENT ME! |
java.util.Map |
getImplementationHints()
Returns the implementation hints. |
DataStoreFactorySpi.Param[] |
getParametersInfo()
Describe parameters. |
java.lang.String |
getTypeName(java.net.URL url)
DOCUMENT ME! |
boolean |
isAvailable()
Test to see if this datastore is available, if it has all the appropriate libraries to construct a datastore. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.Byte TREE_NONE
public static final java.lang.Byte TREE_GRX
public static final java.lang.Byte TREE_QIX
public static final DataStoreFactorySpi.Param NAMESPACEP
public static final DataStoreFactorySpi.Param URLP
public static final DataStoreFactorySpi.Param MEMORY_MAPPED
public static final DataStoreFactorySpi.Param CREATE_SPATIAL_INDEX
public static final DataStoreFactorySpi.Param SPATIAL_INDEX_TYPE
Constructor Detail |
public IndexedShapefileDataStoreFactory()
Method Detail |
public boolean canProcess(java.util.Map params)
canProcess
in interface DataStoreFactorySpi
params
- A set of params describing the location of a restore.
Files should be pointed to by a 'url' param.
public DataStore createDataStore(java.util.Map params) throws java.io.IOException
createDataStore
in interface DataStoreFactorySpi
params
- A param list with information on the location of a
restore. For shapefiles this should contain a 'url' param which
points to a file which ends in shp.
java.io.IOException
- DOCUMENT ME!public DataStore createNewDataStore(java.util.Map params) throws java.io.IOException
createNewDataStore
in interface DataStoreFactorySpi
params
-
java.io.IOException
- DOCUMENT ME!
DataSourceException
public java.lang.String getDisplayName()
DataStoreFactorySpi
A non localized display name for this data store type.
getDisplayName
in interface DataStoreFactorySpi
public java.lang.String getDescription()
getDescription
in interface DataStoreFactorySpi
public boolean isAvailable()
isAvailable
in interface DataStoreFactorySpi
public DataStoreFactorySpi.Param[] getParametersInfo()
getParametersInfo
in interface DataStoreFactorySpi
DataStoreFactorySpi.getParametersInfo()
public java.lang.String[] getFileExtensions()
FileDataStoreFactorySpi
getFileExtensions
in interface FileDataStoreFactorySpi
org.geotools.data.dir.FileDataStoreFactorySpi#getFileExtensions()
public boolean canProcess(java.net.URL f)
FileDataStoreFactorySpi
canProcess
in interface FileDataStoreFactorySpi
f
- URL a url to a real file (may not be local)
org.geotools.data.dir.FileDataStoreFactorySpi#canProcess(java.net.URL)
public DataStore createDataStore(java.net.URL url) throws java.io.IOException
FileDataStoreFactorySpi
createDataStore
in interface FileDataStoreFactorySpi
url
- A URL to the data location for the single featureType of this
DataStore
java.io.IOException
org.geotools.data.dir.FileDataStoreFactorySpi#createDataStore(java.net.URL)
public DataStore createDataStore(java.net.URL url, boolean memorymapped) throws java.io.IOException
java.io.IOException
org.geotools.data.dir.FileDataStoreFactorySpi#createDataStore(java.net.URL)
public java.lang.String getTypeName(java.net.URL url) throws java.io.IOException
FileDataStoreFactorySpi
getTypeName
in interface FileDataStoreFactorySpi
url
- The location of the datum to parse into features
java.io.IOException
org.geotools.data.dir.FileDataStoreFactorySpi#getTypeName(java.net.URL)
public java.util.Map getImplementationHints()
getImplementationHints
in interface Factory
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |