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 StringName of theDEFAULT_CRSparameter.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_PARAMFields inherited from class org.apache.sis.storage.DataStoreProvider
CREATE, LOCATION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.opengis.parameter.ParameterDescriptorGroupbuild(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, isWritableMethods inherited from class org.apache.sis.storage.DataStoreProvider
getFormat, getLogger, getShortName, getSupportedVersions, open, probeContent, probeContent
-
Field Details
-
CRS_NAME
Name of theDEFAULT_CRSparameter.- 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_PARAMandDEFAULT_CRS. Subclasses can override if they need to create a group with more parameters.- Overrides:
buildin 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:
openin 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:
-