|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.factory.AbstractFactory
org.geotools.referencing.factory.ReferencingFactory
org.geotools.referencing.factory.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 org.geotools.referencing.factory.ReferencingFactory |
---|
LOGGER |
Fields inherited from class org.geotools.factory.AbstractFactory |
---|
hints, MAXIMUM_PRIORITY, MINIMUM_PRIORITY, NORMAL_PRIORITY, priority |
Constructor Summary | |
---|---|
ReferencingFactoryContainer(Hints userHints)
Creates an instance from the specified hints. |
Method Summary | |
---|---|
org.opengis.referencing.operation.MathTransform |
createBaseToDerived(org.opengis.referencing.crs.CoordinateReferenceSystem baseCRS,
org.opengis.parameter.ParameterValueGroup parameters,
org.opengis.referencing.cs.CoordinateSystem derivedCS)
Deprecated. Moved to the MathTransformFactory interface. |
org.opengis.referencing.operation.MathTransform |
createParameterizedTransform(org.opengis.parameter.ParameterValueGroup parameters)
Deprecated. Use the MathTransformFactory interface instead. |
org.opengis.referencing.crs.ProjectedCRS |
createProjectedCRS(java.util.Map<java.lang.String,?> properties,
org.opengis.referencing.crs.GeographicCRS baseCRS,
org.opengis.referencing.operation.Conversion conversionFromBase,
org.opengis.referencing.cs.CartesianCS derivedCS)
Deprecated. Moved to the CRSFactory interface. |
org.opengis.referencing.crs.ProjectedCRS |
createProjectedCRS(java.util.Map<java.lang.String,?> properties,
org.opengis.referencing.crs.GeographicCRS baseCRS,
org.opengis.referencing.operation.OperationMethod method,
org.opengis.parameter.ParameterValueGroup parameters,
org.opengis.referencing.cs.CartesianCS derivedCS)
Deprecated. Use CRSFactory#createDefiningConversion followed by
CRSFactory.createProjectedCRS(java.util.Map instead. |
org.opengis.referencing.crs.CRSFactory |
getCRSFactory()
Returns the coordinate reference system factory. |
org.opengis.referencing.cs.CSFactory |
getCSFactory()
Returns the coordinate system factory. |
org.opengis.referencing.datum.DatumFactory |
getDatumFactory()
Returns the datum factory. |
java.util.Map<java.awt.RenderingHints.Key,?> |
getImplementationHints()
Returns all factories in this group. |
org.opengis.referencing.operation.OperationMethod |
getLastUsedMethod()
Deprecated. Moved to the MathTransformFactory interface. |
org.opengis.referencing.operation.MathTransformFactory |
getMathTransformFactory()
Returns the math transform factory. |
org.opengis.referencing.operation.OperationMethod |
getOperationMethod(java.lang.String name)
Deprecated. Use DefaultMathTransformFactory.getOperationMethod(java.lang.String) . This method
was inefficient for other implementations. |
static ReferencingFactoryContainer |
instance(Hints hints)
Creates an instance from the specified hints. |
org.opengis.referencing.crs.CoordinateReferenceSystem |
separate(org.opengis.referencing.crs.CoordinateReferenceSystem crs,
int[] dimensions)
Returns a new coordinate reference system with only the specified dimension. |
org.opengis.referencing.crs.CoordinateReferenceSystem |
toGeodetic3D(org.opengis.referencing.crs.CompoundCRS crs)
Converts a 2D + 1D compound CRS into a 3D CRS, if possible. |
Methods inherited from class org.geotools.referencing.factory.ReferencingFactory |
---|
ensureNonNull, getVendor |
Methods inherited from class org.geotools.factory.AbstractFactory |
---|
addImplementationHints, equals, getPriority, hashCode, onDeregistration, onRegistration, toString |
Methods inherited from class java.lang.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 java.util.Map<java.awt.RenderingHints.Key,?> getImplementationHints()
CRS
, CS
, DATUM
and MATH_TRANSFORM
FACTORY
hints.
getImplementationHints
in interface Factory
getImplementationHints
in class AbstractFactory
public org.opengis.referencing.datum.DatumFactory getDatumFactory()
public org.opengis.referencing.cs.CSFactory getCSFactory()
public org.opengis.referencing.crs.CRSFactory getCRSFactory()
public org.opengis.referencing.operation.MathTransformFactory getMathTransformFactory()
@Deprecated public org.opengis.referencing.operation.OperationMethod getOperationMethod(java.lang.String name) throws org.opengis.referencing.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"
).
org.opengis.referencing.NoSuchIdentifierException
- if there is no operation method registered for the
specified name.DefaultMathTransformFactory.getOperationMethod(java.lang.String)
@Deprecated public org.opengis.referencing.operation.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 org.opengis.referencing.operation.MathTransform createParameterizedTransform(org.opengis.parameter.ParameterValueGroup parameters) throws org.opengis.referencing.NoSuchIdentifierException, org.opengis.referencing.FactoryException
MathTransformFactory
interface instead.
getLastUsedMethod()
.
parameters
- The parameter values.
org.opengis.referencing.NoSuchIdentifierException
- if there is no transform registered for the method.
org.opengis.referencing.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 org.opengis.referencing.operation.MathTransform createBaseToDerived(org.opengis.referencing.crs.CoordinateReferenceSystem baseCRS, org.opengis.parameter.ParameterValueGroup parameters, org.opengis.referencing.cs.CoordinateSystem derivedCS) throws org.opengis.referencing.NoSuchIdentifierException, org.opengis.referencing.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.
org.opengis.referencing.NoSuchIdentifierException
- if there is no transform registered for the method.
org.opengis.referencing.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 org.opengis.referencing.crs.ProjectedCRS createProjectedCRS(java.util.Map<java.lang.String,?> properties, org.opengis.referencing.crs.GeographicCRS baseCRS, org.opengis.referencing.operation.Conversion conversionFromBase, org.opengis.referencing.cs.CartesianCS derivedCS) throws org.opengis.referencing.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.
org.opengis.referencing.FactoryException
- if the object creation failed.@Deprecated public org.opengis.referencing.crs.ProjectedCRS createProjectedCRS(java.util.Map<java.lang.String,?> properties, org.opengis.referencing.crs.GeographicCRS baseCRS, org.opengis.referencing.operation.OperationMethod method, org.opengis.parameter.ParameterValueGroup parameters, org.opengis.referencing.cs.CartesianCS derivedCS) throws org.opengis.referencing.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.
org.opengis.referencing.FactoryException
- if the object creation failed.public org.opengis.referencing.crs.CoordinateReferenceSystem toGeodetic3D(org.opengis.referencing.crs.CompoundCRS crs) throws org.opengis.referencing.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.
org.opengis.referencing.FactoryException
- if the object creation failed.public org.opengis.referencing.crs.CoordinateReferenceSystem separate(org.opengis.referencing.crs.CoordinateReferenceSystem crs, int[] dimensions) throws org.opengis.referencing.FactoryException
crs
- The original (usually compound) CRS.dimensions
- The dimensions to keep.
org.opengis.referencing.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 |