public class ThreadedPostgreSQLEpsgFactory extends ThreadedEpsgFactory
| Property | Type | Description | Geotools Default |
|---|---|---|---|
serverName |
String | PostgreSQL database server host name | localhost |
databaseName |
String | PostgreSQL database name | EPSG |
schema |
String | The schema for the EPSG tables | |
portNumber |
int | TCP port which the PostgreSQL database server is listening on | 5432 |
user |
String | User used to make database connections | GeoTools |
password |
String | Password used to make database connections | GeoTools |
The database version is given in the edition attribute of the authority. The postgreSQL database should be read only.
Just having this class accessible in the classpath, together with the registration in the
META-INF/services/ directory, is sufficient to get a working EPSG authority factory
backed by this database. Vendors can create a copy of this class, modify it and bundle it with
their own distribution if they want to connect their users to an other database.
| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIGURATION_FILE
The user configuration file.
|
datasource, DATASOURCE_NAME, dynamicDataSource, PRIORITYLOGGERhints, MAXIMUM_PRIORITY, MINIMUM_PRIORITY, NORMAL_PRIORITY, priority| Constructor and Description |
|---|
ThreadedPostgreSQLEpsgFactory()
Creates a new instance of this factory.
|
ThreadedPostgreSQLEpsgFactory(Hints hints)
Creates a new instance of this factory with the specified hints.
|
| Modifier and Type | Method and Description |
|---|---|
protected AbstractAuthorityFactory |
createBackingStore(Hints hints)
Returns the backing-store factory for PostgreSQL syntax.
|
protected DataSource |
createDataSource()
Returns a data source for the PostgreSQL database.
|
canDisposeBackingStore, createBackingStore, dispose, disposeBackingStore, getAuthority, getDataSource, setDataSourceexit, getBackingStore, isAvailable, isConnected, setTimeoutcreateCartesianCS, createCompoundCRS, createCoordinateOperation, createCoordinateReferenceSystem, createCoordinateSystem, createCoordinateSystemAxis, createCylindricalCS, createDatum, createDerivedCRS, createEllipsoid, createEllipsoidalCS, createEngineeringCRS, createEngineeringDatum, createExtent, createFromCoordinateReferenceSystemCodes, createGeocentricCRS, createGeodeticDatum, createGeographicCRS, createImageCRS, createImageDatum, createObject, createOperationMethod, createParameterDescriptor, createPolarCS, createPrimeMeridian, createProjectedCRS, createSphericalCS, createTemporalCRS, createTemporalDatum, createTimeCS, createUnit, createVerticalCRS, createVerticalCS, createVerticalDatum, getAuthorityCodes, getBackingStoreDescription, getDescriptionText, getIdentifiedObjectFinder, getVendornoSuchAuthorityCode, trimAuthorityensureNonNulladdImplementationHints, equals, getImplementationHints, getPriority, hashCode, onDeregistration, onRegistration, toStringcreateCompoundCRS, createCoordinateReferenceSystem, createDerivedCRS, createEngineeringCRS, createGeocentricCRS, createGeographicCRS, createImageCRS, createProjectedCRS, createTemporalCRS, createVerticalCRScreateCartesianCS, createCoordinateSystem, createCoordinateSystemAxis, createCylindricalCS, createEllipsoidalCS, createPolarCS, createSphericalCS, createTimeCS, createUnit, createVerticalCScreateDatum, createEllipsoid, createEngineeringDatum, createGeodeticDatum, createImageDatum, createPrimeMeridian, createTemporalDatum, createVerticalDatumcreateCoordinateOperation, createFromCoordinateReferenceSystemCodescreateObject, getAuthorityCodes, getDescriptionTextgetImplementationHintspublic static final String CONFIGURATION_FILE
public ThreadedPostgreSQLEpsgFactory()
public ThreadedPostgreSQLEpsgFactory(Hints hints)
protected DataSource createDataSource() throws SQLException
createDataSource in class ThreadedEpsgFactorynull if none where found.SQLException - if an error occured while creating the data source.protected AbstractAuthorityFactory createBackingStore(Hints hints) throws SQLException
createBackingStore in class ThreadedEpsgFactoryhints - A map of hints, including the low-level factories to use for CRS creation.SQLException - if connection to the database failed.Copyright © 1996–2019 Geotools. All rights reserved.