Method Summary |
|
abstract protected String | adaptSQL(String statement) Invoked when a new
PreparedStatement is about to be created from a SQL string.
Since the EPSG database is available mainly in MS-Access
format, SQL statements are formatted using some syntax specific to this particular database
software (for example "SELECT * FROM [Coordinate Reference System] "). |
final synchronized boolean | canDispose() Returns
true if it is safe to dispose this factory. |
public synchronized CoordinateOperation | createCoordinateOperation(String code) Returns a coordinate operation from a code.
The returned object will either be a
or a
, depending on the code.
Parameters: code - Value allocated by authority. |
public synchronized CoordinateReferenceSystem | createCoordinateReferenceSystem(String code) Returns a coordinate reference system from a code.
Parameters: code - Value allocated by authority. |
public synchronized CoordinateSystem | createCoordinateSystem(String code) Returns a coordinate system from a code.
Parameters: code - Value allocated by authority. |
public synchronized CoordinateSystemAxis | createCoordinateSystemAxis(String code) Returns a
from a code. |
public synchronized Datum | createDatum(String code) Returns a datum from a code.
Parameters: code - Value allocated by authority. |
public synchronized Ellipsoid | createEllipsoid(String code) Returns an ellipsoid from a code.
Parameters: code - The EPSG value. |
public synchronized Extent | createExtent(String code) Returns an area of use.
Parameters: code - Value allocated by authority. |
public synchronized Set | createFromCoordinateReferenceSystemCodes(String sourceCode, String targetCode) Creates operations from coordinate reference system codes. |
public synchronized IdentifiedObject | createObject(String code) Returns an arbitrary object from a code.
The default implementation invokes one of
DirectEpsgFactory.createCoordinateReferenceSystem ,
DirectEpsgFactory.createCoordinateSystem ,
DirectEpsgFactory.createDatum ,
DirectEpsgFactory.createEllipsoid , or
DirectEpsgFactory.createUnit methods according the object type.
Parameters: code - The EPSG value. |
public synchronized OperationMethod | createOperationMethod(String code) Returns an operation method from a code.
Parameters: code - The operation method code allocated by EPSG authority. throws: NoSuchAuthorityCodeException - if this method can't find the requested code. throws: FactoryException - if some other kind of failure occured in the backingstore. |
public synchronized ParameterDescriptor | createParameterDescriptor(String code) Returns a parameter descriptor from a code.
Parameters: code - The parameter descriptor code allocated by EPSG authority. throws: NoSuchAuthorityCodeException - if this method can't find the requested code. throws: FactoryException - if some other kind of failure occured in the backingstore. |
public synchronized PrimeMeridian | createPrimeMeridian(String code) Returns a prime meridian, relative to Greenwich.
Parameters: code - Value allocated by authority. |
public synchronized Unit | createUnit(String code) Returns an unit from a code.
Parameters: code - Value allocated by authority. |
public synchronized void | dispose() Disposes any resources hold by this object. |
final protected void | finalize() Invokes
DirectEpsgFactory.dispose when this factory is garbage collected. |
public synchronized Citation | getAuthority() Returns the authority for this EPSG database. |
public Set | getAuthorityCodes(Class type) Returns the set of authority codes of the given type.
NOTE: This method returns a living connection to the underlying database.
This means that the returned set can executes efficiently idioms like the following one:
getAuthorityCodes(typeothers)
But do not keep the returned reference for a long time. |
public synchronized String | getBackingStoreDescription() Returns a description of the database engine. |
public InternationalString | getDescriptionText(String code) Gets a description of the object corresponding to a code.
Parameters: code - Value allocated by authority. |
public IdentifiedObjectFinder | getIdentifiedObjectFinder(Class type) Returns a finder which can be used for looking up unidentified objects.
Parameters: type - The type of objects to look for. |
public Map | getImplementationHints() Returns the implementation hints for this factory. |
protected boolean | isPrimaryKey(String code) Returns
true if the specified code may be a primary key in some table. |
final boolean | isProjection(String code) Returns
true if the
for the
specified code is a
. |
protected void | shutdown(boolean active) Shutdown the database engine. |