public class HsqlEpsgDatabase extends Object
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.
Modifier and Type | Field and Description |
---|---|
static String |
DATABASE_NAME
The database name.
|
static String |
DIRECTORY_KEY
The key for fetching the database directory from system properties.
|
Constructor and Description |
---|
HsqlEpsgDatabase() |
Modifier and Type | Method and Description |
---|---|
static DataSource |
createDataSource()
Creates a DataSource that is set up and ready to go.
|
static DataSource |
createDataSource(File directory) |
static DataSource |
createDataSource(Hints hints) |
public static final String DIRECTORY_KEY
public static final String DATABASE_NAME
public static DataSource createDataSource() throws SQLException
This method pays attention to the system property "EPSG-HSQL.directory" and makes use of the default database name "EPSG".
SQLException
public static DataSource createDataSource(Hints hints) throws FactoryException
FactoryException
public static DataSource createDataSource(File directory) throws SQLException
SQLException
Copyright © 1996–2023 Geotools. All rights reserved.