public class IlvCoordinateTransformation extends Object implements IlvPersistentObject
Modifier | Constructor and Description |
---|---|
protected |
IlvCoordinateTransformation(IlvCoordinateSystem sourceCS,
IlvCoordinateSystem targetCS)
Constructor.
|
|
IlvCoordinateTransformation(IlvCoordinateSystem sourceCS,
IlvCoordinateSystem targetCS,
IlvMathTransform transform)
Constructor.
|
|
IlvCoordinateTransformation(IlvInputStream stream)
Reads an
IlvCoordinateTransformation from the specified
input stream. |
Modifier and Type | Method and Description |
---|---|
static IlvCoordinateTransformation |
CreateTransformation(IlvCoordinateSystem sourceCS,
IlvCoordinateSystem targetCS)
Returns a coordinate transformation to convert coordinates from one coordinate
system to another.
|
IlvCoordinateTransformation |
getInverse()
Returns an inverse transformation for this coordinate transformation.
|
IlvCoordinateSystem |
getSourceCS()
Returns the source coordinate system for this transformation.
|
IlvCoordinateSystem |
getTargetCS()
Returns the destination coordinate system for this transformation.
|
IlvMathTransform |
getTransform()
Returns the transformation associated to this transformation.
|
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
IlvCoordinateTransformation to the
specified output file. |
public IlvCoordinateTransformation(IlvCoordinateSystem sourceCS, IlvCoordinateSystem targetCS, IlvMathTransform transform)
protected IlvCoordinateTransformation(IlvCoordinateSystem sourceCS, IlvCoordinateSystem targetCS)
public IlvCoordinateTransformation(IlvInputStream stream) throws IlvReadFileException
IlvCoordinateTransformation
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
IlvCoordinateTransformation
to the
specified output file.write
in interface IlvPersistentObject
stream
- The IlvOutputStream
.IOException
- If an error occurs.public IlvCoordinateSystem getSourceCS()
public IlvCoordinateSystem getTargetCS()
public IlvMathTransform getTransform()
public IlvCoordinate transform(IlvCoordinate sourceCP, IlvCoordinate result) throws IlvCoordinateTransformationException
result
. If result
is null
,
a new coordinate is allocated and then returned.public IlvCoordinate[] transform(IlvCoordinate[] sourceCP, IlvCoordinate[] result) throws IlvCoordinateTransformationException
result
. If result
is
null
, a new array of coordinate is allocated.public IlvCoordinateTransformation getInverse()
public static IlvCoordinateTransformation CreateTransformation(IlvCoordinateSystem sourceCS, IlvCoordinateSystem targetCS)
IlvMathTransform
that is created using the following rules:
Source system ®
Target system ¯ |
Geocentric | Geographic | Projected |
---|---|---|---|
Geocentric | Affine transform made from:
|
GeocentricEllipsoidal | Geocentric to geographic
geographic to projected |
Geographic | EllipsoidalGeocentric | AbridgedMolodenski | Geographic to geographic geographic to projected |
Projected | Projected to geographic geographic to geocentric |
Projected to geographic geographic to geographic |
Projected to geographic Geographic to geographic Geographic to Projected |
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.