|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectAbstractFactory
ReferencingFactory
ReferencingFactoryContainer
public class ReferencingFactoryContainer
A set of utilities methods working on factories. Many of those methods requires more than one factory. Consequently, they can't be a method in a single factory. Furthermore, since they are helper methods and somewhat implementation-dependent, they are not part of GeoAPI.
Field Summary |
---|
Fields inherited from class ReferencingFactory |
---|
LOGGER |
Fields inherited from class AbstractFactory |
---|
hints, MAXIMUM_PRIORITY, MINIMUM_PRIORITY, NORMAL_PRIORITY, priority |
Constructor Summary | |
---|---|
ReferencingFactoryContainer(Hints userHints)
Creates an instance from the specified hints. |
Methods inherited from class ReferencingFactory |
---|
ensureNonNull, 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 |
Constructor Detail |
---|
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.Method Detail |
---|
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()
@Deprecated public OperationMethod getOperationMethod(String name) throws NoSuchIdentifierException
DefaultMathTransformFactory.getOperationMethod(java.lang.String)
. This method
was inefficient for other implementations.
name
- The case insensitive identifier code of the operation method to search for
(e.g. "Transverse_Mercator"
).
NoSuchIdentifierException
- if there is no operation method registered for the
specified name.DefaultMathTransformFactory.getOperationMethod(java.lang.String)
@Deprecated public OperationMethod getLastUsedMethod()
MathTransformFactory
interface.
create
method in the currently
running thread. This method may be invoked after any of the following methods:
createParameterizedTransform(org.opengis.parameter.ParameterValueGroup)
createBaseToDerived(org.opengis.referencing.crs.CoordinateReferenceSystem, org.opengis.parameter.ParameterValueGroup, org.opengis.referencing.cs.CoordinateSystem)
create
method, or
null
if none.MathTransformFactory.getLastMethodUsed()
@Deprecated public MathTransform createParameterizedTransform(ParameterValueGroup parameters) throws NoSuchIdentifierException, FactoryException
MathTransformFactory
interface instead.
getLastUsedMethod()
.
parameters
- The parameter values.
NoSuchIdentifierException
- if there is no transform registered for the method.
FactoryException
- if the object creation failed. This exception is thrown
if some required parameter has not been supplied, or has illegal value.MathTransformFactory.createParameterizedTransform(org.opengis.parameter.ParameterValueGroup)
@Deprecated public MathTransform createBaseToDerived(CoordinateReferenceSystem baseCRS, ParameterValueGroup parameters, CoordinateSystem derivedCS) throws NoSuchIdentifierException, FactoryException
MathTransformFactory
interface.
"semi_major"
and "semi_minor"
parameters are
not explicitly specified, they will be inferred from the ellipsoid
and added to parameters
. In addition, this method performs axis switch as needed.
The operation method used can be obtained by a call to
getLastUsedMethod()
.
baseCRS
- The source coordinate reference system.parameters
- The parameter values for the transform.derivedCS
- the target coordinate system.
NoSuchIdentifierException
- if there is no transform registered for the method.
FactoryException
- if the object creation failed. This exception is thrown
if some required parameter has not been supplied, or has illegal value.MathTransformFactory.createBaseToDerived(org.opengis.referencing.crs.CoordinateReferenceSystem, org.opengis.parameter.ParameterValueGroup, org.opengis.referencing.cs.CoordinateSystem)
@Deprecated public ProjectedCRS createProjectedCRS(Map<String,?> properties, GeographicCRS baseCRS, Conversion conversionFromBase, CartesianCS derivedCS) throws FactoryException
CRSFactory
interface.
properties
- Name and other properties to give to the new object.baseCRS
- Geographic coordinate reference system to base projection on.conversionFromBase
- The defining conversion.derivedCS
- The coordinate system for the projected CRS.
FactoryException
- if the object creation failed.@Deprecated public ProjectedCRS createProjectedCRS(Map<String,?> properties, GeographicCRS baseCRS, OperationMethod method, ParameterValueGroup parameters, CartesianCS derivedCS) throws FactoryException
CRSFactory#createDefiningConversion
followed by
CRSFactory.createProjectedCRS(java.util.Map, org.opengis.referencing.crs.GeographicCRS, org.opengis.referencing.operation.Conversion, org.opengis.referencing.cs.CartesianCS)
instead.
"semi_major"
and "semi_minor"
parameters are not explicitly specified,
they will be inferred from the ellipsoid and added to the
parameters
. This method also checks for axis order and unit conversions.
properties
- Name and other properties to give to the new object.baseCRS
- Geographic coordinate reference system to base projection on.method
- The operation method, or null
for a default one.parameters
- The parameter values to give to the projection.derivedCS
- The coordinate system for the projected CRS.
FactoryException
- if the object creation failed.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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |