|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectAbstractFactory
ReferencingFactory
AbstractCoordinateOperationFactory
DefaultCoordinateOperationFactory
AuthorityBackedFactory
public class AuthorityBackedFactory
A coordinate operation factory extended with the extra informations provided by an authority factory. Such authority factory may help to find transformation paths not available otherwise (often determined from empirical parameters). Authority factories can also provide additional informations like the area of validity, scope and positional accuracy.
When createOperation(sourceCRS, targetCRS)
is invoked,
AuthorityBackedFactory
fetch the authority codes for source and target CRS and submits
them to the underlying authority factory through a call to its
createFromCoordinateReferenceSystemCodes(sourceCode, targetCode)
method. If the
authority factory doesn't know about the specified CRS, then the default (standalone)
process from the super-class is used as a fallback.
modules/library/referencing (gt-referencing.jar)
Field Summary |
---|
Fields inherited from class AbstractCoordinateOperationFactory |
---|
AXIS_CHANGES, DATUM_SHIFT, ELLIPSOID_SHIFT, GEOCENTRIC_CONVERSION, IDENTITY, INVERSE_OPERATION |
Fields inherited from class ReferencingFactory |
---|
LOGGER |
Fields inherited from class AbstractFactory |
---|
hints, MAXIMUM_PRIORITY, MINIMUM_PRIORITY, NORMAL_PRIORITY, priority |
Constructor Summary | |
---|---|
AuthorityBackedFactory()
Creates a new factory backed by a default EPSG authority factory. |
|
AuthorityBackedFactory(Hints userHints)
Creates a new factory backed by an authority factory fetched using the specified hints. |
Method Summary | |
---|---|
protected boolean |
accept(CoordinateOperation operation)
Returns true if the specified operation is acceptable. |
protected CoordinateOperation |
createFromDatabase(CoordinateReferenceSystem sourceCRS,
CoordinateReferenceSystem targetCRS)
Returns an operation for conversion or transformation between two coordinate reference systems. |
protected CoordinateOperationAuthorityFactory |
getAuthorityFactory()
Returns the underlying coordinate operation authority factory. |
boolean |
isAvailable()
Returns true if this factory and its underlying
authority factory are available for use. |
Methods inherited from class ReferencingFactory |
---|
getVendor |
Methods inherited from class AbstractFactory |
---|
addImplementationHints, equals, getPriority, hashCode, onDeregistration, onRegistration, toString |
Methods inherited from class Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface Factory |
---|
getImplementationHints |
Methods inherited from interface Factory |
---|
getVendor |
Constructor Detail |
---|
public AuthorityBackedFactory()
public AuthorityBackedFactory(Hints userHints)
CRS
, CS
,
DATUM
and MATH_TRANSFORM
FACTORY
hints.
userHints
- The hints, or null
if none.Method Detail |
---|
protected CoordinateOperationAuthorityFactory getAuthorityFactory()
protected CoordinateOperation createFromDatabase(CoordinateReferenceSystem sourceCRS, CoordinateReferenceSystem targetCRS)
sourceCRS
and targetCRS
, and submit them to the
createFromCoordinateReferenceSystemCodes(sourceCode, targetCode)
methods.
If no operation is found for those codes, then this method returns null
.
Note that this method may be invoked recursively. For example no operation may be available from the underlying authority factory between two compound CRS, but an operation may be available between two components of those compound CRS.
createFromDatabase
in class DefaultCoordinateOperationFactory
sourceCRS
- Input coordinate reference system.targetCRS
- Output coordinate reference system.
sourceCRS
to targetCRS
, or null
if no such operation is explicitly defined in the underlying database.protected boolean accept(CoordinateOperation operation)
true
if the specified operation is acceptable. This method is invoked
automatically by createFromDatabase(...)
for every operation candidates found. The default implementation returns always true
. Subclasses should override this method if they wish to filter the coordinate
operations to be returned.
public boolean isAvailable()
true
if this factory and its underlying
authority factory are available for use.
isAvailable
in interface OptionalFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |