| org.geotools.referencing.factory.ReferencingFactory org.geotools.referencing.factory.ReferencingObjectFactory
All known Subclasses: org.geotools.referencing.factory.GeotoolsFactory,
ReferencingObjectFactory | public class ReferencingObjectFactory extends ReferencingFactory implements CSFactory,DatumFactory,CRSFactory,BufferedFactory(Code) | | Builds Geotools implementations of
,
and
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 version: $Id: ReferencingObjectFactory.java 28031 2007-11-23 21:24:22Z desruisseaux $ author: Martin Desruisseaux |
Method Summary | |
public AffineCS | createAffineCS(Map properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1) Creates a two dimensional coordinate system from the given pair of axis. | public AffineCS | createAffineCS(Map properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1, CoordinateSystemAxis axis2) Creates a three dimensional coordinate system from the given set of axis. | public CartesianCS | createCartesianCS(Map properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1) Creates a two dimensional cartesian coordinate system from the given pair of axis. | public CartesianCS | createCartesianCS(Map properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1, CoordinateSystemAxis axis2) Creates a three dimensional cartesian coordinate system from the given set of axis. | public CompoundCRS | createCompoundCRS(Map properties, CoordinateReferenceSystem[] elements) Creates a compound coordinate reference system from an ordered
list of
CoordinateReferenceSystem objects. | public CoordinateSystemAxis | createCoordinateSystemAxis(Map properties, String abbreviation, AxisDirection direction, Unit unit) Creates a coordinate system axis from an abbreviation and a unit. | public CylindricalCS | createCylindricalCS(Map properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1, CoordinateSystemAxis axis2) Creates a cylindrical coordinate system from the given set of axis. | public DerivedCRS | createDerivedCRS(Map properties, OperationMethod method, CoordinateReferenceSystem base, MathTransform baseToDerived, CoordinateSystem derivedCS) Creates a derived coordinate reference system. | public DerivedCRS | createDerivedCRS(Map properties, CoordinateReferenceSystem baseCRS, Conversion conversionFromBase, CoordinateSystem derivedCS) Not yet implemented in GeoTools 2.4. | public Ellipsoid | createEllipsoid(Map properties, double semiMajorAxis, double semiMinorAxis, Unit unit) Creates an ellipsoid from radius values. | public EllipsoidalCS | createEllipsoidalCS(Map properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1) Creates an ellipsoidal coordinate system without ellipsoidal height. | public EllipsoidalCS | createEllipsoidalCS(Map properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1, CoordinateSystemAxis axis2) Creates an ellipsoidal coordinate system with ellipsoidal height. | public EngineeringCRS | createEngineeringCRS(Map properties, EngineeringDatum datum, CoordinateSystem cs) Creates a engineering coordinate reference system. | public EngineeringDatum | createEngineeringDatum(Map properties) Creates an engineering datum. | public Ellipsoid | createFlattenedSphere(Map properties, double semiMajorAxis, double inverseFlattening, Unit unit) Creates an ellipsoid from an major radius, and inverse flattening. | public synchronized CoordinateReferenceSystem | createFromWKT(String wkt) Creates a coordinate reference system object from a string. | public CoordinateReferenceSystem | createFromXML(String xml) Creates a coordinate reference system object from a XML string. | public GeocentricCRS | createGeocentricCRS(Map properties, GeodeticDatum datum, CartesianCS cs) Creates a geocentric coordinate reference system from a
. | public GeocentricCRS | createGeocentricCRS(Map properties, GeodeticDatum datum, SphericalCS cs) Creates a geocentric coordinate reference system from a
. | public GeodeticDatum | createGeodeticDatum(Map properties, Ellipsoid ellipsoid, PrimeMeridian primeMeridian) Creates geodetic datum from ellipsoid and (optionaly) Bursa-Wolf parameters. | public GeographicCRS | createGeographicCRS(Map properties, GeodeticDatum datum, EllipsoidalCS cs) Creates a geographic coordinate reference system. | public ImageCRS | createImageCRS(Map properties, ImageDatum datum, AffineCS cs) Creates an image coordinate reference system. | public ImageDatum | createImageDatum(Map properties, PixelInCell pixelInCell) Creates an image datum. | public LinearCS | createLinearCS(Map properties, CoordinateSystemAxis axis) Creates a linear coordinate system. | public PolarCS | createPolarCS(Map properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1) Creates a polar coordinate system from the given pair of axis. | public PrimeMeridian | createPrimeMeridian(Map properties, double longitude, Unit angularUnit) Creates a prime meridian, relative to Greenwich. | public ProjectedCRS | createProjectedCRS(Map properties, OperationMethod method, GeographicCRS base, MathTransform baseToDerived, CartesianCS derivedCS) Creates a projected coordinate reference system from a transform.
NOTE:
It is the user's responsability to ensure that the
baseToDerived transform performs
all required steps, including
, if needed. | public ProjectedCRS | createProjectedCRS(Map properties, GeographicCRS baseCRS, Conversion conversionFromBase, CartesianCS derivedCS) Not yet implemented in GeoTools 2.4. | public SphericalCS | createSphericalCS(Map properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1, CoordinateSystemAxis axis2) Creates a spherical coordinate system from the given set of axis. | public TemporalCRS | createTemporalCRS(Map properties, TemporalDatum datum, TimeCS cs) Creates a temporal coordinate reference system. | public TemporalDatum | createTemporalDatum(Map properties, Date origin) Creates a temporal datum from an enumerated type value. | public TimeCS | createTimeCS(Map properties, CoordinateSystemAxis axis) Creates a temporal coordinate system. | public UserDefinedCS | createUserDefinedCS(Map properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1) Creates a two dimensional user defined coordinate system from the given pair of axis. | public UserDefinedCS | createUserDefinedCS(Map properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1, CoordinateSystemAxis axis2) Creates a three dimensional user defined coordinate system from the given set of axis. | public VerticalCRS | createVerticalCRS(Map properties, VerticalDatum datum, VerticalCS cs) Creates a vertical coordinate reference system. | public VerticalCS | createVerticalCS(Map properties, CoordinateSystemAxis axis) Creates a vertical coordinate system. | public VerticalDatum | createVerticalDatum(Map properties, VerticalDatumType type) Creates a vertical datum from an enumerated type value. |
ReferencingObjectFactory | public ReferencingObjectFactory()(Code) | | Constructs a default factory. This method is public in order to allows instantiations
from a
. Users should
not instantiate this factory directly, but use one of the following lines instead:
factory = FactoryFinder.
;
factory = FactoryFinder.
;
factory = FactoryFinder.
;
|
createAffineCS | public AffineCS createAffineCS(Map properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1) throws FactoryException(Code) | | Creates a two dimensional coordinate system from the given pair of axis.
Parameters: properties - Name and other properties to give to the new object. Parameters: axis0 - The first axis. Parameters: axis1 - The second axis. throws: FactoryException - if the object creation failed. |
createAffineCS | public AffineCS createAffineCS(Map properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1, CoordinateSystemAxis axis2) throws FactoryException(Code) | | Creates a three dimensional coordinate system from the given set of axis.
Parameters: properties - Name and other properties to give to the new object. Parameters: axis0 - The first axis. Parameters: axis1 - The second axis. Parameters: axis2 - The third axis. throws: FactoryException - if the object creation failed. |
createCartesianCS | public CartesianCS createCartesianCS(Map properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1) throws FactoryException(Code) | | Creates a two dimensional cartesian coordinate system from the given pair of axis.
Parameters: properties - Name and other properties to give to the new object. Parameters: axis0 - The first axis. Parameters: axis1 - The second axis. throws: FactoryException - if the object creation failed. |
createCartesianCS | public CartesianCS createCartesianCS(Map properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1, CoordinateSystemAxis axis2) throws FactoryException(Code) | | Creates a three dimensional cartesian coordinate system from the given set of axis.
Parameters: properties - Name and other properties to give to the new object. Parameters: axis0 - The first axis. Parameters: axis1 - The second axis. Parameters: axis2 - The third axis. throws: FactoryException - if the object creation failed. |
createCompoundCRS | public CompoundCRS createCompoundCRS(Map properties, CoordinateReferenceSystem[] elements) throws FactoryException(Code) | | Creates a compound coordinate reference system from an ordered
list of
CoordinateReferenceSystem objects.
Parameters: properties - Name and other properties to give to the new object. Parameters: elements - ordered array of CoordinateReferenceSystem objects. throws: FactoryException - if the object creation failed. |
createCoordinateSystemAxis | public CoordinateSystemAxis createCoordinateSystemAxis(Map properties, String abbreviation, AxisDirection direction, Unit unit) throws FactoryException(Code) | | Creates a coordinate system axis from an abbreviation and a unit.
Parameters: properties - Name and other properties to give to the new object. Parameters: abbreviation - The coordinate axis abbreviation. Parameters: direction - The axis direction. Parameters: unit - The coordinate axis unit. throws: FactoryException - if the object creation failed. |
createCylindricalCS | public CylindricalCS createCylindricalCS(Map properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1, CoordinateSystemAxis axis2) throws FactoryException(Code) | | Creates a cylindrical coordinate system from the given set of axis.
Parameters: properties - Name and other properties to give to the new object. Parameters: axis0 - The first axis. Parameters: axis1 - The second axis. Parameters: axis2 - The third axis. throws: FactoryException - if the object creation failed. |
createDerivedCRS | public DerivedCRS createDerivedCRS(Map properties, OperationMethod method, CoordinateReferenceSystem base, MathTransform baseToDerived, CoordinateSystem derivedCS) throws FactoryException(Code) | | Creates a derived coordinate reference system. If the transformation is an affine
map performing a rotation, then any mixed axes must have identical units.
For example, a (lat_deg, lon_deg, height_feet)
system can be rotated in the (lat, lon) plane, since both
affected axes are in decimal degrees. But you should not rotate this coordinate
system in any other plane.
NOTE:
It is the user's responsability to ensure that the
baseToDerived transform performs
all required steps, including
, if needed. The
ReferencingFactoryContainer class provides
conveniences methods for this task.
Parameters: properties - Name and other properties to give to the new object. Parameters: method - A description of the . Parameters: base - Coordinate reference system to base the derived CRS on. Parameters: baseToDerived - The transform from the base CRS to returned CRS. Parameters: derivedCS - The coordinate system for the derived CRS. throws: FactoryException - if the object creation failed. |
createDerivedCRS | public DerivedCRS createDerivedCRS(Map properties, CoordinateReferenceSystem baseCRS, Conversion conversionFromBase, CoordinateSystem derivedCS) throws FactoryException(Code) | | Not yet implemented in GeoTools 2.4. This is implemented in GeoTools 2.5.
|
createEllipsoid | public Ellipsoid createEllipsoid(Map properties, double semiMajorAxis, double semiMinorAxis, Unit unit) throws FactoryException(Code) | | Creates an ellipsoid from radius values.
Parameters: properties - Name and other properties to give to the new object. Parameters: semiMajorAxis - Equatorial radius in supplied linear units. Parameters: semiMinorAxis - Polar radius in supplied linear units. Parameters: unit - Linear units of ellipsoid axes. throws: FactoryException - if the object creation failed. |
createEllipsoidalCS | public EllipsoidalCS createEllipsoidalCS(Map properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1) throws FactoryException(Code) | | Creates an ellipsoidal coordinate system without ellipsoidal height.
Parameters: properties - Name and other properties to give to the new object. Parameters: axis0 - The first axis. Parameters: axis1 - The second axis. throws: FactoryException - if the object creation failed. |
createEllipsoidalCS | public EllipsoidalCS createEllipsoidalCS(Map properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1, CoordinateSystemAxis axis2) throws FactoryException(Code) | | Creates an ellipsoidal coordinate system with ellipsoidal height.
Parameters: properties - Name and other properties to give to the new object. Parameters: axis0 - The first axis. Parameters: axis1 - The second axis. Parameters: axis2 - The third axis. throws: FactoryException - if the object creation failed. |
createEngineeringCRS | public EngineeringCRS createEngineeringCRS(Map properties, EngineeringDatum datum, CoordinateSystem cs) throws FactoryException(Code) | | Creates a engineering coordinate reference system.
Parameters: properties - Name and other properties to give to the new object. Parameters: datum - Engineering datum to use in created CRS. Parameters: cs - The coordinate system for the created CRS. throws: FactoryException - if the object creation failed. |
createEngineeringDatum | public EngineeringDatum createEngineeringDatum(Map properties) throws FactoryException(Code) | | Creates an engineering datum.
Parameters: properties - Name and other properties to give to the new object. throws: FactoryException - if the object creation failed. |
createFlattenedSphere | public Ellipsoid createFlattenedSphere(Map properties, double semiMajorAxis, double inverseFlattening, Unit unit) throws FactoryException(Code) | | Creates an ellipsoid from an major radius, and inverse flattening.
Parameters: properties - Name and other properties to give to the new object. Parameters: semiMajorAxis - Equatorial radius in supplied linear units. Parameters: inverseFlattening - Eccentricity of ellipsoid. Parameters: unit - Linear units of major axis. throws: FactoryException - if the object creation failed. |
createFromWKT | public synchronized CoordinateReferenceSystem createFromWKT(String wkt) throws FactoryException(Code) | | Creates a coordinate reference system object from a string.
The definition for WKT
is shown using Extended Backus Naur Form (EBNF).
Parameters: wkt - Coordinate system encoded in Well-Known Text format. throws: FactoryException - if the object creation failed. |
createFromXML | public CoordinateReferenceSystem createFromXML(String xml) throws FactoryException(Code) | | Creates a coordinate reference system object from a XML string.
Parameters: xml - Coordinate reference system encoded in XML format. throws: FactoryException - if the object creation failed. |
createGeocentricCRS | public GeocentricCRS createGeocentricCRS(Map properties, GeodeticDatum datum, CartesianCS cs) throws FactoryException(Code) | | Creates a geocentric coordinate reference system from a
.
Parameters: properties - Name and other properties to give to the new object. Parameters: datum - Geodetic datum to use in created CRS. Parameters: cs - The cartesian coordinate system for the created CRS. throws: FactoryException - if the object creation failed. |
createGeocentricCRS | public GeocentricCRS createGeocentricCRS(Map properties, GeodeticDatum datum, SphericalCS cs) throws FactoryException(Code) | | Creates a geocentric coordinate reference system from a
.
Parameters: properties - Name and other properties to give to the new object. Parameters: datum - Geodetic datum to use in created CRS. Parameters: cs - The spherical coordinate system for the created CRS. throws: FactoryException - if the object creation failed. |
createGeodeticDatum | public GeodeticDatum createGeodeticDatum(Map properties, Ellipsoid ellipsoid, PrimeMeridian primeMeridian) throws FactoryException(Code) | | Creates geodetic datum from ellipsoid and (optionaly) Bursa-Wolf parameters.
Parameters: properties - Name and other properties to give to the new object. Parameters: ellipsoid - Ellipsoid to use in new geodetic datum. Parameters: primeMeridian - Prime meridian to use in new geodetic datum. throws: FactoryException - if the object creation failed. |
createGeographicCRS | public GeographicCRS createGeographicCRS(Map properties, GeodeticDatum datum, EllipsoidalCS cs) throws FactoryException(Code) | | Creates a geographic coordinate reference system.
It could be Latitude/Longitude or
Longitude/Latitude.
Parameters: properties - Name and other properties to give to the new object. Parameters: datum - Geodetic datum to use in created CRS. Parameters: cs - The ellipsoidal coordinate system for the created CRS. throws: FactoryException - if the object creation failed. |
createImageCRS | public ImageCRS createImageCRS(Map properties, ImageDatum datum, AffineCS cs) throws FactoryException(Code) | | Creates an image coordinate reference system.
Parameters: properties - Name and other properties to give to the new object. Parameters: datum - Image datum to use in created CRS. Parameters: cs - The Cartesian or Oblique Cartesian coordinate system for the created CRS. throws: FactoryException - if the object creation failed. |
createImageDatum | public ImageDatum createImageDatum(Map properties, PixelInCell pixelInCell) throws FactoryException(Code) | | Creates an image datum.
Parameters: properties - Name and other properties to give to the new object. Parameters: pixelInCell - Specification of the way the image grid is associatedwith the image data attributes. throws: FactoryException - if the object creation failed. |
createLinearCS | public LinearCS createLinearCS(Map properties, CoordinateSystemAxis axis) throws FactoryException(Code) | | Creates a linear coordinate system.
Parameters: properties - Name and other properties to give to the new object. Parameters: axis - The axis. throws: FactoryException - if the object creation failed. |
createPolarCS | public PolarCS createPolarCS(Map properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1) throws FactoryException(Code) | | Creates a polar coordinate system from the given pair of axis.
Parameters: properties - Name and other properties to give to the new object. Parameters: axis0 - The first axis. Parameters: axis1 - The second axis. throws: FactoryException - if the object creation failed. |
createPrimeMeridian | public PrimeMeridian createPrimeMeridian(Map properties, double longitude, Unit angularUnit) throws FactoryException(Code) | | Creates a prime meridian, relative to Greenwich.
Parameters: properties - Name and other properties to give to the new object. Parameters: longitude - Longitude of prime meridian in supplied angular units East of Greenwich. Parameters: angularUnit - Angular units of longitude. throws: FactoryException - if the object creation failed. |
createProjectedCRS | public ProjectedCRS createProjectedCRS(Map properties, OperationMethod method, GeographicCRS base, MathTransform baseToDerived, CartesianCS derivedCS) throws FactoryException(Code) | | Creates a projected coordinate reference system from a transform.
NOTE:
It is the user's responsability to ensure that the
baseToDerived transform performs
all required steps, including
, if needed. The
ReferencingFactoryContainer class provides
conveniences methods for this task.
Parameters: properties - Name and other properties to give to the new object. Parameters: method - A description of the . Parameters: base - Geographic coordinate reference system to base projection on. Parameters: baseToDerived - The transform from the geographic to the projected CRS. Parameters: derivedCS - The coordinate system for the projected CRS. throws: FactoryException - if the object creation failed. |
createProjectedCRS | public ProjectedCRS createProjectedCRS(Map properties, GeographicCRS baseCRS, Conversion conversionFromBase, CartesianCS derivedCS) throws FactoryException(Code) | | Not yet implemented in GeoTools 2.4. This is implemented in GeoTools 2.5.
|
createSphericalCS | public SphericalCS createSphericalCS(Map properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1, CoordinateSystemAxis axis2) throws FactoryException(Code) | | Creates a spherical coordinate system from the given set of axis.
Parameters: properties - Name and other properties to give to the new object. Parameters: axis0 - The first axis. Parameters: axis1 - The second axis. Parameters: axis2 - The third axis. throws: FactoryException - if the object creation failed. |
createTemporalCRS | public TemporalCRS createTemporalCRS(Map properties, TemporalDatum datum, TimeCS cs) throws FactoryException(Code) | | Creates a temporal coordinate reference system.
Parameters: properties - Name and other properties to give to the new object. Parameters: datum - Temporal datum to use in created CRS. Parameters: cs - The Temporal coordinate system for the created CRS. throws: FactoryException - if the object creation failed. |
createTemporalDatum | public TemporalDatum createTemporalDatum(Map properties, Date origin) throws FactoryException(Code) | | Creates a temporal datum from an enumerated type value.
Parameters: properties - Name and other properties to give to the new object. Parameters: origin - The date and time origin of this temporal datum. throws: FactoryException - if the object creation failed. |
createTimeCS | public TimeCS createTimeCS(Map properties, CoordinateSystemAxis axis) throws FactoryException(Code) | | Creates a temporal coordinate system.
Parameters: properties - Name and other properties to give to the new object. Parameters: axis - The axis. throws: FactoryException - if the object creation failed. |
createUserDefinedCS | public UserDefinedCS createUserDefinedCS(Map properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1) throws FactoryException(Code) | | Creates a two dimensional user defined coordinate system from the given pair of axis.
Parameters: properties - Name and other properties to give to the new object. Parameters: axis0 - The first axis. Parameters: axis1 - The second axis. throws: FactoryException - if the object creation failed. |
createUserDefinedCS | public UserDefinedCS createUserDefinedCS(Map properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1, CoordinateSystemAxis axis2) throws FactoryException(Code) | | Creates a three dimensional user defined coordinate system from the given set of axis.
Parameters: properties - Name and other properties to give to the new object. Parameters: axis0 - The first axis. Parameters: axis1 - The second axis. Parameters: axis2 - The third axis. throws: FactoryException - if the object creation failed. |
createVerticalCRS | public VerticalCRS createVerticalCRS(Map properties, VerticalDatum datum, VerticalCS cs) throws FactoryException(Code) | | Creates a vertical coordinate reference system.
Parameters: properties - Name and other properties to give to the new object. Parameters: datum - Vertical datum to use in created CRS. Parameters: cs - The Vertical coordinate system for the created CRS. throws: FactoryException - if the object creation failed. |
createVerticalCS | public VerticalCS createVerticalCS(Map properties, CoordinateSystemAxis axis) throws FactoryException(Code) | | Creates a vertical coordinate system.
Parameters: properties - Name and other properties to give to the new object. Parameters: axis - The axis. throws: FactoryException - if the object creation failed. |
createVerticalDatum | public VerticalDatum createVerticalDatum(Map properties, VerticalDatumType type) throws FactoryException(Code) | | Creates a vertical datum from an enumerated type value.
Parameters: properties - Name and other properties to give to the new object. Parameters: type - The type of this vertical datum (often geoidal). throws: FactoryException - if the object creation failed. |
|
|