public class IlvProjectionTransform extends Object implements IlvMathTransform, IlvPersistentObject
IlvProjection
into an
IlvMathTransform
.IlvProjection
,
Serialized FormConstructor and Description |
---|
IlvProjectionTransform(IlvInputStream stream)
Reads a
GeocentricEllipsoidal from the specified
input stream. |
IlvProjectionTransform(IlvProjectedCoordinateSystem pcs)
Constructs a new transformation to transform from ellipsoidal
coordinate system to the specified projected coordinate system.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
IlvMathTransform |
getInverse()
Returns the inverse transformation.
|
int |
getSourceDimension()
Returns the dimension of source coordinates.
|
int |
getTargetDimension()
Returns the dimension of target coordinates.
|
boolean |
isIdentity()
Returns
true if this transformation is an identity, |
IlvCoordinate[] |
transform(IlvCoordinate[] sourceCP,
IlvCoordinate[] result)
Transforms the specified array of coordinate points, and puts the
resulting coordinates in
result . |
IlvCoordinate |
transform(IlvCoordinate sourceCP,
IlvCoordinate result)
Transforms the specified source coordinate point, and puts the
result coordinate in
result . |
void |
write(IlvOutputStream stream)
Writes this transformation to the specified output file.
|
public IlvProjectionTransform(IlvProjectedCoordinateSystem pcs)
pcs
- The IlvProjectedCoordinateSystem
describing
the projected coordinate system.public IlvProjectionTransform(IlvInputStream stream) throws IlvReadFileException
GeocentricEllipsoidal
from the specified
input stream.stream
- The IlvInputStream
.IlvReadFileException
- If a transformation cannot be read
from the input stream.public void write(IlvOutputStream stream) throws IOException
write
in interface IlvPersistentObject
stream
- The IlvOutputStream
.IOException
- If an error occurs.public IlvMathTransform getInverse()
getInverse
in interface IlvMathTransform
null
if no inverse transformation
is defined.public IlvCoordinate transform(IlvCoordinate sourceCP, IlvCoordinate result) throws IlvCoordinateTransformationException
result
. If result
is null
,
a new coordinate is allocated and then returned.transform
in interface IlvMathTransform
IlvToleranceConditionException
- If
the coordinate to transform is not within the limits of the projection.IlvUnsupportedProjectionFeature
- If
the transformation leads to an operation that is not supported by the
projection.IlvCoordinateTransformationException
public IlvCoordinate[] transform(IlvCoordinate[] sourceCP, IlvCoordinate[] result) throws IlvCoordinateTransformationException
result
. If result
is
null
, a new array of coordinate is allocated.transform
in interface IlvMathTransform
IlvToleranceConditionException
- If
the coordinates to transform is not within the limits of the projection.IlvUnsupportedProjectionFeature
- If
the transformation leads to an operation that is not supported by the
projection.IlvCoordinateTransformationException
public int getSourceDimension()
getSourceDimension
in interface IlvMathTransform
public int getTargetDimension()
getTargetDimension
in interface IlvMathTransform
public boolean isIdentity()
true
if this transformation is an identity,isIdentity
in interface IlvMathTransform
true
if this transformation is an identity.public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.