|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.referencing.factory.FactoryGroup
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 | |
static Hints.Key |
HINT_KEY
Hint for the instance to use. |
Constructor Summary | |
FactoryGroup()
Constructs an instance using the default factories. |
|
FactoryGroup(org.opengis.referencing.datum.DatumFactory datumFactory,
org.opengis.referencing.cs.CSFactory csFactory,
org.opengis.referencing.crs.CRSFactory crsFactory,
org.opengis.referencing.operation.MathTransformFactory mtFactory)
Constructs an instance using the specified factories. |
|
FactoryGroup(Hints hints)
Constructs an instance using the factories initialized with 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,
java.util.Collection methods)
Creates a parameterized transform from a base CRS to a derived CS. |
static FactoryGroup |
createInstance(Hints hints)
Creates an instance from the specified hints. |
org.opengis.referencing.operation.MathTransform |
createParameterizedTransform(org.opengis.parameter.ParameterValueGroup parameters,
java.util.Collection methods)
Creates a transform from a group of parameters and add the method used to a list. |
org.opengis.referencing.crs.ProjectedCRS |
createProjectedCRS(java.util.Map properties,
org.opengis.referencing.crs.GeographicCRS baseCRS,
org.opengis.referencing.operation.Conversion conversionFromBase,
org.opengis.referencing.cs.CartesianCS derivedCS)
Creates a projected coordinate reference system from a conversion. |
org.opengis.referencing.crs.ProjectedCRS |
createProjectedCRS(java.util.Map properties,
org.opengis.referencing.crs.GeographicCRS baseCRS,
org.opengis.referencing.operation.OperationMethod method,
org.opengis.parameter.ParameterValueGroup parameters,
org.opengis.referencing.cs.CartesianCS derivedCS)
Creates a projected coordinate reference system from a set of parameters. |
org.opengis.referencing.operation.CoordinateOperationFactory |
getCoordinateOperationFactory()
Returns the coordinate operation factory. |
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. |
void |
getHints(java.util.Map hints)
Copies in the specified map all values for the CRS ,
CS , DATUM and
MATH_TRANSFORM hints.
|
org.opengis.referencing.operation.MathTransformFactory |
getMathTransformFactory()
Returns the math transform factory. |
org.opengis.referencing.operation.OperationMethod |
getOperationMethod(java.lang.String name)
Returns the operation method for the specified name. |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final Hints.Key HINT_KEY
Hints
class.
The CRS_FACTORY
hint and its friend should be suffisient in most
cases.
createInstance(org.geotools.factory.Hints)
Constructor Detail |
public FactoryGroup()
FactoryFinder.getDatumFactory(null); FactoryFinder.getCSFactory(null); FactoryFinder.getCRSFactory(null); FactoryFinder.MathTransformFactory(null);
public FactoryGroup(org.opengis.referencing.datum.DatumFactory datumFactory, org.opengis.referencing.cs.CSFactory csFactory, org.opengis.referencing.crs.CRSFactory crsFactory, org.opengis.referencing.operation.MathTransformFactory mtFactory)
FactoryFinder
when first needed.
datumFactory
- The datum factory.csFactory
- The coordinate system factory.crsFactory
- The coordinate reference system
factory.mtFactory
- The math transform factory.public FactoryGroup(Hints hints)
createInstance(org.geotools.factory.Hints)
Method Detail |
public static FactoryGroup createInstance(Hints hints)
HINT_KEY
value, then the specified factory group will be returned. Otherwise, a new one will be
created.
hints
- The hints, or if none.
public void getHints(java.util.Map hints)
CRS
,
CS
, DATUM
and
MATH_TRANSFORM
hints.
A HINT_KEY
is put in addition for this instance,
but it should be considered as low-level detail. This method is provided as a helper
for implementation of Factory.getImplementationHints()
methods.
hints
- The map to put hints into.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.CoordinateOperationFactory getCoordinateOperationFactory()
public org.opengis.referencing.operation.MathTransformFactory getMathTransformFactory()
public org.opengis.referencing.operation.OperationMethod getOperationMethod(java.lang.String name) throws org.opengis.referencing.NoSuchIdentifierException
name
- The case insensitive identifier code
of the operation method to search for (e.g. ).
org.opengis.referencing.NoSuchIdentifierException
- if there is no operation method registered for the
specified name.DefaultMathTransformFactory.getOperationMethod(java.lang.String)
public org.opengis.referencing.operation.MathTransform createParameterizedTransform(org.opengis.parameter.ParameterValueGroup parameters, java.util.Collection methods) throws org.opengis.referencing.NoSuchIdentifierException, org.opengis.referencing.FactoryException
parameters
- The parameter values.methods
- A collection where to add the operation method that apply to the transform,
or if none.
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)
public org.opengis.referencing.operation.MathTransform createBaseToDerived(org.opengis.referencing.crs.CoordinateReferenceSystem baseCRS, org.opengis.parameter.ParameterValueGroup parameters, org.opengis.referencing.cs.CoordinateSystem derivedCS, java.util.Collection methods) throws org.opengis.referencing.NoSuchIdentifierException, org.opengis.referencing.FactoryException
"semi_major"
and "semi_minor"
parameters are not explicitly specified, they will be inferred from the
ellipsoid and added to .
In addition, this method performs axis switch as needed.
baseCRS
- The source coordinate reference system.parameters
- The parameter values for the transform.derivedCS
- the target coordinate system.methods
- A collection where to add the operation method that apply to the transform,
or if none.
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.public org.opengis.referencing.crs.ProjectedCRS createProjectedCRS(java.util.Map properties, org.opengis.referencing.crs.GeographicCRS baseCRS, org.opengis.referencing.operation.Conversion conversionFromBase, org.opengis.referencing.cs.CartesianCS derivedCS) throws org.opengis.referencing.FactoryException
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.public org.opengis.referencing.crs.ProjectedCRS createProjectedCRS(java.util.Map 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
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 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
- The compound CRS to converts in a 3D geographic or projected CRS.
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
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |