public class ReferencingObjectFactory extends ReferencingFactory implements CSFactory, DatumFactory, CRSFactory, BufferedFactory
Map
argument. The content of this map is described in the ObjectFactory
interface.LOGGER
hints, MAXIMUM_PRIORITY, MINIMUM_PRIORITY, NORMAL_PRIORITY, priority
Constructor and Description |
---|
ReferencingObjectFactory()
Constructs a default factory.
|
ReferencingObjectFactory(Hints hints)
Constructs a factory with the specified hints.
|
Modifier and Type | Method and Description |
---|---|
AffineCS |
createAffineCS(Map<String,?> properties,
CoordinateSystemAxis axis0,
CoordinateSystemAxis axis1)
Creates a two dimensional coordinate system from the given pair of axis.
|
AffineCS |
createAffineCS(Map<String,?> properties,
CoordinateSystemAxis axis0,
CoordinateSystemAxis axis1,
CoordinateSystemAxis axis2)
Creates a three dimensional coordinate system from the given set of axis.
|
CartesianCS |
createCartesianCS(Map<String,?> properties,
CoordinateSystemAxis axis0,
CoordinateSystemAxis axis1)
Creates a two dimensional cartesian coordinate system from the given pair of axis.
|
CartesianCS |
createCartesianCS(Map<String,?> properties,
CoordinateSystemAxis axis0,
CoordinateSystemAxis axis1,
CoordinateSystemAxis axis2)
Creates a three dimensional cartesian coordinate system from the given set of axis.
|
CompoundCRS |
createCompoundCRS(Map<String,?> properties,
CoordinateReferenceSystem[] elements)
Creates a compound coordinate reference system from an ordered list of
CoordinateReferenceSystem objects. |
CoordinateSystemAxis |
createCoordinateSystemAxis(Map<String,?> properties,
String abbreviation,
AxisDirection direction,
Unit<?> unit)
Creates a coordinate system axis from an abbreviation and a unit.
|
CylindricalCS |
createCylindricalCS(Map<String,?> properties,
CoordinateSystemAxis axis0,
CoordinateSystemAxis axis1,
CoordinateSystemAxis axis2)
Creates a cylindrical coordinate system from the given set of axis.
|
DerivedCRS |
createDerivedCRS(Map<String,?> properties,
CoordinateReferenceSystem baseCRS,
Conversion conversionFromBase,
CoordinateSystem derivedCS)
Creates a derived coordinate reference system from a conversion.
|
DerivedCRS |
createDerivedCRS(Map<String,?> properties,
OperationMethod method,
CoordinateReferenceSystem base,
MathTransform baseToDerived,
CoordinateSystem derivedCS)
Deprecated.
Use
CoordinateOperationFactory.createDefiningConversion(java.util.Map<java.lang.String, ?>, org.opengis.referencing.operation.OperationMethod, org.opengis.parameter.ParameterValueGroup) followed by
createDerivedCRS(java.util.Map<java.lang.String, ?>, org.opengis.referencing.operation.OperationMethod, org.opengis.referencing.crs.CoordinateReferenceSystem, org.opengis.referencing.operation.MathTransform, org.opengis.referencing.cs.CoordinateSystem) instead. |
Ellipsoid |
createEllipsoid(Map<String,?> properties,
double semiMajorAxis,
double semiMinorAxis,
Unit<Length> unit)
Creates an ellipsoid from radius values.
|
EllipsoidalCS |
createEllipsoidalCS(Map<String,?> properties,
CoordinateSystemAxis axis0,
CoordinateSystemAxis axis1)
Creates an ellipsoidal coordinate system without ellipsoidal height.
|
EllipsoidalCS |
createEllipsoidalCS(Map<String,?> properties,
CoordinateSystemAxis axis0,
CoordinateSystemAxis axis1,
CoordinateSystemAxis axis2)
Creates an ellipsoidal coordinate system with ellipsoidal height.
|
EngineeringCRS |
createEngineeringCRS(Map<String,?> properties,
EngineeringDatum datum,
CoordinateSystem cs)
Creates a engineering coordinate reference system.
|
EngineeringDatum |
createEngineeringDatum(Map<String,?> properties)
Creates an engineering datum.
|
Ellipsoid |
createFlattenedSphere(Map<String,?> properties,
double semiMajorAxis,
double inverseFlattening,
Unit<Length> unit)
Creates an ellipsoid from an major radius, and inverse flattening.
|
CoordinateReferenceSystem |
createFromWKT(String wkt)
Creates a coordinate reference system object from a string.
|
CoordinateReferenceSystem |
createFromXML(String xml)
Creates a coordinate reference system object from a XML string.
|
GeocentricCRS |
createGeocentricCRS(Map<String,?> properties,
GeodeticDatum datum,
CartesianCS cs)
Creates a geocentric coordinate reference system from a cartesian
coordinate system.
|
GeocentricCRS |
createGeocentricCRS(Map<String,?> properties,
GeodeticDatum datum,
SphericalCS cs)
Creates a geocentric coordinate reference system from a spherical
coordinate system.
|
GeodeticDatum |
createGeodeticDatum(Map<String,?> properties,
Ellipsoid ellipsoid,
PrimeMeridian primeMeridian)
Creates geodetic datum from ellipsoid and (optionaly) Bursa-Wolf parameters.
|
GeographicCRS |
createGeographicCRS(Map<String,?> properties,
GeodeticDatum datum,
EllipsoidalCS cs)
Creates a geographic coordinate reference system.
|
ImageCRS |
createImageCRS(Map<String,?> properties,
ImageDatum datum,
AffineCS cs)
Creates an image coordinate reference system.
|
ImageDatum |
createImageDatum(Map<String,?> properties,
PixelInCell pixelInCell)
Creates an image datum.
|
LinearCS |
createLinearCS(Map<String,?> properties,
CoordinateSystemAxis axis)
Creates a linear coordinate system.
|
PolarCS |
createPolarCS(Map<String,?> properties,
CoordinateSystemAxis axis0,
CoordinateSystemAxis axis1)
Creates a polar coordinate system from the given pair of axis.
|
PrimeMeridian |
createPrimeMeridian(Map<String,?> properties,
double longitude,
Unit<Angle> angularUnit)
Creates a prime meridian, relative to Greenwich.
|
ProjectedCRS |
createProjectedCRS(Map<String,?> properties,
GeographicCRS baseCRS,
Conversion conversionFromBase,
CartesianCS derivedCS)
Creates a projected coordinate reference system from a conversion.
|
ProjectedCRS |
createProjectedCRS(Map<String,?> properties,
OperationMethod method,
GeographicCRS base,
MathTransform baseToDerived,
CartesianCS derivedCS)
Deprecated.
Use
CoordinateOperationFactory.createDefiningConversion(java.util.Map<java.lang.String, ?>, org.opengis.referencing.operation.OperationMethod, org.opengis.parameter.ParameterValueGroup) followed by
createProjectedCRS(java.util.Map<java.lang.String, ?>, org.opengis.referencing.operation.OperationMethod, org.opengis.referencing.crs.GeographicCRS, org.opengis.referencing.operation.MathTransform, org.opengis.referencing.cs.CartesianCS) instead. |
SphericalCS |
createSphericalCS(Map<String,?> properties,
CoordinateSystemAxis axis0,
CoordinateSystemAxis axis1,
CoordinateSystemAxis axis2)
Creates a spherical coordinate system from the given set of axis.
|
TemporalCRS |
createTemporalCRS(Map<String,?> properties,
TemporalDatum datum,
TimeCS cs)
Creates a temporal coordinate reference system.
|
TemporalDatum |
createTemporalDatum(Map<String,?> properties,
Date origin)
Creates a temporal datum from an enumerated type value.
|
TimeCS |
createTimeCS(Map<String,?> properties,
CoordinateSystemAxis axis)
Creates a temporal coordinate system.
|
UserDefinedCS |
createUserDefinedCS(Map<String,?> properties,
CoordinateSystemAxis axis0,
CoordinateSystemAxis axis1)
Creates a two dimensional user defined coordinate system from the given pair of axis.
|
UserDefinedCS |
createUserDefinedCS(Map<String,?> properties,
CoordinateSystemAxis axis0,
CoordinateSystemAxis axis1,
CoordinateSystemAxis axis2)
Creates a three dimensional user defined coordinate system from the given set of axis.
|
VerticalCRS |
createVerticalCRS(Map<String,?> properties,
VerticalDatum datum,
VerticalCS cs)
Creates a vertical coordinate reference system.
|
VerticalCS |
createVerticalCS(Map<String,?> properties,
CoordinateSystemAxis axis)
Creates a vertical coordinate system.
|
VerticalDatum |
createVerticalDatum(Map<String,?> properties,
VerticalDatumType type)
Creates a vertical datum from an enumerated type value.
|
ensureNonNull, getVendor
addImplementationHints, equals, getImplementationHints, getPriority, hashCode, onDeregistration, onRegistration, toString
getImplementationHints
public ReferencingObjectFactory()
DatumFactory factory = FactoryFinder.getDatumFactorynull); CSFactory factory = FactoryFinder.getCSFactory(null); CRSFactory factory = FactoryFinder.getCRSFactory(null);
public ReferencingObjectFactory(Hints hints)
DatumFactory factory = FactoryFinder.getDatumFactory(hints); CSFactory factory = FactoryFinder.getCSFactory(hints); CRSFactory factory = FactoryFinder.getCRSFactory(hints);
hints
- An optional set of hints, or null
if none.public Ellipsoid createEllipsoid(Map<String,?> properties, double semiMajorAxis, double semiMinorAxis, Unit<Length> unit) throws FactoryException
createEllipsoid
in interface DatumFactory
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.FactoryException
- if the object creation failed.public Ellipsoid createFlattenedSphere(Map<String,?> properties, double semiMajorAxis, double inverseFlattening, Unit<Length> unit) throws FactoryException
createFlattenedSphere
in interface DatumFactory
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.FactoryException
- if the object creation failed.public PrimeMeridian createPrimeMeridian(Map<String,?> properties, double longitude, Unit<Angle> angularUnit) throws FactoryException
createPrimeMeridian
in interface DatumFactory
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.FactoryException
- if the object creation failed.public GeodeticDatum createGeodeticDatum(Map<String,?> properties, Ellipsoid ellipsoid, PrimeMeridian primeMeridian) throws FactoryException
createGeodeticDatum
in interface DatumFactory
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.FactoryException
- if the object creation failed.public VerticalDatum createVerticalDatum(Map<String,?> properties, VerticalDatumType type) throws FactoryException
createVerticalDatum
in interface DatumFactory
properties
- Name and other properties to give to the new object.type
- The type of this vertical datum (often geoidal).FactoryException
- if the object creation failed.public TemporalDatum createTemporalDatum(Map<String,?> properties, Date origin) throws FactoryException
createTemporalDatum
in interface DatumFactory
properties
- Name and other properties to give to the new object.origin
- The date and time origin of this temporal datum.FactoryException
- if the object creation failed.public EngineeringDatum createEngineeringDatum(Map<String,?> properties) throws FactoryException
createEngineeringDatum
in interface DatumFactory
properties
- Name and other properties to give to the new object.FactoryException
- if the object creation failed.public ImageDatum createImageDatum(Map<String,?> properties, PixelInCell pixelInCell) throws FactoryException
createImageDatum
in interface DatumFactory
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.FactoryException
- if the object creation failed.public CoordinateSystemAxis createCoordinateSystemAxis(Map<String,?> properties, String abbreviation, AxisDirection direction, Unit<?> unit) throws FactoryException
createCoordinateSystemAxis
in interface CSFactory
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.FactoryException
- if the object creation failed.public CartesianCS createCartesianCS(Map<String,?> properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1) throws FactoryException
createCartesianCS
in interface CSFactory
properties
- Name and other properties to give to the new object.axis0
- The first axis.axis1
- The second axis.FactoryException
- if the object creation failed.public CartesianCS createCartesianCS(Map<String,?> properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1, CoordinateSystemAxis axis2) throws FactoryException
createCartesianCS
in interface CSFactory
properties
- Name and other properties to give to the new object.axis0
- The first axis.axis1
- The second axis.axis2
- The third axis.FactoryException
- if the object creation failed.public AffineCS createAffineCS(Map<String,?> properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1) throws FactoryException
createAffineCS
in interface CSFactory
properties
- Name and other properties to give to the new object.axis0
- The first axis.axis1
- The second axis.FactoryException
- if the object creation failed.public AffineCS createAffineCS(Map<String,?> properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1, CoordinateSystemAxis axis2) throws FactoryException
createAffineCS
in interface CSFactory
properties
- Name and other properties to give to the new object.axis0
- The first axis.axis1
- The second axis.axis2
- The third axis.FactoryException
- if the object creation failed.public PolarCS createPolarCS(Map<String,?> properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1) throws FactoryException
createPolarCS
in interface CSFactory
properties
- Name and other properties to give to the new object.axis0
- The first axis.axis1
- The second axis.FactoryException
- if the object creation failed.public CylindricalCS createCylindricalCS(Map<String,?> properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1, CoordinateSystemAxis axis2) throws FactoryException
createCylindricalCS
in interface CSFactory
properties
- Name and other properties to give to the new object.axis0
- The first axis.axis1
- The second axis.axis2
- The third axis.FactoryException
- if the object creation failed.public SphericalCS createSphericalCS(Map<String,?> properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1, CoordinateSystemAxis axis2) throws FactoryException
createSphericalCS
in interface CSFactory
properties
- Name and other properties to give to the new object.axis0
- The first axis.axis1
- The second axis.axis2
- The third axis.FactoryException
- if the object creation failed.public EllipsoidalCS createEllipsoidalCS(Map<String,?> properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1) throws FactoryException
createEllipsoidalCS
in interface CSFactory
properties
- Name and other properties to give to the new object.axis0
- The first axis.axis1
- The second axis.FactoryException
- if the object creation failed.public EllipsoidalCS createEllipsoidalCS(Map<String,?> properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1, CoordinateSystemAxis axis2) throws FactoryException
createEllipsoidalCS
in interface CSFactory
properties
- Name and other properties to give to the new object.axis0
- The first axis.axis1
- The second axis.axis2
- The third axis.FactoryException
- if the object creation failed.public VerticalCS createVerticalCS(Map<String,?> properties, CoordinateSystemAxis axis) throws FactoryException
createVerticalCS
in interface CSFactory
properties
- Name and other properties to give to the new object.axis
- The axis.FactoryException
- if the object creation failed.public TimeCS createTimeCS(Map<String,?> properties, CoordinateSystemAxis axis) throws FactoryException
createTimeCS
in interface CSFactory
properties
- Name and other properties to give to the new object.axis
- The axis.FactoryException
- if the object creation failed.public LinearCS createLinearCS(Map<String,?> properties, CoordinateSystemAxis axis) throws FactoryException
createLinearCS
in interface CSFactory
properties
- Name and other properties to give to the new object.axis
- The axis.FactoryException
- if the object creation failed.public UserDefinedCS createUserDefinedCS(Map<String,?> properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1) throws FactoryException
createUserDefinedCS
in interface CSFactory
properties
- Name and other properties to give to the new object.axis0
- The first axis.axis1
- The second axis.FactoryException
- if the object creation failed.public UserDefinedCS createUserDefinedCS(Map<String,?> properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1, CoordinateSystemAxis axis2) throws FactoryException
createUserDefinedCS
in interface CSFactory
properties
- Name and other properties to give to the new object.axis0
- The first axis.axis1
- The second axis.axis2
- The third axis.FactoryException
- if the object creation failed.public CompoundCRS createCompoundCRS(Map<String,?> properties, CoordinateReferenceSystem[] elements) throws FactoryException
CoordinateReferenceSystem
objects.createCompoundCRS
in interface CRSFactory
properties
- Name and other properties to give to the new object.elements
- ordered array of CoordinateReferenceSystem
objects.FactoryException
- if the object creation failed.public EngineeringCRS createEngineeringCRS(Map<String,?> properties, EngineeringDatum datum, CoordinateSystem cs) throws FactoryException
createEngineeringCRS
in interface CRSFactory
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.FactoryException
- if the object creation failed.public ImageCRS createImageCRS(Map<String,?> properties, ImageDatum datum, AffineCS cs) throws FactoryException
createImageCRS
in interface CRSFactory
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.FactoryException
- if the object creation failed.public TemporalCRS createTemporalCRS(Map<String,?> properties, TemporalDatum datum, TimeCS cs) throws FactoryException
createTemporalCRS
in interface CRSFactory
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.FactoryException
- if the object creation failed.public VerticalCRS createVerticalCRS(Map<String,?> properties, VerticalDatum datum, VerticalCS cs) throws FactoryException
createVerticalCRS
in interface CRSFactory
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.FactoryException
- if the object creation failed.public GeocentricCRS createGeocentricCRS(Map<String,?> properties, GeodeticDatum datum, CartesianCS cs) throws FactoryException
createGeocentricCRS
in interface CRSFactory
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.FactoryException
- if the object creation failed.public GeocentricCRS createGeocentricCRS(Map<String,?> properties, GeodeticDatum datum, SphericalCS cs) throws FactoryException
createGeocentricCRS
in interface CRSFactory
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.FactoryException
- if the object creation failed.public GeographicCRS createGeographicCRS(Map<String,?> properties, GeodeticDatum datum, EllipsoidalCS cs) throws FactoryException
createGeographicCRS
in interface CRSFactory
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.FactoryException
- if the object creation failed.public DerivedCRS createDerivedCRS(Map<String,?> properties, OperationMethod method, CoordinateReferenceSystem base, MathTransform baseToDerived, CoordinateSystem derivedCS) throws FactoryException
CoordinateOperationFactory.createDefiningConversion(java.util.Map<java.lang.String, ?>, org.opengis.referencing.operation.OperationMethod, org.opengis.parameter.ParameterValueGroup)
followed by
createDerivedCRS(java.util.Map<java.lang.String, ?>, org.opengis.referencing.operation.OperationMethod, org.opengis.referencing.crs.CoordinateReferenceSystem, org.opengis.referencing.operation.MathTransform, org.opengis.referencing.cs.CoordinateSystem)
instead.NOTE: It is the user's responsability to ensure that the baseToDerived
transform performs all required steps, including unit
conversions and change of axis order, if needed. The ReferencingFactoryContainer
class provides conveniences methods for this task.
properties
- Name and other properties to give to the new object.method
- A description of the method for the
conversion.base
- Coordinate reference system to base the derived CRS on.baseToDerived
- The transform from the base CRS to returned CRS.derivedCS
- The coordinate system for the derived CRS.FactoryException
- if the object creation failed.public DerivedCRS createDerivedCRS(Map<String,?> properties, CoordinateReferenceSystem baseCRS, Conversion conversionFromBase, CoordinateSystem derivedCS) throws FactoryException
createDerivedCRS
in interface CRSFactory
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.FactoryException
- if the object creation failed.CoordinateOperationFactory.createDefiningConversion(java.util.Map<java.lang.String, ?>, org.opengis.referencing.operation.OperationMethod, org.opengis.parameter.ParameterValueGroup)
,
MathTransformFactory.createBaseToDerived(org.opengis.referencing.crs.CoordinateReferenceSystem, org.opengis.parameter.ParameterValueGroup, org.opengis.referencing.cs.CoordinateSystem)
public ProjectedCRS createProjectedCRS(Map<String,?> properties, OperationMethod method, GeographicCRS base, MathTransform baseToDerived, CartesianCS derivedCS) throws FactoryException
CoordinateOperationFactory.createDefiningConversion(java.util.Map<java.lang.String, ?>, org.opengis.referencing.operation.OperationMethod, org.opengis.parameter.ParameterValueGroup)
followed by
createProjectedCRS(java.util.Map<java.lang.String, ?>, org.opengis.referencing.operation.OperationMethod, org.opengis.referencing.crs.GeographicCRS, org.opengis.referencing.operation.MathTransform, org.opengis.referencing.cs.CartesianCS)
instead.NOTE: It is the user's responsability to ensure that the baseToDerived
transform performs all required steps, including unit
conversions and change of axis order, if needed. The ReferencingFactoryContainer
class provides conveniences methods for this task.
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.FactoryException
- if the object creation failed.public ProjectedCRS createProjectedCRS(Map<String,?> properties, GeographicCRS baseCRS, Conversion conversionFromBase, CartesianCS derivedCS) throws FactoryException
createProjectedCRS
in interface CRSFactory
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.CoordinateOperationFactory.createDefiningConversion(java.util.Map<java.lang.String, ?>, org.opengis.referencing.operation.OperationMethod, org.opengis.parameter.ParameterValueGroup)
,
MathTransformFactory.createBaseToDerived(org.opengis.referencing.crs.CoordinateReferenceSystem, org.opengis.parameter.ParameterValueGroup, org.opengis.referencing.cs.CoordinateSystem)
public CoordinateReferenceSystem createFromXML(String xml) throws FactoryException
createFromXML
in interface CRSFactory
xml
- Coordinate reference system encoded in XML format.FactoryException
- if the object creation failed.public CoordinateReferenceSystem createFromWKT(String wkt) throws FactoryException
createFromWKT
in interface CRSFactory
wkt
- Coordinate system encoded in Well-Known Text format.FactoryException
- if the object creation failed.Copyright © 1996–2019 Geotools. All rights reserved.