|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.resources.CTSUtilities
CRSUtilities
instead.
A set of static methods working on OpenGIS objects. Some of those methods are useful, but not really rigorous. This is why they do not appear in the "official" package, but instead in this private one. Do not rely on this API! It may change in incompatible way in any future version.
Method Summary | |
static java.awt.geom.Point2D |
deltaTransform(MathTransform2D transform,
java.awt.geom.Point2D origin,
java.awt.geom.Point2D source,
java.awt.geom.Point2D dest)
Deprecated. Transforms the relative distance vector specified by source and stores
the result in dest . |
static CoordinateSystem |
getCoordinateSystem2D(CoordinateSystem cs)
Deprecated. Returns a two-dimensional coordinate system representing the two first dimensions of the specified coordinate system. |
static int |
getDimensionOf(CoordinateSystem cs,
AxisInfo axis)
Deprecated. Returns the dimension of the first axis of a particular type. |
static int |
getDimensionOf(CoordinateSystem cs,
java.lang.Class type)
Deprecated. Returns the dimension of the first coordinate system of the given type. |
static Ellipsoid |
getEllipsoid(CoordinateSystem cs)
Deprecated. Returns the first ellipsoid found in a coordinate system, or null if there is none. |
static Ellipsoid |
getHeadGeoEllipsoid(CoordinateSystem coordinateSystem)
Deprecated. Returns the ellipsoid used by the specified coordinate system, providing that the two first dimensions use an instance of GeographicCoordinateSystem . |
static HorizontalCoordinateSystem |
getHorizontalCS(CoordinateSystem cs)
Deprecated. Returns the first horizontal coordinate system found in a coordinate system, or null if there is none. |
static Projection |
getProjection(CoordinateSystem cs)
Deprecated. Returns the first projection found in a coordinate system, or null if there is none. |
static CoordinateSystem |
getSubCoordinateSystem(CoordinateSystem cs,
int lower,
int upper)
Deprecated. Returns a sub-coordinate system for the specified dimension range. |
static TemporalCoordinateSystem |
getTemporalCS(CoordinateSystem cs)
Deprecated. Returns the first temporal coordinate system found in a coordinate system, or null if there is none. |
static VerticalCoordinateSystem |
getVerticalCS(CoordinateSystem cs)
Deprecated. Returns the first vertical coordinate system found in a coordinate system, or null if there is none. |
static java.lang.String |
toWGS84String(CoordinateSystem cs,
java.awt.geom.Rectangle2D bounds)
Deprecated. Retourne une cha?ne de caract?res repr?sentant la r?gion g?ographique sp?cifi?e. |
static java.awt.geom.Rectangle2D |
transform(MathTransform2D transform,
java.awt.geom.Rectangle2D source,
java.awt.geom.Rectangle2D dest)
Deprecated. Transform an envelope. |
static Envelope |
transform(MathTransform transform,
Envelope envelope)
Deprecated. Transform an envelope. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static int getDimensionOf(CoordinateSystem cs, AxisInfo axis)
getDimensionOf(cs, AxisInfo.TIME)
would returns the dimension number of time axis. If no such dimension
is found, then this method returns -1
.
public static int getDimensionOf(CoordinateSystem cs, java.lang.Class type)
type
argument must be assignable from CoordinateSystem
.
If no such dimension is found, then this method returns -1
.
public static CoordinateSystem getSubCoordinateSystem(CoordinateSystem cs, int lower, int upper)
cs
- The coordinate system to decompose.lower
- The first dimension to keep, inclusive.upper
- The last dimension to keep, exclusive.
null
if cs
can't
be decomposed for dimensions in the range [lower..upper]
.public static CoordinateSystem getCoordinateSystem2D(CoordinateSystem cs) throws org.opengis.referencing.operation.TransformException
cs
is already a two-dimensional
coordinate system, then it is returned unchanged. Otherwise, if it is a
CompoundCoordinateSystem
, then the head coordinate system is examined.
cs
- The coordinate system, or null
.
cs
, or null
if cs
was null
.
org.opengis.referencing.operation.TransformException
- if cs
can't be reduced to a two-coordinate system.
We use this exception class since this method is usually invoked in the context of
a transformation process.public static HorizontalCoordinateSystem getHorizontalCS(CoordinateSystem cs)
null
if there is none.
public static VerticalCoordinateSystem getVerticalCS(CoordinateSystem cs)
null
if there is none.
public static TemporalCoordinateSystem getTemporalCS(CoordinateSystem cs)
null
if there is none.
public static Projection getProjection(CoordinateSystem cs)
null
if there is none.
public static Ellipsoid getEllipsoid(CoordinateSystem cs)
null
if there is none.
public static Ellipsoid getHeadGeoEllipsoid(CoordinateSystem coordinateSystem)
GeographicCoordinateSystem
. Otherwise (i.e. if the
two first dimensions are not geographic), returns null
.
public static Envelope transform(MathTransform transform, Envelope envelope) throws org.opengis.referencing.operation.TransformException
transform
- The transform to use.envelope
- Envelope to transform. This envelope will not be modified.
org.opengis.referencing.operation.TransformException
- if a transform failed.public static java.awt.geom.Rectangle2D transform(MathTransform2D transform, java.awt.geom.Rectangle2D source, java.awt.geom.Rectangle2D dest) throws org.opengis.referencing.operation.TransformException
transform(transform, new Envelope(source)).toRectangle2D()
transform
- The transform to use. Source and target dimension must be 2.source
- The rectangle to transform (may be null
).dest
- The destination rectangle (may be source
).
If null
, a new rectangle will be created and returned.
dest
, or a new rectangle if dest
was non-null
and source
was null.
org.opengis.referencing.operation.TransformException
- if a transform failed.public static java.awt.geom.Point2D deltaTransform(MathTransform2D transform, java.awt.geom.Point2D origin, java.awt.geom.Point2D source, java.awt.geom.Point2D dest) throws org.opengis.referencing.operation.TransformException
source
and stores
the result in dest
. A relative distance vector is transformed without
applying the translation components.
transform
- The transform to apply.origin
- The position where to compute the delta transform in the source CS.source
- The distance vector to be delta transformeddest
- The resulting transformed distance vector, or null
org.opengis.referencing.operation.TransformException
- if the transformation failed.AffineTransform.deltaTransform(Point2D,Point2D)
public static java.lang.String toWGS84String(CoordinateSystem cs, java.awt.geom.Rectangle2D bounds)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |