Package org.apache.sis.internal.storage
Class PRJDataStore.Provider
java.lang.Object
org.apache.sis.storage.DataStoreProvider
org.apache.sis.internal.storage.URIDataStore.Provider
org.apache.sis.internal.storage.PRJDataStore.Provider
- Direct Known Subclasses:
AsciiGridStoreProvider
,RawRasterStoreProvider
,WorldFileStoreProvider
- Enclosing class:
- PRJDataStore
Provider for
PRJDataStore
instances.- Since:
- 1.2
- Version:
- 1.2
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sis.storage.DataStoreProvider
DataStoreProvider.Prober<S>
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final String
Name of theDEFAULT_CRS
parameter.static final org.opengis.parameter.ParameterDescriptor<org.opengis.referencing.crs.CoordinateReferenceSystem>
Description of the optional parameter for the default coordinate reference system.Fields inherited from class org.apache.sis.internal.storage.URIDataStore.Provider
CREATE_PARAM, ENCODING, LOCATION_PARAM
Fields inherited from class org.apache.sis.storage.DataStoreProvider
CREATE, LOCATION
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.opengis.parameter.ParameterDescriptorGroup
build
(ParameterBuilder builder) Invoked byURIDataStore.Provider.getOpenParameters()
the first time that a parameter descriptor needs to be created.open
(org.opengis.parameter.ParameterValueGroup parameters) Returns a data store implementation from the given parameters.Methods inherited from class org.apache.sis.internal.storage.URIDataStore.Provider
connector, descriptor, getOpenParameters, isWritable
Methods inherited from class org.apache.sis.storage.DataStoreProvider
getFormat, getLogger, getShortName, getSupportedVersions, open, probeContent, probeContent
-
Field Details
-
CRS_NAME
Name of theDEFAULT_CRS
parameter.- See Also:
-
DEFAULT_CRS
public static final org.opengis.parameter.ParameterDescriptor<org.opengis.referencing.crs.CoordinateReferenceSystem> DEFAULT_CRSDescription of the optional parameter for the default coordinate reference system.
-
-
Constructor Details
-
Provider
protected Provider()Creates a new provider.
-
-
Method Details
-
build
Invoked byURIDataStore.Provider.getOpenParameters()
the first time that a parameter descriptor needs to be created. When invoked, the parameter group name is set to a name derived from theDataStoreProvider.getShortName()
value. The default implementation creates a group containingURIDataStore.Provider.LOCATION_PARAM
andDEFAULT_CRS
. Subclasses can override if they need to create a group with more parameters.- Overrides:
build
in classURIDataStore.Provider
- Parameters:
builder
- the builder to use for creating parameter descriptor. The group name is already set.- Returns:
- the parameters descriptor created from the given builder.
-
open
public DataStore open(org.opengis.parameter.ParameterValueGroup parameters) throws DataStoreException Returns a data store implementation from the given parameters.- Overrides:
open
in classDataStoreProvider
- Parameters:
parameters
- opening parameters as defined byDataStoreProvider.getOpenParameters()
.- Returns:
- a data store implementation associated with this provider for the given parameters.
- Throws:
DataStoreException
- if an error occurred while creating the data store instance.- See Also:
-