Package org.geotools.referencing.factory.epsg
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:
org.opengis.referencing.crs.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 org.geotools.factory.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 |
-
Class Summary Class Description AbstractEpsgFactory A coordinate reference system factory backed by the EPSG database tables.AccessDialectEpsgFactory This factory uses the MS-Access dialect of SQL.AnsiDialectEpsgFactory An EPSG factory for the database generated by SQL scripts rather than the MS-Access one.AuthorityCodes A set of EPSG authority codes.CartesianAuthorityFactory A factory providing a EPSG code for a cartesian engineering systemsCoordinateOperationFactoryUsingWKT Authority factory that holds user-defined Coordinate Operations.DirectEpsgFactory A coordinate reference system factory backed by the EPSG database tables.FactoryUsingAnsiSQL An EPSG factory for the database generated by SQL scripts rather than the MS-Access one.FactoryUsingSQL Please useAccessDialectEpsgFactory
.FactoryUsingWKT Authority factory for Coordinate Reference Systems beyong the one defined in the EPSG database.LongitudeFirstEpsgDecorator An EPSG authority factory using (longitude, latitude) axis order.LongitudeFirstFactory An EPSG authority factory using (longitude, latitude) axis order.ThreadedEpsgFactory Base class for EPSG factories to be registered inReferencingFactoryFinder
.