org.geotools.referencing.factory
Class GeotoolsFactory

java.lang.Object
  extended byorg.geotools.factory.AbstractFactory
      extended byorg.geotools.referencing.factory.AbstractFactory
          extended byorg.geotools.referencing.factory.GeotoolsFactory
All Implemented Interfaces:
org.opengis.referencing.crs.CRSFactory, org.opengis.referencing.cs.CSFactory, org.opengis.referencing.datum.DatumFactory, Factory, org.opengis.referencing.Factory, org.opengis.referencing.ObjectFactory, javax.imageio.spi.RegisterableService

public class GeotoolsFactory
extends AbstractFactory
implements org.opengis.referencing.cs.CSFactory, org.opengis.referencing.datum.DatumFactory, org.opengis.referencing.crs.CRSFactory

Builds Geotools implementations of CRS, CS and datum objects. Most factory methods expect properties given through a Map argument. The content of this map is described in the ObjectFactory interface.

Since:
2.1
Version:
$Id: GeotoolsFactory.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
Martin Desruisseaux

Field Summary
 
Fields inherited from class org.geotools.referencing.factory.AbstractFactory
LOGGER
 
Fields inherited from class org.geotools.factory.AbstractFactory
hints, MAXIMUM_PRIORITY, MINIMUM_PRIORITY, NORMAL_PRIORITY, priority
 
Constructor Summary
GeotoolsFactory()
          Constructs a default factory.
 
Method Summary
 org.opengis.referencing.cs.AffineCS createAffineCS(java.util.Map properties, org.opengis.referencing.cs.CoordinateSystemAxis axis0, org.opengis.referencing.cs.CoordinateSystemAxis axis1)
          Creates a two dimensional coordinate system from the given pair of axis.
 org.opengis.referencing.cs.AffineCS createAffineCS(java.util.Map properties, org.opengis.referencing.cs.CoordinateSystemAxis axis0, org.opengis.referencing.cs.CoordinateSystemAxis axis1, org.opengis.referencing.cs.CoordinateSystemAxis axis2)
          Creates a three dimensional coordinate system from the given set of axis.
 org.opengis.referencing.cs.CartesianCS createCartesianCS(java.util.Map properties, org.opengis.referencing.cs.CoordinateSystemAxis axis0, org.opengis.referencing.cs.CoordinateSystemAxis axis1)
          Creates a two dimensional cartesian coordinate system from the given pair of axis.
 org.opengis.referencing.cs.CartesianCS createCartesianCS(java.util.Map properties, org.opengis.referencing.cs.CoordinateSystemAxis axis0, org.opengis.referencing.cs.CoordinateSystemAxis axis1, org.opengis.referencing.cs.CoordinateSystemAxis axis2)
          Creates a three dimensional cartesian coordinate system from the given set of axis.
 org.opengis.referencing.crs.CompoundCRS createCompoundCRS(java.util.Map properties, org.opengis.referencing.crs.CoordinateReferenceSystem[] elements)
          Creates a compound coordinate reference system from an ordered list of objects.
 org.opengis.referencing.cs.CoordinateSystemAxis createCoordinateSystemAxis(java.util.Map properties, java.lang.String abbreviation, org.opengis.referencing.cs.AxisDirection direction, javax.units.Unit unit)
          Creates a coordinate system axis from an abbreviation and a unit.
 org.opengis.referencing.cs.CylindricalCS createCylindricalCS(java.util.Map properties, org.opengis.referencing.cs.CoordinateSystemAxis axis0, org.opengis.referencing.cs.CoordinateSystemAxis axis1, org.opengis.referencing.cs.CoordinateSystemAxis axis2)
          Creates a cylindrical coordinate system from the given set of axis.
 org.opengis.referencing.cs.CylindricalCS createCylindricalCS(java.util.Map properties, org.opengis.referencing.cs.PolarCS polarCS, org.opengis.referencing.cs.CoordinateSystemAxis axis)
          Deprecated. Uses the method expecting 3 axis instead.
 org.opengis.referencing.crs.DerivedCRS createDerivedCRS(java.util.Map properties, org.opengis.referencing.crs.CoordinateReferenceSystem base, org.opengis.referencing.operation.MathTransform baseToDerived, org.opengis.referencing.cs.CoordinateSystem derivedCS)
          Deprecated. Use the method with an OperationMethod argument instead.
 org.opengis.referencing.crs.DerivedCRS createDerivedCRS(java.util.Map properties, org.opengis.referencing.operation.OperationMethod method, org.opengis.referencing.crs.CoordinateReferenceSystem base, org.opengis.referencing.operation.MathTransform baseToDerived, org.opengis.referencing.cs.CoordinateSystem derivedCS)
          Creates a derived coordinate reference system.
 org.opengis.referencing.datum.Ellipsoid createEllipsoid(java.util.Map properties, double semiMajorAxis, double semiMinorAxis, javax.units.Unit unit)
          Creates an ellipsoid from radius values.
 org.opengis.referencing.cs.EllipsoidalCS createEllipsoidalCS(java.util.Map properties, org.opengis.referencing.cs.CoordinateSystemAxis axis0, org.opengis.referencing.cs.CoordinateSystemAxis axis1)
          Creates an ellipsoidal coordinate system without ellipsoidal height.
 org.opengis.referencing.cs.EllipsoidalCS createEllipsoidalCS(java.util.Map properties, org.opengis.referencing.cs.CoordinateSystemAxis axis0, org.opengis.referencing.cs.CoordinateSystemAxis axis1, org.opengis.referencing.cs.CoordinateSystemAxis axis2)
          Creates an ellipsoidal coordinate system with ellipsoidal height.
 org.opengis.referencing.crs.EngineeringCRS createEngineeringCRS(java.util.Map properties, org.opengis.referencing.datum.EngineeringDatum datum, org.opengis.referencing.cs.CoordinateSystem cs)
          Creates a engineering coordinate reference system.
 org.opengis.referencing.datum.EngineeringDatum createEngineeringDatum(java.util.Map properties)
          Creates an engineering datum.
 org.opengis.referencing.datum.Ellipsoid createFlattenedSphere(java.util.Map properties, double semiMajorAxis, double inverseFlattening, javax.units.Unit unit)
          Creates an ellipsoid from an major radius, and inverse flattening.
 org.opengis.referencing.crs.CoordinateReferenceSystem createFromWKT(java.lang.String wkt)
          Creates a coordinate reference system object from a string.
 org.opengis.referencing.crs.CoordinateReferenceSystem createFromXML(java.lang.String xml)
          Creates a coordinate reference system object from a XML string.
 org.opengis.referencing.crs.GeocentricCRS createGeocentricCRS(java.util.Map properties, org.opengis.referencing.datum.GeodeticDatum datum, org.opengis.referencing.cs.CartesianCS cs)
          Creates a geocentric coordinate reference system from a cartesian coordinate system.
 org.opengis.referencing.crs.GeocentricCRS createGeocentricCRS(java.util.Map properties, org.opengis.referencing.datum.GeodeticDatum datum, org.opengis.referencing.cs.SphericalCS cs)
          Creates a geocentric coordinate reference system from a spherical coordinate system.
 org.opengis.referencing.datum.GeodeticDatum createGeodeticDatum(java.util.Map properties, org.opengis.referencing.datum.Ellipsoid ellipsoid, org.opengis.referencing.datum.PrimeMeridian primeMeridian)
          Creates geodetic datum from ellipsoid and (optionaly) Bursa-Wolf parameters.
 org.opengis.referencing.crs.GeographicCRS createGeographicCRS(java.util.Map properties, org.opengis.referencing.datum.GeodeticDatum datum, org.opengis.referencing.cs.EllipsoidalCS cs)
          Creates a geographic coordinate reference system.
 org.opengis.referencing.crs.ImageCRS createImageCRS(java.util.Map properties, org.opengis.referencing.datum.ImageDatum datum, org.opengis.referencing.cs.AffineCS cs)
          Creates an image coordinate reference system.
 org.opengis.referencing.datum.ImageDatum createImageDatum(java.util.Map properties, org.opengis.referencing.datum.PixelInCell pixelInCell)
          Creates an image datum.
 org.opengis.referencing.cs.LinearCS createLinearCS(java.util.Map properties, org.opengis.referencing.cs.CoordinateSystemAxis axis)
          Creates a linear coordinate system.
 org.opengis.referencing.cs.PolarCS createPolarCS(java.util.Map properties, org.opengis.referencing.cs.CoordinateSystemAxis axis0, org.opengis.referencing.cs.CoordinateSystemAxis axis1)
          Creates a polar coordinate system from the given pair of axis.
 org.opengis.referencing.datum.PrimeMeridian createPrimeMeridian(java.util.Map properties, double longitude, javax.units.Unit angularUnit)
          Creates a prime meridian, relative to Greenwich.
 org.opengis.referencing.crs.ProjectedCRS createProjectedCRS(java.util.Map properties, org.opengis.referencing.crs.GeographicCRS geoCRS, org.opengis.referencing.operation.MathTransform toProjected, org.opengis.referencing.cs.CartesianCS cs)
          Deprecated. Use the method with an OperationMethod argument instead.
 org.opengis.referencing.crs.ProjectedCRS createProjectedCRS(java.util.Map properties, org.opengis.referencing.crs.GeographicCRS geoCRS, java.lang.String method, org.opengis.parameter.GeneralParameterValue[] parameters, org.opengis.referencing.cs.CartesianCS cs)
          Deprecated. Replaced by #createProjectedCRS(Map,GeographicCRS,ParameterValueGroup,CartesianCS) for concistency with the rest of the API, which work with ParameterValueGroup rather than an array of GeneralParameterValue.
 org.opengis.referencing.crs.ProjectedCRS createProjectedCRS(java.util.Map properties, org.opengis.referencing.operation.OperationMethod method, org.opengis.referencing.crs.GeographicCRS base, org.opengis.referencing.operation.MathTransform baseToDerived, org.opengis.referencing.cs.CartesianCS derivedCS)
          Creates a projected coordinate reference system from a transform.
 org.opengis.referencing.cs.SphericalCS createSphericalCS(java.util.Map properties, org.opengis.referencing.cs.CoordinateSystemAxis axis0, org.opengis.referencing.cs.CoordinateSystemAxis axis1, org.opengis.referencing.cs.CoordinateSystemAxis axis2)
          Creates a spherical coordinate system from the given set of axis.
 org.opengis.referencing.crs.TemporalCRS createTemporalCRS(java.util.Map properties, org.opengis.referencing.datum.TemporalDatum datum, org.opengis.referencing.cs.TimeCS cs)
          Creates a temporal coordinate reference system.
 org.opengis.referencing.datum.TemporalDatum createTemporalDatum(java.util.Map properties, java.util.Date origin)
          Creates a temporal datum from an enumerated type value.
 org.opengis.referencing.cs.TimeCS createTimeCS(java.util.Map properties, org.opengis.referencing.cs.CoordinateSystemAxis axis)
          Creates a temporal coordinate system.
 org.opengis.referencing.cs.UserDefinedCS createUserDefinedCS(java.util.Map properties, org.opengis.referencing.cs.CoordinateSystemAxis axis0, org.opengis.referencing.cs.CoordinateSystemAxis axis1)
          Creates a two dimensional user defined coordinate system from the given pair of axis.
 org.opengis.referencing.cs.UserDefinedCS createUserDefinedCS(java.util.Map properties, org.opengis.referencing.cs.CoordinateSystemAxis axis0, org.opengis.referencing.cs.CoordinateSystemAxis axis1, org.opengis.referencing.cs.CoordinateSystemAxis axis2)
          Creates a three dimensional user defined coordinate system from the given set of axis.
 org.opengis.referencing.crs.VerticalCRS createVerticalCRS(java.util.Map properties, org.opengis.referencing.datum.VerticalDatum datum, org.opengis.referencing.cs.VerticalCS cs)
          Creates a vertical coordinate reference system.
 org.opengis.referencing.cs.VerticalCS createVerticalCS(java.util.Map properties, org.opengis.referencing.cs.CoordinateSystemAxis axis)
          Creates a vertical coordinate system.
 org.opengis.referencing.datum.VerticalDatum createVerticalDatum(java.util.Map properties, org.opengis.referencing.datum.VerticalDatumType type)
          Creates a vertical datum from an enumerated type value.
 
Methods inherited from class org.geotools.referencing.factory.AbstractFactory
ensureNonNull, getVendor
 
Methods inherited from class org.geotools.factory.AbstractFactory
getImplementationHints, onDeregistration, onRegistration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opengis.referencing.Factory
getVendor
 

Constructor Detail

GeotoolsFactory

public GeotoolsFactory()
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.getDatumFactory();
 CSFactory    factory = FactoryFinder.getCSFactory();
 CRSFactory   factory = FactoryFinder.getCRSFactory();
 

Method Detail

createEllipsoid

public org.opengis.referencing.datum.Ellipsoid createEllipsoid(java.util.Map properties,
                                                               double semiMajorAxis,
                                                               double semiMinorAxis,
                                                               javax.units.Unit unit)
                                                        throws org.opengis.referencing.FactoryException
Creates an ellipsoid from radius values.

Specified by:
createEllipsoid in interface org.opengis.referencing.datum.DatumFactory
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.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed.

createFlattenedSphere

public org.opengis.referencing.datum.Ellipsoid createFlattenedSphere(java.util.Map properties,
                                                                     double semiMajorAxis,
                                                                     double inverseFlattening,
                                                                     javax.units.Unit unit)
                                                              throws org.opengis.referencing.FactoryException
Creates an ellipsoid from an major radius, and inverse flattening.

Specified by:
createFlattenedSphere in interface org.opengis.referencing.datum.DatumFactory
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.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed.

createPrimeMeridian

public org.opengis.referencing.datum.PrimeMeridian createPrimeMeridian(java.util.Map properties,
                                                                       double longitude,
                                                                       javax.units.Unit angularUnit)
                                                                throws org.opengis.referencing.FactoryException
Creates a prime meridian, relative to Greenwich.

Specified by:
createPrimeMeridian in interface org.opengis.referencing.datum.DatumFactory
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.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed.

createGeodeticDatum

public org.opengis.referencing.datum.GeodeticDatum createGeodeticDatum(java.util.Map properties,
                                                                       org.opengis.referencing.datum.Ellipsoid ellipsoid,
                                                                       org.opengis.referencing.datum.PrimeMeridian primeMeridian)
                                                                throws org.opengis.referencing.FactoryException
Creates geodetic datum from ellipsoid and (optionaly) Bursa-Wolf parameters.

Specified by:
createGeodeticDatum in interface org.opengis.referencing.datum.DatumFactory
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.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed.

createVerticalDatum

public org.opengis.referencing.datum.VerticalDatum createVerticalDatum(java.util.Map properties,
                                                                       org.opengis.referencing.datum.VerticalDatumType type)
                                                                throws org.opengis.referencing.FactoryException
Creates a vertical datum from an enumerated type value.

Specified by:
createVerticalDatum in interface org.opengis.referencing.datum.DatumFactory
Parameters:
properties - Name and other properties to give to the new object.
type - The type of this vertical datum (often geoidal).
Throws:
org.opengis.referencing.FactoryException - if the object creation failed.

createTemporalDatum

public org.opengis.referencing.datum.TemporalDatum createTemporalDatum(java.util.Map properties,
                                                                       java.util.Date origin)
                                                                throws org.opengis.referencing.FactoryException
Creates a temporal datum from an enumerated type value.

Specified by:
createTemporalDatum in interface org.opengis.referencing.datum.DatumFactory
Parameters:
properties - Name and other properties to give to the new object.
origin - The date and time origin of this temporal datum.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed.

createEngineeringDatum

public org.opengis.referencing.datum.EngineeringDatum createEngineeringDatum(java.util.Map properties)
                                                                      throws org.opengis.referencing.FactoryException
Creates an engineering datum.

Specified by:
createEngineeringDatum in interface org.opengis.referencing.datum.DatumFactory
Parameters:
properties - Name and other properties to give to the new object.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed.

createImageDatum

public org.opengis.referencing.datum.ImageDatum createImageDatum(java.util.Map properties,
                                                                 org.opengis.referencing.datum.PixelInCell pixelInCell)
                                                          throws org.opengis.referencing.FactoryException
Creates an image datum.

Specified by:
createImageDatum in interface org.opengis.referencing.datum.DatumFactory
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.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed.

createCoordinateSystemAxis

public org.opengis.referencing.cs.CoordinateSystemAxis createCoordinateSystemAxis(java.util.Map properties,
                                                                                  java.lang.String abbreviation,
                                                                                  org.opengis.referencing.cs.AxisDirection direction,
                                                                                  javax.units.Unit unit)
                                                                           throws org.opengis.referencing.FactoryException
Creates a coordinate system axis from an abbreviation and a unit.

Specified by:
createCoordinateSystemAxis in interface org.opengis.referencing.cs.CSFactory
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.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed.

createCartesianCS

public org.opengis.referencing.cs.CartesianCS createCartesianCS(java.util.Map properties,
                                                                org.opengis.referencing.cs.CoordinateSystemAxis axis0,
                                                                org.opengis.referencing.cs.CoordinateSystemAxis axis1)
                                                         throws org.opengis.referencing.FactoryException
Creates a two dimensional cartesian coordinate system from the given pair of axis.

Specified by:
createCartesianCS in interface org.opengis.referencing.cs.CSFactory
Parameters:
properties - Name and other properties to give to the new object.
axis0 - The first axis.
axis1 - The second axis.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed.

createCartesianCS

public org.opengis.referencing.cs.CartesianCS createCartesianCS(java.util.Map properties,
                                                                org.opengis.referencing.cs.CoordinateSystemAxis axis0,
                                                                org.opengis.referencing.cs.CoordinateSystemAxis axis1,
                                                                org.opengis.referencing.cs.CoordinateSystemAxis axis2)
                                                         throws org.opengis.referencing.FactoryException
Creates a three dimensional cartesian coordinate system from the given set of axis.

Specified by:
createCartesianCS in interface org.opengis.referencing.cs.CSFactory
Parameters:
properties - Name and other properties to give to the new object.
axis0 - The first axis.
axis1 - The second axis.
axis2 - The third axis.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed.

createAffineCS

public org.opengis.referencing.cs.AffineCS createAffineCS(java.util.Map properties,
                                                          org.opengis.referencing.cs.CoordinateSystemAxis axis0,
                                                          org.opengis.referencing.cs.CoordinateSystemAxis axis1)
                                                   throws org.opengis.referencing.FactoryException
Creates a two dimensional coordinate system from the given pair of axis.

Specified by:
createAffineCS in interface org.opengis.referencing.cs.CSFactory
Parameters:
properties - Name and other properties to give to the new object.
axis0 - The first axis.
axis1 - The second axis.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed.

createAffineCS

public org.opengis.referencing.cs.AffineCS createAffineCS(java.util.Map properties,
                                                          org.opengis.referencing.cs.CoordinateSystemAxis axis0,
                                                          org.opengis.referencing.cs.CoordinateSystemAxis axis1,
                                                          org.opengis.referencing.cs.CoordinateSystemAxis axis2)
                                                   throws org.opengis.referencing.FactoryException
Creates a three dimensional coordinate system from the given set of axis.

Specified by:
createAffineCS in interface org.opengis.referencing.cs.CSFactory
Parameters:
properties - Name and other properties to give to the new object.
axis0 - The first axis.
axis1 - The second axis.
axis2 - The third axis.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed.

createPolarCS

public org.opengis.referencing.cs.PolarCS createPolarCS(java.util.Map properties,
                                                        org.opengis.referencing.cs.CoordinateSystemAxis axis0,
                                                        org.opengis.referencing.cs.CoordinateSystemAxis axis1)
                                                 throws org.opengis.referencing.FactoryException
Creates a polar coordinate system from the given pair of axis.

Specified by:
createPolarCS in interface org.opengis.referencing.cs.CSFactory
Parameters:
properties - Name and other properties to give to the new object.
axis0 - The first axis.
axis1 - The second axis.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed.

createCylindricalCS

public org.opengis.referencing.cs.CylindricalCS createCylindricalCS(java.util.Map properties,
                                                                    org.opengis.referencing.cs.PolarCS polarCS,
                                                                    org.opengis.referencing.cs.CoordinateSystemAxis axis)
                                                             throws org.opengis.referencing.FactoryException
Deprecated. Uses the method expecting 3 axis instead.

Creates a cylindrical coordinate system from the given polar CS and perpendicular axis.

Parameters:
properties - Name and other properties to give to the new object.
polarCS - The polar coordinate system.
axis - The perpendicular axis.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed.

createCylindricalCS

public org.opengis.referencing.cs.CylindricalCS createCylindricalCS(java.util.Map properties,
                                                                    org.opengis.referencing.cs.CoordinateSystemAxis axis0,
                                                                    org.opengis.referencing.cs.CoordinateSystemAxis axis1,
                                                                    org.opengis.referencing.cs.CoordinateSystemAxis axis2)
                                                             throws org.opengis.referencing.FactoryException
Creates a cylindrical coordinate system from the given set of axis.

Specified by:
createCylindricalCS in interface org.opengis.referencing.cs.CSFactory
Parameters:
properties - Name and other properties to give to the new object.
axis0 - The first axis.
axis1 - The second axis.
axis2 - The third axis.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed.

createSphericalCS

public org.opengis.referencing.cs.SphericalCS createSphericalCS(java.util.Map properties,
                                                                org.opengis.referencing.cs.CoordinateSystemAxis axis0,
                                                                org.opengis.referencing.cs.CoordinateSystemAxis axis1,
                                                                org.opengis.referencing.cs.CoordinateSystemAxis axis2)
                                                         throws org.opengis.referencing.FactoryException
Creates a spherical coordinate system from the given set of axis.

Specified by:
createSphericalCS in interface org.opengis.referencing.cs.CSFactory
Parameters:
properties - Name and other properties to give to the new object.
axis0 - The first axis.
axis1 - The second axis.
axis2 - The third axis.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed.

createEllipsoidalCS

public org.opengis.referencing.cs.EllipsoidalCS createEllipsoidalCS(java.util.Map properties,
                                                                    org.opengis.referencing.cs.CoordinateSystemAxis axis0,
                                                                    org.opengis.referencing.cs.CoordinateSystemAxis axis1)
                                                             throws org.opengis.referencing.FactoryException
Creates an ellipsoidal coordinate system without ellipsoidal height.

Specified by:
createEllipsoidalCS in interface org.opengis.referencing.cs.CSFactory
Parameters:
properties - Name and other properties to give to the new object.
axis0 - The first axis.
axis1 - The second axis.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed.

createEllipsoidalCS

public org.opengis.referencing.cs.EllipsoidalCS createEllipsoidalCS(java.util.Map properties,
                                                                    org.opengis.referencing.cs.CoordinateSystemAxis axis0,
                                                                    org.opengis.referencing.cs.CoordinateSystemAxis axis1,
                                                                    org.opengis.referencing.cs.CoordinateSystemAxis axis2)
                                                             throws org.opengis.referencing.FactoryException
Creates an ellipsoidal coordinate system with ellipsoidal height.

Specified by:
createEllipsoidalCS in interface org.opengis.referencing.cs.CSFactory
Parameters:
properties - Name and other properties to give to the new object.
axis0 - The first axis.
axis1 - The second axis.
axis2 - The third axis.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed.

createVerticalCS

public org.opengis.referencing.cs.VerticalCS createVerticalCS(java.util.Map properties,
                                                              org.opengis.referencing.cs.CoordinateSystemAxis axis)
                                                       throws org.opengis.referencing.FactoryException
Creates a vertical coordinate system.

Specified by:
createVerticalCS in interface org.opengis.referencing.cs.CSFactory
Parameters:
properties - Name and other properties to give to the new object.
axis - The axis.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed.

createTimeCS

public org.opengis.referencing.cs.TimeCS createTimeCS(java.util.Map properties,
                                                      org.opengis.referencing.cs.CoordinateSystemAxis axis)
                                               throws org.opengis.referencing.FactoryException
Creates a temporal coordinate system.

Specified by:
createTimeCS in interface org.opengis.referencing.cs.CSFactory
Parameters:
properties - Name and other properties to give to the new object.
axis - The axis.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed.

createLinearCS

public org.opengis.referencing.cs.LinearCS createLinearCS(java.util.Map properties,
                                                          org.opengis.referencing.cs.CoordinateSystemAxis axis)
                                                   throws org.opengis.referencing.FactoryException
Creates a linear coordinate system.

Specified by:
createLinearCS in interface org.opengis.referencing.cs.CSFactory
Parameters:
properties - Name and other properties to give to the new object.
axis - The axis.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed.

createUserDefinedCS

public org.opengis.referencing.cs.UserDefinedCS createUserDefinedCS(java.util.Map properties,
                                                                    org.opengis.referencing.cs.CoordinateSystemAxis axis0,
                                                                    org.opengis.referencing.cs.CoordinateSystemAxis axis1)
                                                             throws org.opengis.referencing.FactoryException
Creates a two dimensional user defined coordinate system from the given pair of axis.

Specified by:
createUserDefinedCS in interface org.opengis.referencing.cs.CSFactory
Parameters:
properties - Name and other properties to give to the new object.
axis0 - The first axis.
axis1 - The second axis.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed.

createUserDefinedCS

public org.opengis.referencing.cs.UserDefinedCS createUserDefinedCS(java.util.Map properties,
                                                                    org.opengis.referencing.cs.CoordinateSystemAxis axis0,
                                                                    org.opengis.referencing.cs.CoordinateSystemAxis axis1,
                                                                    org.opengis.referencing.cs.CoordinateSystemAxis axis2)
                                                             throws org.opengis.referencing.FactoryException
Creates a three dimensional user defined coordinate system from the given set of axis.

Specified by:
createUserDefinedCS in interface org.opengis.referencing.cs.CSFactory
Parameters:
properties - Name and other properties to give to the new object.
axis0 - The first axis.
axis1 - The second axis.
axis2 - The third axis.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed.

createCompoundCRS

public org.opengis.referencing.crs.CompoundCRS createCompoundCRS(java.util.Map properties,
                                                                 org.opengis.referencing.crs.CoordinateReferenceSystem[] elements)
                                                          throws org.opengis.referencing.FactoryException
Creates a compound coordinate reference system from an ordered list of objects.

Specified by:
createCompoundCRS in interface org.opengis.referencing.crs.CRSFactory
Parameters:
properties - Name and other properties to give to the new object.
elements - ordered array of objects.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed.

createEngineeringCRS

public org.opengis.referencing.crs.EngineeringCRS createEngineeringCRS(java.util.Map properties,
                                                                       org.opengis.referencing.datum.EngineeringDatum datum,
                                                                       org.opengis.referencing.cs.CoordinateSystem cs)
                                                                throws org.opengis.referencing.FactoryException
Creates a engineering coordinate reference system.

Specified by:
createEngineeringCRS in interface org.opengis.referencing.crs.CRSFactory
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.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed.

createImageCRS

public org.opengis.referencing.crs.ImageCRS createImageCRS(java.util.Map properties,
                                                           org.opengis.referencing.datum.ImageDatum datum,
                                                           org.opengis.referencing.cs.AffineCS cs)
                                                    throws org.opengis.referencing.FactoryException
Creates an image coordinate reference system.

Specified by:
createImageCRS in interface org.opengis.referencing.crs.CRSFactory
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.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed.

createTemporalCRS

public org.opengis.referencing.crs.TemporalCRS createTemporalCRS(java.util.Map properties,
                                                                 org.opengis.referencing.datum.TemporalDatum datum,
                                                                 org.opengis.referencing.cs.TimeCS cs)
                                                          throws org.opengis.referencing.FactoryException
Creates a temporal coordinate reference system.

Specified by:
createTemporalCRS in interface org.opengis.referencing.crs.CRSFactory
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.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed.

createVerticalCRS

public org.opengis.referencing.crs.VerticalCRS createVerticalCRS(java.util.Map properties,
                                                                 org.opengis.referencing.datum.VerticalDatum datum,
                                                                 org.opengis.referencing.cs.VerticalCS cs)
                                                          throws org.opengis.referencing.FactoryException
Creates a vertical coordinate reference system.

Specified by:
createVerticalCRS in interface org.opengis.referencing.crs.CRSFactory
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.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed.

createGeocentricCRS

public org.opengis.referencing.crs.GeocentricCRS createGeocentricCRS(java.util.Map properties,
                                                                     org.opengis.referencing.datum.GeodeticDatum datum,
                                                                     org.opengis.referencing.cs.CartesianCS cs)
                                                              throws org.opengis.referencing.FactoryException
Creates a geocentric coordinate reference system from a cartesian coordinate system.

Specified by:
createGeocentricCRS in interface org.opengis.referencing.crs.CRSFactory
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.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed.

createGeocentricCRS

public org.opengis.referencing.crs.GeocentricCRS createGeocentricCRS(java.util.Map properties,
                                                                     org.opengis.referencing.datum.GeodeticDatum datum,
                                                                     org.opengis.referencing.cs.SphericalCS cs)
                                                              throws org.opengis.referencing.FactoryException
Creates a geocentric coordinate reference system from a spherical coordinate system.

Specified by:
createGeocentricCRS in interface org.opengis.referencing.crs.CRSFactory
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.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed.

createGeographicCRS

public org.opengis.referencing.crs.GeographicCRS createGeographicCRS(java.util.Map properties,
                                                                     org.opengis.referencing.datum.GeodeticDatum datum,
                                                                     org.opengis.referencing.cs.EllipsoidalCS cs)
                                                              throws org.opengis.referencing.FactoryException
Creates a geographic coordinate reference system. It could be Latitude/Longitude or Longitude/Latitude.

Specified by:
createGeographicCRS in interface org.opengis.referencing.crs.CRSFactory
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.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed.

createDerivedCRS

public org.opengis.referencing.crs.DerivedCRS createDerivedCRS(java.util.Map properties,
                                                               org.opengis.referencing.crs.CoordinateReferenceSystem base,
                                                               org.opengis.referencing.operation.MathTransform baseToDerived,
                                                               org.opengis.referencing.cs.CoordinateSystem derivedCS)
                                                        throws org.opengis.referencing.FactoryException
Deprecated. Use the method with an OperationMethod argument instead.

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 degrees. But you should not rotate this coordinate system in any other plane.

NOTE: It is the user's responsability to ensure that the transform performs all required steps, including unit conversions and change of axis order, if needed. The FactoryGroup class provides conveniences methods for this task.

Parameters:
properties - Name and other properties to give to the new object.
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.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed.

createDerivedCRS

public org.opengis.referencing.crs.DerivedCRS createDerivedCRS(java.util.Map properties,
                                                               org.opengis.referencing.operation.OperationMethod method,
                                                               org.opengis.referencing.crs.CoordinateReferenceSystem base,
                                                               org.opengis.referencing.operation.MathTransform baseToDerived,
                                                               org.opengis.referencing.cs.CoordinateSystem derivedCS)
                                                        throws org.opengis.referencing.FactoryException
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 degrees. But you should not rotate this coordinate system in any other plane.

NOTE: It is the user's responsability to ensure that the transform performs all required steps, including unit conversions and change of axis order, if needed. The FactoryGroup class provides conveniences methods for this task.

Specified by:
createDerivedCRS in interface org.opengis.referencing.crs.CRSFactory
Parameters:
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.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed.

createProjectedCRS

public org.opengis.referencing.crs.ProjectedCRS createProjectedCRS(java.util.Map properties,
                                                                   org.opengis.referencing.crs.GeographicCRS geoCRS,
                                                                   org.opengis.referencing.operation.MathTransform toProjected,
                                                                   org.opengis.referencing.cs.CartesianCS cs)
                                                            throws org.opengis.referencing.FactoryException
Deprecated. Use the method with an OperationMethod argument instead.

Creates a projected coordinate reference system from a transform.

NOTE: It is the user's responsability to ensure that the transform performs all required steps, including unit conversions and change of axis order, if needed. The FactoryGroup class provides conveniences methods for this task.

Parameters:
properties - Name and other properties to give to the new object.
geoCRS - Geographic coordinate reference system to base projection on.
toProjected - The transform from the geographic to the projected CRS.
cs - The coordinate system for the projected CRS.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed.

createProjectedCRS

public org.opengis.referencing.crs.ProjectedCRS createProjectedCRS(java.util.Map properties,
                                                                   org.opengis.referencing.operation.OperationMethod method,
                                                                   org.opengis.referencing.crs.GeographicCRS base,
                                                                   org.opengis.referencing.operation.MathTransform baseToDerived,
                                                                   org.opengis.referencing.cs.CartesianCS derivedCS)
                                                            throws org.opengis.referencing.FactoryException
Creates a projected coordinate reference system from a transform.

NOTE: It is the user's responsability to ensure that the transform performs all required steps, including unit conversions and change of axis order, if needed. The FactoryGroup class provides conveniences methods for this task.

Specified by:
createProjectedCRS in interface org.opengis.referencing.crs.CRSFactory
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:
org.opengis.referencing.FactoryException - if the object creation failed.

createProjectedCRS

public org.opengis.referencing.crs.ProjectedCRS createProjectedCRS(java.util.Map properties,
                                                                   org.opengis.referencing.crs.GeographicCRS geoCRS,
                                                                   java.lang.String method,
                                                                   org.opengis.parameter.GeneralParameterValue[] parameters,
                                                                   org.opengis.referencing.cs.CartesianCS cs)
                                                            throws org.opengis.referencing.FactoryException
Deprecated. Replaced by #createProjectedCRS(Map,GeographicCRS,ParameterValueGroup,CartesianCS) for concistency with the rest of the API, which work with ParameterValueGroup rather than an array of GeneralParameterValue.

Creates a projected coordinate reference system from a projection name.

Parameters:
properties - Name and other properties to give to the new object.
geoCRS - Geographic coordinate reference system to base projection on.
method - The method name for the projection to be created (e.g. "Transverse_Mercator", "Mercator_1SP", "Oblique_Stereographic", etc.).
parameters - The parameter values to give to the projection. May includes "central_meridian", "latitude_of_origin", "scale_factor", "false_easting", "false_northing" and any other parameters specific to the projection.
cs - The coordinate system for the projected CRS.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed.

createFromXML

public org.opengis.referencing.crs.CoordinateReferenceSystem createFromXML(java.lang.String xml)
                                                                    throws org.opengis.referencing.FactoryException
Creates a coordinate reference system object from a XML string.

Specified by:
createFromXML in interface org.opengis.referencing.crs.CRSFactory
Parameters:
xml - Coordinate reference system encoded in XML format.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed.
To Do:
Not yet implemented.

createFromWKT

public org.opengis.referencing.crs.CoordinateReferenceSystem createFromWKT(java.lang.String wkt)
                                                                    throws org.opengis.referencing.FactoryException
Creates a coordinate reference system object from a string. The definition for WKT is shown using Extended Backus Naur Form (EBNF).

Specified by:
createFromWKT in interface org.opengis.referencing.crs.CRSFactory
Parameters:
wkt - Coordinate system encoded in Well-Known Text format.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed.


Copyright © GeoTools. All Rights Reserved.