public class ReferencingFactoryContainer extends ReferencingFactory
LOGGER
hints, MAXIMUM_PRIORITY, MINIMUM_PRIORITY, NORMAL_PRIORITY, priority
Constructor and Description |
---|
ReferencingFactoryContainer(Hints userHints)
Creates an instance from the specified hints.
|
Modifier and Type | Method and Description |
---|---|
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)
Converts a 2D + 1D compound CRS into a 3D CRS, if possible.
|
ensureNonNull, getVendor
addImplementationHints, equals, getPriority, hashCode, onDeregistration, onRegistration, toString
public ReferencingFactoryContainer(Hints userHints)
CRS
, CS
, DATUM
and
MATH_TRANSFORM
FACTORY
hints.
This constructor is public mainly for FactoryCreator
usage. Consider invoking createInstance(userHints)
instead.
userHints
- The hints, or null
if none.public static ReferencingFactoryContainer instance(Hints hints)
CRS
, CS
, DATUM
and
MATH_TRANSFORM
FACTORY
hints.hints
- The hints, or null
if none.public Map<RenderingHints.Key,?> getImplementationHints()
CRS
, CS
, DATUM
and
MATH_TRANSFORM
FACTORY
hints.getImplementationHints
in interface Factory
getImplementationHints
in class AbstractFactory
public DatumFactory getDatumFactory()
public CSFactory getCSFactory()
public CRSFactory getCRSFactory()
public MathTransformFactory getMathTransformFactory()
public CoordinateReferenceSystem toGeodetic3D(CompoundCRS crs) throws FactoryException
crs
argument is returned unchanged.crs
- The compound CRS to converts in a 3D geographic or projected CRS.crs
if the change can't be applied.FactoryException
- if the object creation 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.Copyright © 1996–2021 Geotools. All rights reserved.