|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectFactory
ReferencingFactory
ReferencingObjectFactory
@Buffered @ThreadSafe public class ReferencingObjectFactory
Builds Geotk 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.
| referencing/geotk-referencing (download) | View source code for this class |
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class Factory |
|---|
Factory.Availability, Factory.Organizer |
| Field Summary |
|---|
| Fields inherited from class ReferencingFactory |
|---|
LOGGER |
| Fields inherited from class Factory |
|---|
EMPTY_HINTS, hints |
| Constructor Summary | |
|---|---|
ReferencingObjectFactory()
Constructs a default factory. |
|
ReferencingObjectFactory(Hints hints)
Constructs a factory with the specified hints. |
|
| Method Summary | |
|---|---|
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. |
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 (optionally) 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. |
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. |
Map<RenderingHints.Key,?> |
getImplementationHints()
Returns the hints used by this factory to customize its use. |
| Methods inherited from class ReferencingFactory |
|---|
ensureNonNull, getVendor |
| Methods inherited from class Factory |
|---|
availability, dispose, equals, hasCompatibleHints, hashCode, setOrdering, toString |
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface Factory |
|---|
getVendor |
| Constructor Detail |
|---|
public ReferencingObjectFactory()
DatumFactory factory = FactoryFinder.getDatumFactory (null); CSFactory factory = FactoryFinder.getCSFactory (null); CRSFactory factory = FactoryFinder.getCRSFactory (null);
FactoryFinderpublic 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.FactoryFinder| Method Detail |
|---|
public Map<RenderingHints.Key,?> getImplementationHints()
getImplementationHints in class Factory
public Ellipsoid createEllipsoid(Map<String,?> properties,
double semiMajorAxis,
double semiMinorAxis,
Unit<Length> unit)
throws FactoryException
createEllipsoid in interface DatumFactoryproperties - 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 DatumFactoryproperties - 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 DatumFactoryproperties - 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 DatumFactoryproperties - 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 DatumFactoryproperties - 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 DatumFactoryproperties - 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 DatumFactoryproperties - 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 DatumFactoryproperties - 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 CSFactoryproperties - 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 CSFactoryproperties - 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 CSFactoryproperties - 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 CSFactoryproperties - 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 CSFactoryproperties - 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 CSFactoryproperties - 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 CSFactoryproperties - 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 CSFactoryproperties - 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 CSFactoryproperties - 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 CSFactoryproperties - 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 CSFactoryproperties - 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 CSFactoryproperties - 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 CSFactoryproperties - 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 CSFactoryproperties - 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 CSFactoryproperties - 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 CRSFactoryproperties - 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 CRSFactoryproperties - 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 CRSFactoryproperties - 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 CRSFactoryproperties - 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 CRSFactoryproperties - 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 CRSFactoryproperties - 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 CRSFactoryproperties - 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 CRSFactoryproperties - 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,
CoordinateReferenceSystem baseCRS,
Conversion conversionFromBase,
CoordinateSystem derivedCS)
throws FactoryException
createDerivedCRS in interface CRSFactoryproperties - 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.
public ProjectedCRS createProjectedCRS(Map<String,?> properties,
GeographicCRS baseCRS,
Conversion conversionFromBase,
CartesianCS derivedCS)
throws FactoryException
createProjectedCRS in interface CRSFactoryproperties - 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.
public CoordinateReferenceSystem createFromXML(String xml)
throws FactoryException
createFromXML in interface CRSFactoryxml - Coordinate reference system encoded in XML format.
FactoryException - if the object creation failed.
public CoordinateReferenceSystem createFromWKT(String wkt)
throws FactoryException
createFromWKT in interface CRSFactorywkt - Coordinate system encoded in Well-Known Text format.
FactoryException - if the object creation failed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||