public class AreaCalculator extends Object
| Constructor and Description |
|---|
AreaCalculator(GeoCoding gc)
Initialise the calculator with an
GeoCoding. |
| Modifier and Type | Method and Description |
|---|---|
double |
calculatePixelSize(int x,
int y)
Calculates the size of the pixel specified by the given x,y coordinates.
|
double |
calculateRectangleSize(Rectangle2D rectangle)
Calculates the size of the area of the rectangle specified.
|
double |
getEarthRadius()
The earth radius used for the calculation
|
public double getEarthRadius()
public double calculatePixelSize(int x,
int y)
meter.x - the x location of the pixely - the y location of the pixelpublic double calculateRectangleSize(Rectangle2D rectangle)
meter.rectangle - rectangle of the area in latitude/longitude coordinatesCopyright © 2014–2017 European Space Agency (ESA). All rights reserved.