|
deegree 2.1 (2007/11/08 09:57 build-328-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree.model.csct.cs.Info
org.deegree.model.csct.cs.Projection
public class Projection
A projection from geographic coordinates to projected coordinates.
Field Summary |
---|
Fields inherited from class org.deegree.model.csct.cs.Info |
---|
pool |
Constructor Summary | |
---|---|
Projection(Map properties,
String classification,
javax.media.jai.ParameterList parameters)
Creates a projection. |
|
Projection(String name,
String classification,
Ellipsoid ellipsoid,
Point2D centre,
Point2D translation,
double scaleFactor)
Convenience constructor for a projection using the specified ellipsoid. |
|
Projection(String name,
String classification,
javax.media.jai.ParameterList parameters)
Creates a projection. |
Method Summary | |
---|---|
(package private) String |
addString()
Fill the part inside "[...]". |
boolean |
equals(Object object)
Compares the specified object with this projection for equality. |
String |
getClassName()
Gets the projection classification name (e.g. |
(package private) static javax.media.jai.ParameterList |
getParameterList(String classification)
Returns a parameter list for the specified classification. |
javax.media.jai.ParameterList |
getParameters()
Returns all parameters. |
double |
getValue(String name)
Convenience method for fetching a parameter value. |
double |
getValue(String name,
double defaultValue)
Convenience method for fetching a parameter value. |
int |
hashCode()
Returns a hash value for this projection. |
(package private) static javax.media.jai.ParameterList |
init(javax.media.jai.ParameterList parameters,
Ellipsoid ellipsoid,
Point2D centre,
Point2D translation,
double scaleFactor)
Initialize a list of parameter from the specified ellipsoid and points. |
Methods inherited from class org.deegree.model.csct.cs.Info |
---|
addUnit, ensureAngularUnit, ensureLinearUnit, ensureNonNull, ensureNonNull, ensureTimeUnit, getAbbreviation, getAlias, getAuthority, getAuthorityCode, getName, getRemarks, readResolve, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Projection(String name, String classification, Ellipsoid ellipsoid, Point2D centre, Point2D translation, double scaleFactor)
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 according.centre
- Central meridian and latitude of origin, in degrees. If non-null, then
"central_meridian"
and "latitude_of_origin"
will be
set according.translation
- False easting and northing, in metres. If non-null, then
"false_easting"
and "false_northing"
will be set
according.scaleFactor
- public Projection(String name, String classification, javax.media.jai.ParameterList parameters)
parameters
) may be queried with
MathTransformFactory.getMathTransformProvider
(classification).getParameterList()
.
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.Projection(Map properties, String classification, javax.media.jai.ParameterList parameters)
properties
- The set of properties (see Info
).classification
- Classification string for projection (e.g. "Transverse_Mercator").parameters
- Parameters to use for projection, in metres or degrees.Method Detail |
---|
static javax.media.jai.ParameterList getParameterList(String classification)
classification
-
static javax.media.jai.ParameterList init(javax.media.jai.ParameterList parameters, Ellipsoid ellipsoid, Point2D centre, Point2D translation, double scaleFactor)
parameters
- The parameters to initialize.ellipsoid
- Ellipsoid parameter. If non-null, then "semi_major"
and
"semi_minor"
parameters will be set according.centre
- Central meridian and latitude of origin, in degrees. If non-null, then
"central_meridian"
and "latitude_of_origin"
will be
set according.translation
- False easting and northing, in metres. If non-null, then
"false_easting"
and "false_northing"
will be set
according.scaleFactor
-
parameters
for convenience.public String getClassName()
public javax.media.jai.ParameterList getParameters()
public double getValue(String name) throws MissingParameterException
name
- Parameter to look for.
MissingParameterException
- if parameter name
is not found.public double getValue(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 int hashCode()
hashCode
in class Info
public boolean equals(Object object)
equals
in class Info
object
-
String addString()
addString
in class Info
|
deegree 2.1 (2007/11/08 09:57 build-328-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net