Modifier and Type | Field and Description |
---|---|
protected Sector |
bbox |
protected Point2D[] |
corners |
protected org.gdal.osr.SpatialReference |
srs |
Modifier | Constructor and Description |
---|---|
|
Area(org.gdal.osr.SpatialReference srs,
org.gdal.gdal.Dataset ds) |
protected |
Area(org.gdal.osr.SpatialReference srs,
double minY,
double maxY,
double minX,
double maxX) |
|
Area(org.gdal.osr.SpatialReference srs,
Sector sector) |
Modifier and Type | Method and Description |
---|---|
static Sector |
calcBoundingSector(org.gdal.osr.SpatialReference srs,
Point2D[] corners)
calculates a Geodetic bounding box
|
Rectangle |
computeClipRect(int rasterWidth,
int rasterHeight,
GDAL.Area clipArea) |
AffineTransform |
computeGeoToRasterTransform(int width,
int height) |
boolean |
contains(GDAL.Area that) |
GDAL.Area |
getBoundingArea() |
Point2D[] |
getCorners() |
double |
getMaxX() |
double |
getMaxY() |
double |
getMinX() |
double |
getMinY() |
Sector |
getSector() |
org.gdal.osr.SpatialReference |
getSpatialReference() |
GDAL.Area |
intersection(GDAL.Area that) |
GDAL.Area |
intersection(Sector sector) |
boolean |
isGeographic() |
boolean |
isProjected() |
protected void |
makeCorners(double minY,
double maxY,
double minX,
double maxX) |
String |
toString() |
protected Sector bbox
protected Point2D[] corners
protected org.gdal.osr.SpatialReference srs
public Area(org.gdal.osr.SpatialReference srs, org.gdal.gdal.Dataset ds) throws IllegalArgumentException
IllegalArgumentException
protected Area(org.gdal.osr.SpatialReference srs, double minY, double maxY, double minX, double maxX) throws IllegalArgumentException
IllegalArgumentException
public Area(org.gdal.osr.SpatialReference srs, Sector sector) throws IllegalArgumentException
IllegalArgumentException
public static Sector calcBoundingSector(org.gdal.osr.SpatialReference srs, Point2D[] corners) throws IllegalArgumentException, WWRuntimeException
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)IllegalArgumentException
- if any of the parameters are nullWWRuntimeException
- in case of geo-transformation errorspublic Rectangle computeClipRect(int rasterWidth, int rasterHeight, GDAL.Area clipArea) throws IllegalArgumentException
IllegalArgumentException
public AffineTransform computeGeoToRasterTransform(int width, int height)
public boolean contains(GDAL.Area that) throws WWRuntimeException
WWRuntimeException
public GDAL.Area getBoundingArea()
public Point2D[] getCorners()
public double getMaxX()
public double getMaxY()
public double getMinX()
public double getMinY()
public Sector getSector()
public org.gdal.osr.SpatialReference getSpatialReference()
public GDAL.Area intersection(GDAL.Area that) throws WWRuntimeException
WWRuntimeException
public GDAL.Area intersection(Sector sector) throws WWRuntimeException
WWRuntimeException
public boolean isGeographic()
public boolean isProjected()
protected void makeCorners(double minY, double maxY, double minX, double maxX)