|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.cs.Info org.geotools.cs.Projection
DefaultOperationMethod
.
A projection from geographic coordinates to projected coordinates.
CS_Projection
,
Serialized FormField 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 |
public Projection(java.lang.CharSequence name, java.lang.String classification, Ellipsoid ellipsoid, java.awt.geom.Point2D centre, java.awt.geom.Point2D translation)
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.public Projection(java.lang.CharSequence name, java.lang.String classification, javax.media.jai.ParameterList parameters)
parameters
) may be queried
with the CoordinateSystemFactory.createProjectionParameterList(java.lang.String)
method.
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.CS_CoordinateSystemFactory.createProjection(java.lang.String, java.lang.String, org.opengis.cs.CS_ProjectionParameter[])
Method Detail |
public java.lang.String getClassName()
CS_Projection.getClassName()
public javax.media.jai.ParameterList getParameters()
DefaultOperation.getParameterValues()
.
CS_Projection.getNumParameters()
,
CS_Projection.getParameter(int)
public double getValue(java.lang.String name) throws MissingParameterException
name
- Parameter to look for.
MissingParameterException
- if parameter name
is not found.public double getValue(java.lang.String name, double defaultValue)
name
- Parameter to look for.defaultValue
- Default value to return if
parameter name
is not found.
defaultValue
if the parameter name
is not found.public boolean equals(Info object, boolean compareNames)
equals
in class Info
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.
true
if both objects are equal.public int hashCode()
equals
(Info, false)
.
hashCode
in class Info
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |