Class HsqlEpsgDatabase
Object
HsqlEpsgDatabase
This utility class knows everything there is to know about the care and feeding of our pet EPSG database. This
utility class is used to hold logic previously associated with our own custom DataSource.
The EPSG database can be downloaded from http://www.epsg.org. The SQL scripts (modified for the HSQL syntax as explained here) are bundled into this plugin. The database version is given in the edition attribute of the authority. The HSQL database is read only.
- Since:
- 2.4
- Author:
- Jody Garnett
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The database name.static final String
The key for fetching the database directory from system properties. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DataSource
Creates a DataSource that is set up and ready to go.static DataSource
createDataSource
(File directory) static DataSource
createDataSource
(Hints hints)
-
Field Details
-
DIRECTORY_KEY
The key for fetching the database directory from system properties.- See Also:
-
DATABASE_NAME
The database name.- See Also:
-
-
Constructor Details
-
HsqlEpsgDatabase
public HsqlEpsgDatabase()
-
-
Method Details
-
createDataSource
Creates a DataSource that is set up and ready to go.This method pays attention to the system property "EPSG-HSQL.directory" and makes use of the default database name "EPSG".
- Throws:
SQLException
-
createDataSource
- Throws:
FactoryException
-
createDataSource
- Throws:
SQLException
-