Skip navigation links

Package org.geotools.referencing.factory.epsg

Authority factories for the EPSG database.

See: Description

Package org.geotools.referencing.factory.epsg Description

Authority factories for the EPSG database.

EPSG codes are numerical identifiers. For example "4326" is the EPSG identifier for the "WGS 84" geographic CRS. However, the default implementation accepts names as well as numeric identifiers. For example "NTF (Paris) / France I" and "27581" both fetchs the same object. Note that names may be ambiguous since the same name may be used for more than one object. This is the case of "WGS 84" for example. If such an ambiguity is found, an exception will be thrown.

An EPSG authority factory is created using the following code:

CRSAuthorityFactory factory = ReferencingFactoryFinder.getCRSAuthorityFactory("EPSG", null);

This package provides the general framework for accessing an EPSG database, but the actual connection to a database requires the existence of an EPSG plugin in the classpath. Otherwise, a FactoryNotFoundException will be thrown. Available plugins are:

Required software Data source Plugin / JAR file Additional notes
MS-Access ODBC driver org.geotools.referencing.factory.epsg.FactoryOnAccess epsg-access See installation instructions
HSQL embedded database org.geotools.referencing.factory.epsg.FactoryOnHSQL epsg-hsql Note for module mainteners
PostgreSQL database org.geotools.referencing.factory.epsg.FactoryOnPostgreSQL epsg-postgresql Note for module mainteners
Skip navigation links

Copyright © 1996–2018 Geotools. All rights reserved.