public static class GDAL.Area
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Sector |
bbox |
protected java.awt.geom.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,
java.awt.geom.Point2D[] corners)
calculates a Geodetic bounding box
|
java.awt.Rectangle |
computeClipRect(int rasterWidth,
int rasterHeight,
GDAL.Area clipArea) |
java.awt.geom.AffineTransform |
computeGeoToRasterTransform(int width,
int height) |
boolean |
contains(GDAL.Area that) |
GDAL.Area |
getBoundingArea() |
java.awt.geom.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) |
java.lang.String |
toString() |
protected Sector bbox
protected java.awt.geom.Point2D[] corners
protected org.gdal.osr.SpatialReference srs
public Area(org.gdal.osr.SpatialReference srs, org.gdal.gdal.Dataset ds) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
protected Area(org.gdal.osr.SpatialReference srs, double minY, double maxY, double minX, double maxX) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public Area(org.gdal.osr.SpatialReference srs, Sector sector) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public static Sector calcBoundingSector(org.gdal.osr.SpatialReference srs, java.awt.geom.Point2D[] corners) throws java.lang.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)java.lang.IllegalArgumentException
- if any of the parameters are nullWWRuntimeException
- in case of geo-transformation errorspublic java.awt.Rectangle computeClipRect(int rasterWidth, int rasterHeight, GDAL.Area clipArea) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public java.awt.geom.AffineTransform computeGeoToRasterTransform(int width, int height)
public boolean contains(GDAL.Area that) throws WWRuntimeException
WWRuntimeException
public GDAL.Area getBoundingArea()
public java.awt.geom.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)
public java.lang.String toString()
toString
in class java.lang.Object