|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectFactory
ReferencingFactory
ReferencingFactoryContainer
@ThreadSafe public class ReferencingFactoryContainer
A container of factories frequently used together, with utility methods. This class serves two purpose:
Note: TheCoordinateOperationFactoryfactory is intentionally excluded from this container, becauseCoordinateOperationFactoryis more a processing class than a factory creating directly objects from the parameters.
| referencing/geotk-referencing (download) | View source code for this class |
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class Factory |
|---|
Factory.Availability, Factory.Organizer |
| Field Summary |
|---|
| Fields inherited from class ReferencingFactory |
|---|
LOGGER |
| Fields inherited from class Factory |
|---|
EMPTY_HINTS, hints |
| Constructor Summary | |
|---|---|
ReferencingFactoryContainer(Hints userHints)
Creates an instance from the specified hints. |
|
| Method Summary | |
|---|---|
CRSFactory |
getCRSFactory()
Returns the coordinate reference system factory. |
CSFactory |
getCSFactory()
Returns the coordinate system factory. |
DatumFactory |
getDatumFactory()
Returns the datum factory. |
Map<RenderingHints.Key,?> |
getImplementationHints()
Returns all factories in this group. |
MathTransformFactory |
getMathTransformFactory()
Returns the math transform factory. |
static ReferencingFactoryContainer |
instance(Hints hints)
Creates an instance from the specified hints. |
CoordinateReferenceSystem |
separate(CoordinateReferenceSystem crs,
int... dimensions)
Returns a new coordinate reference system with only the specified dimension. |
CoordinateReferenceSystem |
toGeodetic3D(CompoundCRS crs)
Returns a CRS equivalents to the given one, with some components replaced by their 3D counterpart when possible. |
SingleCRS |
toGeodetic3D(SingleCRS crs)
Adds an ellipsoidal height to the given CRS, if not already presents. |
| Methods inherited from class ReferencingFactory |
|---|
ensureNonNull, getVendor |
| Methods inherited from class Factory |
|---|
availability, dispose, equals, hasCompatibleHints, hashCode, setOrdering, toString |
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ReferencingFactoryContainer(Hints userHints)
CRS, CS, DATUM and MATH_TRANSFORM FACTORY hints.
This constructor is public mainly for DynamicFactoryRegistry
usage. Consider invoking instance(userHints) instead.
userHints - The hints, or null if none (not the
system-wide default; factory constructors consume the hints verbatism).| Method Detail |
|---|
public static ReferencingFactoryContainer instance(Hints hints)
CRS, CS, DATUM and MATH_TRANSFORM FACTORY hints.
hints - The hints, or null for the system-wide default.
public Map<RenderingHints.Key,?> getImplementationHints()
CRS, CS, DATUM
and MATH_TRANSFORM FACTORY hints.
getImplementationHints in class Factorypublic DatumFactory getDatumFactory()
public CSFactory getCSFactory()
public CRSFactory getCRSFactory()
public MathTransformFactory getMathTransformFactory()
public SingleCRS toGeodetic3D(SingleCRS crs)
throws FactoryException
crs - The geographic or projected CRS to make three-dimensional.
FactoryException - If an ellipsoidal height can not be added to the given CRS.
public CoordinateReferenceSystem toGeodetic3D(CompoundCRS crs)
throws FactoryException
ELLIPSOIDAL (height above the ellipsoid)Then this method replaces those two components by a single three-dimensional component. The other components (for example temporal CRS) are included unchanged in the returned CRS.
If there is no (2D + 1D) components that this method could replace by a 3D component,
then this method returns the crs argument unchanged. In any case, the transform
from the given CRS to the returned CRS shall be an identity transform.
crs - The CRS in which to replace (2D + 1D) components by 3D components.
FactoryException - If a new CRS needs to be created and the call to its factory
method failed.
public CoordinateReferenceSystem separate(CoordinateReferenceSystem crs,
int... dimensions)
throws FactoryException
crs - The original (usually compound) CRS.dimensions - The dimensions to keep.
FactoryException - if the given dimensions can not be isolated in the given CRS.CRS.getSubCRS(CoordinateReferenceSystem, int, int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||