Package org.geotools.referencing.factory
Class ReferencingObjectFactory
Object
AbstractFactory
ReferencingFactory
ReferencingObjectFactory
- All Implemented Interfaces:
CRSFactory,CSFactory,DatumFactory,Factory,ObjectFactory,BufferedFactory,Factory,RegistrableFactory
public class ReferencingObjectFactory
extends ReferencingFactory
implements CSFactory, DatumFactory, CRSFactory, BufferedFactory
Builds Geotools implementations of CRS, CS and
datum objects. Most factory methods expect properties given through a
Map argument. The
content of this map is described in the ObjectFactory interface.- Since:
- 2.4
- Author:
- Martin Desruisseaux (IRD)
-
Field Summary
Fields inherited from class ReferencingFactory
LOGGERFields inherited from class AbstractFactory
hints, MAXIMUM_PRIORITY, MINIMUM_PRIORITY, NORMAL_PRIORITY, priority -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a default factory.ReferencingObjectFactory(Hints hints) Constructs a factory with the specified hints. -
Method Summary
Modifier and TypeMethodDescriptioncreateAffineCS(Map<String, ?> properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1) Creates a two dimensional coordinate system from the given pair of axis.createAffineCS(Map<String, ?> properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1, CoordinateSystemAxis axis2) Creates a three dimensional coordinate system from the given set of axis.createCartesianCS(Map<String, ?> properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1) Creates a two dimensional cartesian coordinate system from the given pair of axis.createCartesianCS(Map<String, ?> properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1, CoordinateSystemAxis axis2) Creates a three dimensional cartesian coordinate system from the given set of axis.createCompoundCRS(Map<String, ?> properties, CoordinateReferenceSystem... elements) Creates a compound coordinate reference system from an ordered list ofCoordinateReferenceSystemobjects.createCoordinateSystemAxis(Map<String, ?> properties, String abbreviation, AxisDirection direction, Unit<?> unit) Creates a coordinate system axis from an abbreviation and a unit.createCylindricalCS(Map<String, ?> properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1, CoordinateSystemAxis axis2) Creates a cylindrical coordinate system from the given set of axis.createDerivedCRS(Map<String, ?> properties, CoordinateReferenceSystem baseCRS, Conversion conversionFromBase, CoordinateSystem derivedCS) Creates a derived coordinate reference system from a conversion.createEllipsoid(Map<String, ?> properties, double semiMajorAxis, double semiMinorAxis, Unit<Length> unit) Creates an ellipsoid from radius values.createEllipsoidalCS(Map<String, ?> properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1) Creates an ellipsoidal coordinate system without ellipsoidal height.createEllipsoidalCS(Map<String, ?> properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1, CoordinateSystemAxis axis2) Creates an ellipsoidal coordinate system with ellipsoidal height.createEngineeringCRS(Map<String, ?> properties, EngineeringDatum datum, CoordinateSystem cs) Creates a engineering coordinate reference system.createEngineeringDatum(Map<String, ?> properties) Creates an engineering datum.createFlattenedSphere(Map<String, ?> properties, double semiMajorAxis, double inverseFlattening, Unit<Length> unit) Creates an ellipsoid from an major radius, and inverse flattening.createFromWKT(String wkt) Creates a coordinate reference system object from a string.createFromXML(String xml) Creates a coordinate reference system object from a XML string.createGeocentricCRS(Map<String, ?> properties, GeodeticDatum datum, CartesianCS cs) Creates a geocentric coordinate reference system from a cartesian coordinate system.createGeocentricCRS(Map<String, ?> properties, GeodeticDatum datum, SphericalCS cs) Creates a geocentric coordinate reference system from a spherical coordinate system.createGeodeticDatum(Map<String, ?> properties, Ellipsoid ellipsoid, PrimeMeridian primeMeridian) Creates geodetic datum from ellipsoid and (optionaly) Bursa-Wolf parameters.createGeographicCRS(Map<String, ?> properties, GeodeticDatum datum, EllipsoidalCS cs) Creates a geographic coordinate reference system.createImageCRS(Map<String, ?> properties, ImageDatum datum, AffineCS cs) Creates an image coordinate reference system.createImageDatum(Map<String, ?> properties, PixelInCell pixelInCell) Creates an image datum.createLinearCS(Map<String, ?> properties, CoordinateSystemAxis axis) Creates a linear coordinate system.createPolarCS(Map<String, ?> properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1) Creates a polar coordinate system from the given pair of axis.createPrimeMeridian(Map<String, ?> properties, double longitude, Unit<Angle> angularUnit) Creates a prime meridian, relative to Greenwich.createProjectedCRS(Map<String, ?> properties, GeographicCRS baseCRS, Conversion conversionFromBase, CartesianCS derivedCS) Creates a projected coordinate reference system from a conversion.createProjectedCRS(Map<String, Object> properties, OperationMethod method, GeographicCRS base, MathTransform baseToDerived, CartesianCS derivedCS) Creates a projected coordinate reference system from a transform.createSphericalCS(Map<String, ?> properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1, CoordinateSystemAxis axis2) Creates a spherical coordinate system from the given set of axis.createTemporalCRS(Map<String, ?> properties, TemporalDatum datum, TimeCS cs) Creates a temporal coordinate reference system.createTemporalDatum(Map<String, ?> properties, Date origin) Creates a temporal datum from an enumerated type value.createTimeCS(Map<String, ?> properties, CoordinateSystemAxis axis) Creates a temporal coordinate system.createUserDefinedCS(Map<String, ?> properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1) Creates a two dimensional user defined coordinate system from the given pair of axis.createUserDefinedCS(Map<String, ?> properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1, CoordinateSystemAxis axis2) Creates a three dimensional user defined coordinate system from the given set of axis.createVerticalCRS(Map<String, ?> properties, VerticalDatum datum, VerticalCS cs) Creates a vertical coordinate reference system.createVerticalCS(Map<String, ?> properties, CoordinateSystemAxis axis) Creates a vertical coordinate system.createVerticalDatum(Map<String, ?> properties, VerticalDatumType type) Creates a vertical datum from an enumerated type value.Methods inherited from class ReferencingFactory
ensureNonNull, getVendorMethods inherited from class AbstractFactory
addImplementationHints, equals, getImplementationHints, getPriority, hashCode, onDeregistration, onRegistration, toStringMethods inherited from interface Factory
getImplementationHints
-
Constructor Details
-
ReferencingObjectFactory
public ReferencingObjectFactory()Constructs a default factory. This method is public in order to allows instantiations from a service registry. Users should not instantiate this factory directly, but use one of the following lines instead:DatumFactory factory = FactoryFinder.getDatumFactorynull); CSFactory factory = FactoryFinder.getCSFactory(null); CRSFactory factory = FactoryFinder.getCRSFactory(null);
-
ReferencingObjectFactory
Constructs a factory with the specified hints. Users should not instantiate this factory directly, but use one of the following lines instead:DatumFactory factory = FactoryFinder.getDatumFactory(hints); CSFactory factory = FactoryFinder.getCSFactory(hints); CRSFactory factory = FactoryFinder.getCRSFactory(hints);
- Parameters:
hints- An optional set of hints, ornullif none.- Since:
- 2.5
-
-
Method Details
-
createEllipsoid
public Ellipsoid createEllipsoid(Map<String, ?> properties, double semiMajorAxis, double semiMinorAxis, Unit<Length> unit) throws FactoryExceptionCreates an ellipsoid from radius values.- Specified by:
createEllipsoidin interfaceDatumFactory- Parameters:
properties- Name and other properties to give to the new object.semiMajorAxis- Equatorial radius in supplied linear units.semiMinorAxis- Polar radius in supplied linear units.unit- Linear units of ellipsoid axes.- Returns:
- The ellipsoid for the given properties.
- Throws:
FactoryException- if the object creation failed.
-
createFlattenedSphere
public Ellipsoid createFlattenedSphere(Map<String, ?> properties, double semiMajorAxis, double inverseFlattening, Unit<Length> unit) throws FactoryExceptionCreates an ellipsoid from an major radius, and inverse flattening.- Specified by:
createFlattenedSpherein interfaceDatumFactory- Parameters:
properties- Name and other properties to give to the new object.semiMajorAxis- Equatorial radius in supplied linear units.inverseFlattening- Eccentricity of ellipsoid.unit- Linear units of major axis.- Returns:
- The ellipsoid for the given properties.
- Throws:
FactoryException- if the object creation failed.
-
createPrimeMeridian
public PrimeMeridian createPrimeMeridian(Map<String, ?> properties, double longitude, Unit<Angle> angularUnit) throws FactoryExceptionCreates a prime meridian, relative to Greenwich.- Specified by:
createPrimeMeridianin interfaceDatumFactory- Parameters:
properties- Name and other properties to give to the new object.longitude- Longitude of prime meridian in supplied angular units East of Greenwich.angularUnit- Angular units of longitude.- Returns:
- The prime meridian for the given properties.
- Throws:
FactoryException- if the object creation failed.
-
createGeodeticDatum
public GeodeticDatum createGeodeticDatum(Map<String, ?> properties, Ellipsoid ellipsoid, PrimeMeridian primeMeridian) throws FactoryExceptionCreates geodetic datum from ellipsoid and (optionaly) Bursa-Wolf parameters.- Specified by:
createGeodeticDatumin interfaceDatumFactory- Parameters:
properties- Name and other properties to give to the new object.ellipsoid- Ellipsoid to use in new geodetic datum.primeMeridian- Prime meridian to use in new geodetic datum.- Returns:
- The datum for the given properties.
- Throws:
FactoryException- if the object creation failed.
-
createVerticalDatum
public VerticalDatum createVerticalDatum(Map<String, ?> properties, VerticalDatumType type) throws FactoryExceptionCreates a vertical datum from an enumerated type value.- Specified by:
createVerticalDatumin interfaceDatumFactory- Parameters:
properties- Name and other properties to give to the new object.type- The type of this vertical datum (often geoidal).- Returns:
- The datum for the given properties.
- Throws:
FactoryException- if the object creation failed.
-
createTemporalDatum
public TemporalDatum createTemporalDatum(Map<String, ?> properties, Date origin) throws FactoryExceptionCreates a temporal datum from an enumerated type value.- Specified by:
createTemporalDatumin interfaceDatumFactory- Parameters:
properties- Name and other properties to give to the new object.origin- The date and time origin of this temporal datum.- Returns:
- The datum for the given properties.
- Throws:
FactoryException- if the object creation failed.
-
createEngineeringDatum
Creates an engineering datum.- Specified by:
createEngineeringDatumin interfaceDatumFactory- Parameters:
properties- Name and other properties to give to the new object.- Returns:
- The datum for the given properties.
- Throws:
FactoryException- if the object creation failed.
-
createImageDatum
public ImageDatum createImageDatum(Map<String, ?> properties, PixelInCell pixelInCell) throws FactoryExceptionCreates an image datum.- Specified by:
createImageDatumin interfaceDatumFactory- Parameters:
properties- Name and other properties to give to the new object.pixelInCell- Specification of the way the image grid is associated with the image data attributes.- Returns:
- The datum for the given properties.
- Throws:
FactoryException- if the object creation failed.
-
createCoordinateSystemAxis
public CoordinateSystemAxis createCoordinateSystemAxis(Map<String, ?> properties, String abbreviation, AxisDirection direction, Unit<?> unit) throws FactoryExceptionCreates a coordinate system axis from an abbreviation and a unit.- Specified by:
createCoordinateSystemAxisin interfaceCSFactory- Parameters:
properties- Name and other properties to give to the new object.abbreviation- The coordinate axis abbreviation.direction- The axis direction.unit- The coordinate axis unit.- Returns:
- The axis for the given properties.
- Throws:
FactoryException- if the object creation failed.
-
createCartesianCS
public CartesianCS createCartesianCS(Map<String, ?> properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1) throws FactoryExceptionCreates a two dimensional cartesian coordinate system from the given pair of axis.- Specified by:
createCartesianCSin interfaceCSFactory- Parameters:
properties- Name and other properties to give to the new object.axis0- The first axis.axis1- The second axis.- Returns:
- The coordinate system for the given properties and axes.
- Throws:
FactoryException- if the object creation failed.
-
createCartesianCS
public CartesianCS createCartesianCS(Map<String, ?> properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1, CoordinateSystemAxis axis2) throws FactoryExceptionCreates a three dimensional cartesian coordinate system from the given set of axis.- Specified by:
createCartesianCSin interfaceCSFactory- Parameters:
properties- Name and other properties to give to the new object.axis0- The first axis.axis1- The second axis.axis2- The third axis.- Returns:
- The coordinate system for the given properties and axes.
- Throws:
FactoryException- if the object creation failed.
-
createAffineCS
public AffineCS createAffineCS(Map<String, ?> properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1) throws FactoryExceptionCreates a two dimensional coordinate system from the given pair of axis.- Specified by:
createAffineCSin interfaceCSFactory- Parameters:
properties- Name and other properties to give to the new object.axis0- The first axis.axis1- The second axis.- Returns:
- The coordinate system for the given properties and axes.
- Throws:
FactoryException- if the object creation failed.
-
createAffineCS
public AffineCS createAffineCS(Map<String, ?> properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1, CoordinateSystemAxis axis2) throws FactoryExceptionCreates a three dimensional coordinate system from the given set of axis.- Specified by:
createAffineCSin interfaceCSFactory- Parameters:
properties- Name and other properties to give to the new object.axis0- The first axis.axis1- The second axis.axis2- The third axis.- Returns:
- The coordinate system for the given properties and axes.
- Throws:
FactoryException- if the object creation failed.
-
createPolarCS
public PolarCS createPolarCS(Map<String, ?> properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1) throws FactoryExceptionCreates a polar coordinate system from the given pair of axis.- Specified by:
createPolarCSin interfaceCSFactory- Parameters:
properties- Name and other properties to give to the new object.axis0- The first axis.axis1- The second axis.- Returns:
- The coordinate system for the given properties and axes.
- Throws:
FactoryException- if the object creation failed.
-
createCylindricalCS
public CylindricalCS createCylindricalCS(Map<String, ?> properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1, CoordinateSystemAxis axis2) throws FactoryExceptionCreates a cylindrical coordinate system from the given set of axis.- Specified by:
createCylindricalCSin interfaceCSFactory- Parameters:
properties- Name and other properties to give to the new object.axis0- The first axis.axis1- The second axis.axis2- The third axis.- Returns:
- The coordinate system for the given properties and axes.
- Throws:
FactoryException- if the object creation failed.
-
createSphericalCS
public SphericalCS createSphericalCS(Map<String, ?> properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1, CoordinateSystemAxis axis2) throws FactoryExceptionCreates a spherical coordinate system from the given set of axis.- Specified by:
createSphericalCSin interfaceCSFactory- Parameters:
properties- Name and other properties to give to the new object.axis0- The first axis.axis1- The second axis.axis2- The third axis.- Returns:
- The coordinate system for the given properties and axes.
- Throws:
FactoryException- if the object creation failed.
-
createEllipsoidalCS
public EllipsoidalCS createEllipsoidalCS(Map<String, ?> properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1) throws FactoryExceptionCreates an ellipsoidal coordinate system without ellipsoidal height.- Specified by:
createEllipsoidalCSin interfaceCSFactory- Parameters:
properties- Name and other properties to give to the new object.axis0- The first axis.axis1- The second axis.- Returns:
- The coordinate system for the given properties and axes.
- Throws:
FactoryException- if the object creation failed.
-
createEllipsoidalCS
public EllipsoidalCS createEllipsoidalCS(Map<String, ?> properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1, CoordinateSystemAxis axis2) throws FactoryExceptionCreates an ellipsoidal coordinate system with ellipsoidal height.- Specified by:
createEllipsoidalCSin interfaceCSFactory- Parameters:
properties- Name and other properties to give to the new object.axis0- The first axis.axis1- The second axis.axis2- The third axis.- Returns:
- The coordinate system for the given properties and axes.
- Throws:
FactoryException- if the object creation failed.
-
createVerticalCS
public VerticalCS createVerticalCS(Map<String, ?> properties, CoordinateSystemAxis axis) throws FactoryExceptionCreates a vertical coordinate system.- Specified by:
createVerticalCSin interfaceCSFactory- Parameters:
properties- Name and other properties to give to the new object.axis- The axis.- Returns:
- The coordinate system for the given properties and axes.
- Throws:
FactoryException- if the object creation failed.
-
createTimeCS
public TimeCS createTimeCS(Map<String, ?> properties, CoordinateSystemAxis axis) throws FactoryExceptionCreates a temporal coordinate system.- Specified by:
createTimeCSin interfaceCSFactory- Parameters:
properties- Name and other properties to give to the new object.axis- The axis.- Returns:
- The coordinate system for the given properties and axes.
- Throws:
FactoryException- if the object creation failed.
-
createLinearCS
public LinearCS createLinearCS(Map<String, ?> properties, CoordinateSystemAxis axis) throws FactoryExceptionCreates a linear coordinate system.- Specified by:
createLinearCSin interfaceCSFactory- Parameters:
properties- Name and other properties to give to the new object.axis- The axis.- Returns:
- The coordinate system for the given properties and axes.
- Throws:
FactoryException- if the object creation failed.
-
createUserDefinedCS
public UserDefinedCS createUserDefinedCS(Map<String, ?> properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1) throws FactoryExceptionCreates a two dimensional user defined coordinate system from the given pair of axis.- Specified by:
createUserDefinedCSin interfaceCSFactory- Parameters:
properties- Name and other properties to give to the new object.axis0- The first axis.axis1- The second axis.- Returns:
- The coordinate system for the given properties and axes.
- Throws:
FactoryException- if the object creation failed.
-
createUserDefinedCS
public UserDefinedCS createUserDefinedCS(Map<String, ?> properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1, CoordinateSystemAxis axis2) throws FactoryExceptionCreates a three dimensional user defined coordinate system from the given set of axis.- Specified by:
createUserDefinedCSin interfaceCSFactory- Parameters:
properties- Name and other properties to give to the new object.axis0- The first axis.axis1- The second axis.axis2- The third axis.- Returns:
- The coordinate system for the given properties and axes.
- Throws:
FactoryException- if the object creation failed.
-
createCompoundCRS
public CompoundCRS createCompoundCRS(Map<String, ?> properties, CoordinateReferenceSystem... elements) throws FactoryExceptionCreates a compound coordinate reference system from an ordered list ofCoordinateReferenceSystemobjects.- Specified by:
createCompoundCRSin interfaceCRSFactory- Parameters:
properties- Name and other properties to give to the new object.elements- ordered array ofCoordinateReferenceSystemobjects.- Returns:
- The coordinate reference system for the given properties.
- Throws:
FactoryException- if the object creation failed.
-
createEngineeringCRS
public EngineeringCRS createEngineeringCRS(Map<String, ?> properties, EngineeringDatum datum, CoordinateSystem cs) throws FactoryExceptionCreates a engineering coordinate reference system.- Specified by:
createEngineeringCRSin interfaceCRSFactory- Parameters:
properties- Name and other properties to give to the new object.datum- Engineering datum to use in created CRS.cs- The coordinate system for the created CRS.- Returns:
- The coordinate reference system for the given properties.
- Throws:
FactoryException- if the object creation failed.
-
createImageCRS
public ImageCRS createImageCRS(Map<String, ?> properties, ImageDatum datum, AffineCS cs) throws FactoryExceptionCreates an image coordinate reference system.- Specified by:
createImageCRSin interfaceCRSFactory- Parameters:
properties- Name and other properties to give to the new object.datum- Image datum to use in created CRS.cs- The Cartesian or Oblique Cartesian coordinate system for the created CRS.- Returns:
- The coordinate reference system for the given properties.
- Throws:
FactoryException- if the object creation failed.
-
createTemporalCRS
public TemporalCRS createTemporalCRS(Map<String, ?> properties, TemporalDatum datum, TimeCS cs) throws FactoryExceptionCreates a temporal coordinate reference system.- Specified by:
createTemporalCRSin interfaceCRSFactory- Parameters:
properties- Name and other properties to give to the new object.datum- Temporal datum to use in created CRS.cs- The Temporal coordinate system for the created CRS.- Returns:
- The coordinate reference system for the given properties.
- Throws:
FactoryException- if the object creation failed.
-
createVerticalCRS
public VerticalCRS createVerticalCRS(Map<String, ?> properties, VerticalDatum datum, VerticalCS cs) throws FactoryExceptionCreates a vertical coordinate reference system.- Specified by:
createVerticalCRSin interfaceCRSFactory- Parameters:
properties- Name and other properties to give to the new object.datum- Vertical datum to use in created CRS.cs- The Vertical coordinate system for the created CRS.- Returns:
- The coordinate reference system for the given properties.
- Throws:
FactoryException- if the object creation failed.
-
createGeocentricCRS
public GeocentricCRS createGeocentricCRS(Map<String, ?> properties, GeodeticDatum datum, CartesianCS cs) throws FactoryExceptionCreates a geocentric coordinate reference system from a cartesian coordinate system.- Specified by:
createGeocentricCRSin interfaceCRSFactory- Parameters:
properties- Name and other properties to give to the new object.datum- Geodetic datum to use in created CRS.cs- The cartesian coordinate system for the created CRS.- Returns:
- The coordinate reference system for the given properties.
- Throws:
FactoryException- if the object creation failed.
-
createGeocentricCRS
public GeocentricCRS createGeocentricCRS(Map<String, ?> properties, GeodeticDatum datum, SphericalCS cs) throws FactoryExceptionCreates a geocentric coordinate reference system from a spherical coordinate system.- Specified by:
createGeocentricCRSin interfaceCRSFactory- Parameters:
properties- Name and other properties to give to the new object.datum- Geodetic datum to use in created CRS.cs- The spherical coordinate system for the created CRS.- Returns:
- The coordinate reference system for the given properties.
- Throws:
FactoryException- if the object creation failed.
-
createGeographicCRS
public GeographicCRS createGeographicCRS(Map<String, ?> properties, GeodeticDatum datum, EllipsoidalCS cs) throws FactoryExceptionCreates a geographic coordinate reference system. It could be Latitude/Longitude or Longitude/Latitude.- Specified by:
createGeographicCRSin interfaceCRSFactory- Parameters:
properties- Name and other properties to give to the new object.datum- Geodetic datum to use in created CRS.cs- The ellipsoidal coordinate system for the created CRS.- Returns:
- The coordinate reference system for the given properties.
- Throws:
FactoryException- if the object creation failed.
-
createDerivedCRS
public DerivedCRS createDerivedCRS(Map<String, ?> properties, CoordinateReferenceSystem baseCRS, Conversion conversionFromBase, CoordinateSystem derivedCS) throws FactoryExceptionCreates a derived coordinate reference system from a conversion. It is the user's responsability to ensure that the conversion performs all required steps, including unit conversions and change of axis order, if needed.- Specified by:
createDerivedCRSin interfaceCRSFactory- Parameters:
properties- Name and other properties to give to the new object.baseCRS- Coordinate reference system to base projection on.conversionFromBase- The defining conversion.derivedCS- The coordinate system for the derived CRS.- Returns:
- The coordinate reference system for the given properties.
- Throws:
FactoryException- if the object creation failed.- Since:
- 2.5
- See Also:
-
CoordinateOperationFactory.createDefiningConversion(java.util.Map<java.lang.String, ?>, org.geotools.api.referencing.operation.OperationMethod, org.geotools.api.parameter.ParameterValueGroup)MathTransformFactory.createBaseToDerived(org.geotools.api.referencing.crs.CoordinateReferenceSystem, org.geotools.api.parameter.ParameterValueGroup, org.geotools.api.referencing.cs.CoordinateSystem)
-
createProjectedCRS
public ProjectedCRS createProjectedCRS(Map<String, Object> properties, OperationMethod method, GeographicCRS base, MathTransform baseToDerived, CartesianCS derivedCS) throws FactoryExceptionCreates a projected coordinate reference system from a transform.NOTE: It is the user's responsability to ensure that the
baseToDerivedtransform performs all required steps, including unit conversions and change of axis order, if needed. TheReferencingFactoryContainerclass provides conveniences methods for this task.- Parameters:
properties- Name and other properties to give to the new object.method- A description of the method for the projection.base- Geographic coordinate reference system to base projection on.baseToDerived- The transform from the geographic to the projected CRS.derivedCS- The coordinate system for the projected CRS.- Throws:
FactoryException- if the object creation failed.
-
createProjectedCRS
public ProjectedCRS createProjectedCRS(Map<String, ?> properties, GeographicCRS baseCRS, Conversion conversionFromBase, CartesianCS derivedCS) throws FactoryExceptionCreates a projected coordinate reference system from a conversion. The supplied conversion should not includes the operation steps for performing unit conversions and change of axis order since those operations will be inferred by this constructor- Specified by:
createProjectedCRSin interfaceCRSFactory- Parameters:
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.- Returns:
- The coordinate reference system for the given properties.
- Throws:
FactoryException- if the object creation failed.- Since:
- 2.5
- See Also:
-
CoordinateOperationFactory.createDefiningConversion(java.util.Map<java.lang.String, ?>, org.geotools.api.referencing.operation.OperationMethod, org.geotools.api.parameter.ParameterValueGroup)MathTransformFactory.createBaseToDerived(org.geotools.api.referencing.crs.CoordinateReferenceSystem, org.geotools.api.parameter.ParameterValueGroup, org.geotools.api.referencing.cs.CoordinateSystem)
-
createFromXML
Creates a coordinate reference system object from a XML string.- Specified by:
createFromXMLin interfaceCRSFactory- Parameters:
xml- Coordinate reference system encoded in XML format.- Returns:
- The coordinate reference system for the given XML.
- Throws:
FactoryException- if the object creation failed.
-
createFromWKT
Creates a coordinate reference system object from a string.- Specified by:
createFromWKTin interfaceCRSFactory- Parameters:
wkt- Coordinate system encoded in Well-Known Text format.- Returns:
- The coordinate reference system for the given WKT.
- Throws:
FactoryException- if the object creation failed.
-