org.geotools.cs
Class Projection

java.lang.Object
  extended byorg.geotools.cs.Info
      extended byorg.geotools.cs.Projection
All Implemented Interfaces:
org.opengis.referencing.IdentifiedObject, java.io.Serializable

Deprecated. Replaced by DefaultOperationMethod.

public class Projection
extends Info

A projection from geographic coordinates to projected coordinates.

Version:
$Id: Projection.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
OpenGIS (www.opengis.org), Martin Desruisseaux
See Also:
CS_Projection, Serialized Form

Field Summary
 
Fields inherited from interface org.opengis.referencing.IdentifiedObject
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY
 
Constructor Summary
Projection(java.lang.CharSequence name, java.lang.String classification, Ellipsoid ellipsoid, java.awt.geom.Point2D centre, java.awt.geom.Point2D translation)
          Deprecated. Convenience constructor for a projection using the specified ellipsoid.
Projection(java.lang.CharSequence name, java.lang.String classification, javax.media.jai.ParameterList parameters)
          Deprecated. Creates a projection.
 
Method Summary
 boolean equals(Info object, boolean compareNames)
          Deprecated. Compare this projection with the specified object for equality.
 java.lang.String getClassName()
          Deprecated. Gets the projection classification name (e.g.
 javax.media.jai.ParameterList getParameters()
          Deprecated. Replaced by DefaultOperation.getParameterValues().
 double getValue(java.lang.String name)
          Deprecated. Convenience method for fetching a parameter value.
 double getValue(java.lang.String name, double defaultValue)
          Deprecated. Convenience method for fetching a parameter value.
 int hashCode()
          Deprecated. Returns a hash value for this projection.
 
Methods inherited from class org.geotools.cs.Info
ensureNonNull, equals, getAbbreviation, getAlias, getAlias, getAuthority, getAuthorityCode, getIdentifiers, getName, getRemarks, toString, toWKT
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Projection

public Projection(java.lang.CharSequence name,
                  java.lang.String classification,
                  Ellipsoid ellipsoid,
                  java.awt.geom.Point2D centre,
                  java.awt.geom.Point2D translation)
Deprecated. 
Convenience constructor for a projection using the specified ellipsoid.

Parameters:
name - Name to give new object.
classification - Classification string for projection (e.g. "Transverse_Mercator").
ellipsoid - Ellipsoid parameter. If non-null, then "semi_major" and "semi_minor" parameters will be set accordingly.
centre - Central meridian and latitude of origin, in degrees. If non-null, then "central_meridian" and "latitude_of_origin" will be set accordingly.
translation - False easting and northing, in metres. If non-null, then "false_easting" and "false_northing" will be set accordingly.

Projection

public Projection(java.lang.CharSequence name,
                  java.lang.String classification,
                  javax.media.jai.ParameterList parameters)
Deprecated. 
Creates a projection. The set of parameters (parameters) may be queried with the CoordinateSystemFactory.createProjectionParameterList(java.lang.String) method.

Parameters:
name - Name to give new object.
classification - Classification string for projection (e.g. "Transverse_Mercator").
parameters - Parameters to use for projection, in metres or degrees.
See Also:
CS_CoordinateSystemFactory.createProjection(java.lang.String, java.lang.String, org.opengis.cs.CS_ProjectionParameter[])
Method Detail

getClassName

public java.lang.String getClassName()
Deprecated. 
Gets the projection classification name (e.g. "Transverse_Mercator").

See Also:
CS_Projection.getClassName()

getParameters

public javax.media.jai.ParameterList getParameters()
Deprecated. Replaced by DefaultOperation.getParameterValues().

Returns all parameters.

See Also:
CS_Projection.getNumParameters(), CS_Projection.getParameter(int)

getValue

public double getValue(java.lang.String name)
                throws MissingParameterException
Deprecated. 
Convenience method for fetching a parameter value. Search is case-insensitive and ignores leading and trailing blanks.

Parameters:
name - Parameter to look for.
Returns:
The parameter value.
Throws:
MissingParameterException - if parameter name is not found.

getValue

public double getValue(java.lang.String name,
                       double defaultValue)
Deprecated. 
Convenience method for fetching a parameter value. Search is case-insensitive and ignores leading and trailing blanks.

Parameters:
name - Parameter to look for.
defaultValue - Default value to return if parameter name is not found.
Returns:
The parameter value, or defaultValue if the parameter name is not found.

equals

public boolean equals(Info object,
                      boolean compareNames)
Deprecated. 
Compare this projection with the specified object for equality.

Overrides:
equals in class Info
Parameters:
object - The object to compare to this.
compareNames - true to comparare the name, alias, authority code, etc. as well, or false to compare only properties relevant to transformations.
Returns:
true if both objects are equal.

hashCode

public int hashCode()
Deprecated. 
Returns a hash value for this projection. Name, alias, authority code and the like are not taken in account. In other words, two projections will return the same hash value if they are equal in the sense of equals(Info, false).

Overrides:
hashCode in class Info
Returns:
The hash code value. This value doesn't need to be the same in past or future versions of this class.


Copyright © GeoTools. All Rights Reserved.