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 aMapargument. The content of this map is described in theObjectFactoryinterface.- Since:
- 2.4
- Author:
- Martin Desruisseaux (IRD)
-
-
Field Summary
-
Fields inherited from class ReferencingFactory
LOGGER
-
Fields inherited from class AbstractFactory
hints, MAXIMUM_PRIORITY, MINIMUM_PRIORITY, NORMAL_PRIORITY, priority
-
-
Constructor Summary
Constructors Constructor Description ReferencingObjectFactory()Constructs a default factory.ReferencingObjectFactory(Hints hints)Constructs a factory with the specified hints.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AffineCScreateAffineCS(Map<String,?> properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1)Creates a two dimensional coordinate system from the given pair of axis.AffineCScreateAffineCS(Map<String,?> properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1, CoordinateSystemAxis axis2)Creates a three dimensional coordinate system from the given set of axis.CartesianCScreateCartesianCS(Map<String,?> properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1)Creates a two dimensional cartesian coordinate system from the given pair of axis.CartesianCScreateCartesianCS(Map<String,?> properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1, CoordinateSystemAxis axis2)Creates a three dimensional cartesian coordinate system from the given set of axis.CompoundCRScreateCompoundCRS(Map<String,?> properties, CoordinateReferenceSystem[] elements)Creates a compound coordinate reference system from an ordered list ofCoordinateReferenceSystemobjects.CoordinateSystemAxiscreateCoordinateSystemAxis(Map<String,?> properties, String abbreviation, AxisDirection direction, Unit<?> unit)Creates a coordinate system axis from an abbreviation and a unit.CylindricalCScreateCylindricalCS(Map<String,?> properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1, CoordinateSystemAxis axis2)Creates a cylindrical coordinate system from the given set of axis.DerivedCRScreateDerivedCRS(Map<String,?> properties, CoordinateReferenceSystem baseCRS, Conversion conversionFromBase, CoordinateSystem derivedCS)Creates a derived coordinate reference system from a conversion.EllipsoidcreateEllipsoid(Map<String,?> properties, double semiMajorAxis, double semiMinorAxis, Unit<Length> unit)Creates an ellipsoid from radius values.EllipsoidalCScreateEllipsoidalCS(Map<String,?> properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1)Creates an ellipsoidal coordinate system without ellipsoidal height.EllipsoidalCScreateEllipsoidalCS(Map<String,?> properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1, CoordinateSystemAxis axis2)Creates an ellipsoidal coordinate system with ellipsoidal height.EngineeringCRScreateEngineeringCRS(Map<String,?> properties, EngineeringDatum datum, CoordinateSystem cs)Creates a engineering coordinate reference system.EngineeringDatumcreateEngineeringDatum(Map<String,?> properties)Creates an engineering datum.EllipsoidcreateFlattenedSphere(Map<String,?> properties, double semiMajorAxis, double inverseFlattening, Unit<Length> unit)Creates an ellipsoid from an major radius, and inverse flattening.CoordinateReferenceSystemcreateFromWKT(String wkt)Creates a coordinate reference system object from a string.CoordinateReferenceSystemcreateFromXML(String xml)Creates a coordinate reference system object from a XML string.GeocentricCRScreateGeocentricCRS(Map<String,?> properties, GeodeticDatum datum, CartesianCS cs)Creates a geocentric coordinate reference system from a cartesian coordinate system.GeocentricCRScreateGeocentricCRS(Map<String,?> properties, GeodeticDatum datum, SphericalCS cs)Creates a geocentric coordinate reference system from a spherical coordinate system.GeodeticDatumcreateGeodeticDatum(Map<String,?> properties, Ellipsoid ellipsoid, PrimeMeridian primeMeridian)Creates geodetic datum from ellipsoid and (optionaly) Bursa-Wolf parameters.GeographicCRScreateGeographicCRS(Map<String,?> properties, GeodeticDatum datum, EllipsoidalCS cs)Creates a geographic coordinate reference system.ImageCRScreateImageCRS(Map<String,?> properties, ImageDatum datum, AffineCS cs)Creates an image coordinate reference system.ImageDatumcreateImageDatum(Map<String,?> properties, PixelInCell pixelInCell)Creates an image datum.LinearCScreateLinearCS(Map<String,?> properties, CoordinateSystemAxis axis)Creates a linear coordinate system.PolarCScreatePolarCS(Map<String,?> properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1)Creates a polar coordinate system from the given pair of axis.PrimeMeridiancreatePrimeMeridian(Map<String,?> properties, double longitude, Unit<Angle> angularUnit)Creates a prime meridian, relative to Greenwich.ProjectedCRScreateProjectedCRS(Map<String,?> properties, GeographicCRS baseCRS, Conversion conversionFromBase, CartesianCS derivedCS)Creates a projected coordinate reference system from a conversion.ProjectedCRScreateProjectedCRS(Map<String,Object> properties, OperationMethod method, GeographicCRS base, MathTransform baseToDerived, CartesianCS derivedCS)Creates a projected coordinate reference system from a transform.SphericalCScreateSphericalCS(Map<String,?> properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1, CoordinateSystemAxis axis2)Creates a spherical coordinate system from the given set of axis.TemporalCRScreateTemporalCRS(Map<String,?> properties, TemporalDatum datum, TimeCS cs)Creates a temporal coordinate reference system.TemporalDatumcreateTemporalDatum(Map<String,?> properties, Date origin)Creates a temporal datum from an enumerated type value.TimeCScreateTimeCS(Map<String,?> properties, CoordinateSystemAxis axis)Creates a temporal coordinate system.UserDefinedCScreateUserDefinedCS(Map<String,?> properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1)Creates a two dimensional user defined coordinate system from the given pair of axis.UserDefinedCScreateUserDefinedCS(Map<String,?> properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1, CoordinateSystemAxis axis2)Creates a three dimensional user defined coordinate system from the given set of axis.VerticalCRScreateVerticalCRS(Map<String,?> properties, VerticalDatum datum, VerticalCS cs)Creates a vertical coordinate reference system.VerticalCScreateVerticalCS(Map<String,?> properties, CoordinateSystemAxis axis)Creates a vertical coordinate system.VerticalDatumcreateVerticalDatum(Map<String,?> properties, VerticalDatumType type)Creates a vertical datum from an enumerated type value.-
Methods inherited from class ReferencingFactory
ensureNonNull, getVendor
-
Methods inherited from class AbstractFactory
addImplementationHints, equals, getImplementationHints, getPriority, hashCode, onDeregistration, onRegistration, toString
-
Methods inherited from interface Factory
getImplementationHints
-
-
-
-
Constructor Detail
-
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
public ReferencingObjectFactory(Hints hints)
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 Detail
-
createEllipsoid
public Ellipsoid createEllipsoid(Map<String,?> properties, double semiMajorAxis, double semiMinorAxis, Unit<Length> unit) throws FactoryException
Creates 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 FactoryException
Creates 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 FactoryException
Creates 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 FactoryException
Creates 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 FactoryException
Creates 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 FactoryException
Creates 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
public EngineeringDatum createEngineeringDatum(Map<String,?> properties) throws FactoryException
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 FactoryException
Creates 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 FactoryException
Creates 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 FactoryException
Creates 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 FactoryException
Creates 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 FactoryException
Creates 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 FactoryException
Creates 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 FactoryException
Creates 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 FactoryException
Creates 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 FactoryException
Creates 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 FactoryException
Creates 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 FactoryException
Creates 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 FactoryException
Creates 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 FactoryException
Creates 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 FactoryException
Creates 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 FactoryException
Creates 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 FactoryException
Creates 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 FactoryException
Creates 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 FactoryException
Creates 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 FactoryException
Creates 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 FactoryException
Creates 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 FactoryException
Creates 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 FactoryException
Creates 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 FactoryException
Creates 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 FactoryException
Creates 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 FactoryException
Creates 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 FactoryException
Creates 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 FactoryException
Creates 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
public CoordinateReferenceSystem createFromXML(String xml) throws FactoryException
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
public CoordinateReferenceSystem createFromWKT(String wkt) throws FactoryException
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.
-
-