public class AnsiDialectEpsgFactory extends AbstractEpsgFactory
adaptSQL(java.lang.String)
in order to translate SQL statements from MS-Access syntax to
ANSI syntax. By default, the translated SQL statements use the table and field names in the Data
Description Language (DDL) scripts provided by EPSG to create the schema for the database.
Subclasses can changes this default behavior by modifying the map
.
References:
Modifier and Type | Field and Description |
---|---|
protected Map |
map
Maps the MS-Access names to ANSI names.
|
dataSource
cache, factories
LOGGER
hints, MAXIMUM_PRIORITY, MINIMUM_PRIORITY, NORMAL_PRIORITY, priority
Constructor and Description |
---|
AnsiDialectEpsgFactory(Hints userHints)
Constructs an authority factory, the hints should describe the data source it use.
|
AnsiDialectEpsgFactory(Hints hints,
Connection connection)
Constructs an authority factory using the specified connection.
|
AnsiDialectEpsgFactory(Hints hints,
DataSource dataSource)
Constructs an authority factory using the specified connection.
|
Modifier and Type | Method and Description |
---|---|
protected String |
adaptSQL(String statement)
Modifies the given SQL string to be suitable for non MS-Access databases.
|
protected void |
setSchema(String schema)
Replaces the
"epsg_" prefix by the specified schema name. |
connect, disconnect, dispose, finalize, generateAuthorityCodes, generateCoordinateOperation, generateCoordinateReferenceSystem, generateCoordinateSystem, generateCoordinateSystemAxis, generateDatum, generateEllipsoid, generateExtent, generateFromCoordinateReferenceSystemCodes, generateObject, generateOperationMethod, generateParameterDescriptor, generatePrimeMeridian, generateUnit, getAuthority, getBackingStoreDescription, getConnection, getDescriptionText, getImplementationHints, isPrimaryKey, shutdown
createCartesianCS, createCompoundCRS, createCoordinateOperation, createCoordinateReferenceSystem, createCoordinateSystem, createCoordinateSystemAxis, createCylindricalCS, createDatum, createDerivedCRS, createEllipsoid, createEllipsoidalCS, createEngineeringCRS, createEngineeringDatum, createFromCoordinateReferenceSystemCodes, createGeocentricCRS, createGeodeticDatum, createGeographicCRS, createImageCRS, createImageDatum, createObject, createPolarCS, createPrimeMeridian, createProjectedCRS, createSphericalCS, createTemporalCRS, createTemporalDatum, createTimeCS, createUnit, createVerticalCRS, createVerticalCS, createVerticalDatum, getAuthorityCodes, getIdentifiedObjectFinder, noSuchAuthorityCode, toKey, trimAuthority
createExtent, createOperationMethod, createParameterDescriptor, noSuchAuthorityCode
ensureNonNull, getVendor
addImplementationHints, equals, getPriority, hashCode, onDeregistration, onRegistration, toString
protected final Map map
MS-Access name | ANSI name |
---|---|
[Alias] | epsg_alias |
[Area] | epsg_area |
[Coordinate Axis] | epsg_coordinateaxis |
[Coordinate Axis Name] | epsg_coordinateaxisname |
[Coordinate_Operation] | epsg_coordoperation |
[Coordinate_Operation Method] | epsg_coordoperationmethod |
[Coordinate_Operation Parameter] | epsg_coordoperationparam |
[Coordinate_Operation Parameter Usage] | epsg_coordoperationparamusage |
[Coordinate_Operation Parameter Value] | epsg_coordoperationparamvalue |
[Coordinate_Operation Path] | epsg_coordoperationpath |
[Coordinate Reference System] | epsg_coordinatereferencesystem |
[Coordinate System] | epsg_coordinatesystem |
[Datum] | epsg_datum |
[Naming System] | epsg_namingsystem |
[Ellipsoid] | epsg_ellipsoid |
[Prime Meridian] | epsg_primemeridian |
[Supersession] | epsg_supersession |
[Unit of Measure] | epsg_unitofmeasure |
[CA.ORDER] | coord_axis_order |
public AnsiDialectEpsgFactory(Hints userHints) throws FactoryException
userHints
- The underlying factories used for objects creation.FactoryException
public AnsiDialectEpsgFactory(Hints hints, Connection connection)
userHints
- The underlying factories used for objects creation.connection
- The connection to the underlying EPSG database.FactoryException
public AnsiDialectEpsgFactory(Hints hints, DataSource dataSource)
userHints
- The underlying factories used for objects creation.dataSource
- Used to create a connection to the underlying EPSG databaseFactoryException
protected void setSchema(String schema)
"epsg_"
prefix by the specified schema name. If the removal of the
"epsg_"
prefix is not wanted, append it to the schema name (e.g. "myschema.epsg_"
). This method should be invoked at construction time only.schema
- The database schema in which the epsg tables are stored.protected String adaptSQL(String statement)
adaptSQL
in class AbstractEpsgFactory
statement
- The statement in MS-Access syntax.Copyright © 1996–2019 Geotools. All rights reserved.