|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree_impl.model.cs.Info
org.deegree_impl.model.cs.Projection
A projection from geographic coordinates to projected coordinates.
CS_Projection
,
Serialized FormNested Class Summary | |
private class |
Projection.Export
Wrap a Projection object for use with OpenGIS.
|
Nested classes inherited from class org.deegree_impl.model.cs.Info |
Info.AngularUnit, Info.LinearUnit |
Field Summary | |
private java.lang.String |
classification
Classification string for projection (e.g. |
private ParameterList |
parameters
Parameters to use for projection, in metres or degrees. |
private static long |
serialVersionUID
Serial number for interoperability with different versions. |
Fields inherited from class org.deegree_impl.model.cs.Info |
pool |
Constructor Summary | |
(package private) |
Projection(java.util.Map properties,
java.lang.String classification,
ParameterList parameters)
Creates a projection. |
|
Projection(java.lang.String name,
java.lang.String classification,
Ellipsoid ellipsoid,
java.awt.geom.Point2D centre,
java.awt.geom.Point2D translation,
double scaleFactor)
Convenience constructor for a projection using the specified ellipsoid. |
|
Projection(java.lang.String name,
java.lang.String classification,
ParameterList parameters)
Creates a projection. |
Method Summary | |
(package private) java.lang.String |
addString(java.lang.StringBuffer buffer)
Fill the part inside "[...]". |
private static ParameterList |
clone(ParameterList list)
Returns a clone of a parameter list. |
boolean |
equals(java.lang.Object object)
Compares the specified object with this projection for equality. |
java.lang.String |
getClassName()
Gets the projection classification name (e.g. |
(package private) static ParameterList |
getParameterList(java.lang.String classification)
Returns a parameter list for the specified classification. |
ParameterList |
getParameters()
Returns all parameters. |
private static double |
getValue(ParameterList parameters,
java.lang.String name,
double defaultValue,
boolean required)
Convenience method for fetching a parameter value. |
double |
getValue(java.lang.String name)
Convenience method for fetching a parameter value. |
double |
getValue(java.lang.String name,
double defaultValue)
Convenience method for fetching a parameter value. |
int |
hashCode()
Returns a hash value for this projection. |
(package private) static ParameterList |
init(ParameterList parameters,
Ellipsoid ellipsoid,
java.awt.geom.Point2D centre,
java.awt.geom.Point2D translation,
double scaleFactor)
Initialize a list of parameter from the specified ellipsoid and points. |
(package private) java.lang.Object |
toOpenGIS(java.lang.Object adapters)
Returns an OpenGIS interface for this projection. |
Methods inherited from class org.deegree_impl.model.cs.Info |
addUnit, cachedOpenGIS, 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 |
Field Detail |
private static final long serialVersionUID
private final java.lang.String classification
private final ParameterList parameters
Constructor Detail |
public Projection(java.lang.String name, java.lang.String classification, Ellipsoid ellipsoid, java.awt.geom.Point2D centre, java.awt.geom.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.public Projection(java.lang.String name, java.lang.String classification, 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(java.util.Map properties, java.lang.String classification, 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 ParameterList getParameterList(java.lang.String classification)
static ParameterList init(ParameterList parameters, Ellipsoid ellipsoid, java.awt.geom.Point2D centre, java.awt.geom.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.
parameters
for convenience.private static ParameterList clone(ParameterList list)
public java.lang.String getClassName()
CS_Projection.getClassName()
public ParameterList getParameters()
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.private static double getValue(ParameterList parameters, java.lang.String name, double defaultValue, boolean required) throws MissingParameterException
parameters
- User-suplied parameters.name
- Parameter to look for.defaultValue
- Default value to return if
parameter name
is not found.required
- true
if the parameter is required (in which case
defaultValue
is ignored), or false
otherwise.
defaultValue
if the parameter is
not found and required
is false
.
MissingParameterException
- if required
is true
and parameter name
is not found.public int hashCode()
hashCode
in class Info
public boolean equals(java.lang.Object object)
equals
in class Info
java.lang.String addString(java.lang.StringBuffer buffer)
addString
in class Info
buffer
- The buffer to add string to.
final java.lang.Object toOpenGIS(java.lang.Object adapters)
Object
in order
to avoid too early class loading of OpenGIS interface.
toOpenGIS
in class Info
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |