public class EarthImageTransform
extends java.lang.Object
Constructor and Description |
---|
EarthImageTransform(java.awt.Dimension imageDims,
EarthLocation center,
double[] scales,
EarthTransform earthTrans)
Deprecated.
As of 3.3.1, replaced by
EarthImageTransform(Dimension,EarthLocation,double,EarthTransform) . |
EarthImageTransform(java.awt.Dimension imageDims,
EarthLocation center,
double scale,
EarthTransform earthTrans)
Constructs a new earth image transform from the specified image
dimensions and geographic center.
|
EarthImageTransform(EarthTransform earthTrans,
ImageTransform imageTrans)
Constructs an earth image transform with the specified parameters.
|
Modifier and Type | Method and Description |
---|---|
EarthTransform |
getEarthTransform()
Gets the earth transform.
|
ImageTransform |
getImageTransform()
Gets the image transform.
|
double |
getResolution(java.awt.geom.Point2D point)
Calculates an approximate resolution in km/pixel.
|
boolean |
isDiscontinuous(EarthLocation e1,
EarthLocation e2,
java.awt.geom.Point2D p1,
java.awt.geom.Point2D p2)
Determines if a segment running from one earth location to
another is discontinuous in the image space.
|
java.awt.geom.Point2D |
transform(EarthLocation geo)
Converts geographic coordinates to image coordinates.
|
EarthLocation |
transform(java.awt.Point point)
Converts integer image coordinates to geographic coordinates.
|
EarthLocation |
transform(java.awt.geom.Point2D point)
Converts arbitrary precision image coordinates to geographic
coordinates.
|
public EarthImageTransform(EarthTransform earthTrans, ImageTransform imageTrans)
earthTrans
- the earth transform.imageTrans
- the image transform.@Deprecated public EarthImageTransform(java.awt.Dimension imageDims, EarthLocation center, double[] scales, EarthTransform earthTrans) throws java.awt.geom.NoninvertibleTransformException
EarthImageTransform(Dimension,EarthLocation,double,EarthTransform)
.imageDims
- the image dimensions.center
- the center earth location.scales
- the image to data scaling factors as [row, column].earthTrans
- the earth transform.java.awt.geom.NoninvertibleTransformException
- if the image to data
transform is not invertible.public EarthImageTransform(java.awt.Dimension imageDims, EarthLocation center, double scale, EarthTransform earthTrans) throws java.awt.geom.NoninvertibleTransformException
imageDims
- the image dimensions.center
- the center earth location.scale
- the image to data scaling factor.earthTrans
- the earth transform.java.awt.geom.NoninvertibleTransformException
- if the image to data
transform is not invertible.public EarthTransform getEarthTransform()
public ImageTransform getImageTransform()
public java.awt.geom.Point2D transform(EarthLocation geo)
geo
- the geographic location.transform(Point)
public EarthLocation transform(java.awt.geom.Point2D point)
point
- the image coordinates.transform(EarthLocation)
public EarthLocation transform(java.awt.Point point)
point
- the image coordinates.transform(EarthLocation)
public double getResolution(java.awt.geom.Point2D point)
point
- the image point.public boolean isDiscontinuous(EarthLocation e1, EarthLocation e2, java.awt.geom.Point2D p1, java.awt.geom.Point2D p2)
e1
- the first earth location.e2
- the second earth location.p1
- the first image point (or null to calculate).p2
- the second image point (or null to calculate).