gov.nasa.worldwind.data
Class GDAL.Area
java.lang.Object
gov.nasa.worldwind.data.GDAL.Area
- Enclosing class:
- GDAL
public static class GDAL.Area
- extends Object
|
Constructor Summary |
|
GDAL.Area(org.gdal.osr.SpatialReference srs,
org.gdal.gdal.Dataset ds)
|
protected |
GDAL.Area(org.gdal.osr.SpatialReference srs,
double minY,
double maxY,
double minX,
double maxX)
|
|
GDAL.Area(org.gdal.osr.SpatialReference srs,
Sector sector)
|
bbox
protected Sector bbox
corners
protected Point2D[] corners
srs
protected org.gdal.osr.SpatialReference srs
GDAL.Area
public GDAL.Area(org.gdal.osr.SpatialReference srs,
org.gdal.gdal.Dataset ds)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
GDAL.Area
protected GDAL.Area(org.gdal.osr.SpatialReference srs,
double minY,
double maxY,
double minX,
double maxX)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
GDAL.Area
public GDAL.Area(org.gdal.osr.SpatialReference srs,
Sector sector)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
calcBoundingSector
public static Sector calcBoundingSector(org.gdal.osr.SpatialReference srs,
Point2D[] corners)
throws IllegalArgumentException,
WWRuntimeException
- calculates a Geodetic bounding box
- Parameters:
srs - A Spatial Reference, must not be null and not LOCAL (aka SCREEN) Coordinate Systemcorners - An array of 2D geographic points (java.awt.geom.Point2D)
- Returns:
- Sector
- Throws:
IllegalArgumentException - if any of the parameters are null
WWRuntimeException - in case of geo-transformation errors
computeClipRect
public Rectangle computeClipRect(int rasterWidth,
int rasterHeight,
GDAL.Area clipArea)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
computeGeoToRasterTransform
public AffineTransform computeGeoToRasterTransform(int width,
int height)
contains
public boolean contains(GDAL.Area that)
throws WWRuntimeException
- Throws:
WWRuntimeException
getBoundingArea
public GDAL.Area getBoundingArea()
getCorners
public Point2D[] getCorners()
getMaxX
public double getMaxX()
getMaxY
public double getMaxY()
getMinX
public double getMinX()
getMinY
public double getMinY()
getSector
public Sector getSector()
getSpatialReference
public org.gdal.osr.SpatialReference getSpatialReference()
intersection
public GDAL.Area intersection(GDAL.Area that)
throws WWRuntimeException
- Throws:
WWRuntimeException
intersection
public GDAL.Area intersection(Sector sector)
throws WWRuntimeException
- Throws:
WWRuntimeException
isGeographic
public boolean isGeographic()
isProjected
public boolean isProjected()
makeCorners
protected void makeCorners(double minY,
double maxY,
double minX,
double maxX)
toString
public String toString()
- Overrides:
toString in class Object