public interface ElevationModel
ElevationModel
is used to obtain an elevation above a
specified geographical datum for a given geographical position.Modifier and Type | Method and Description |
---|---|
void |
dispose()
Releases all of the resources used by this object instance and all of its owned children.
|
ElevationModelDescriptor |
getDescriptor()
Gets the descriptor of this DEM.
|
double |
getElevation(GeoPos geoPos)
Gets the elevation at the geographical coordinate in meters.
|
GeoPos |
getGeoPos(PixelPos pixelPos)
Gets the geographical coordinates for the input pixel coordinates in the DEM reference system.
|
PixelPos |
getIndex(GeoPos geoPos)
Gets the pixel index in the DEM reference system at the geographical coordinate in meters.
|
Resampling |
getResampling() |
double |
getSample(double x,
double y)
Gets the elevation at the point defined by (x,y) coordinates in DEM reference system.
|
boolean |
getSamples(int[] x,
int[] y,
double[][] samples)
Gets the elevations at the points defined by (x,y) coordinates in DEM reference system.
|
ElevationModelDescriptor getDescriptor()
double getElevation(GeoPos geoPos) throws Exception
geoPos
- the geographical coordinateElevationModelDescriptor.getNoDataValue()
if an elevation is not availableException
- if a non-runtime error occurs, e.g I/O errorPixelPos getIndex(GeoPos geoPos) throws Exception
geoPos
- the geographical coordinateException
- if a non-runtime error occurs, e.g I/O errorGeoPos getGeoPos(PixelPos pixelPos) throws Exception
pixelPos
- the pixel (x,y) coordinateException
- if a non-runtime error occurs, e.g I/O errordouble getSample(double x, double y) throws Exception
x
- coordinatey
- coordinateElevationModelDescriptor.getNoDataValue()
if an elevation is not availableException
- if a non-runtime error occurs, e.g I/O errorboolean getSamples(int[] x, int[] y, double[][] samples) throws Exception
x
- coordinatey
- coordinatesamples
- output elevation in meters, or the special value returned by ElevationModelDescriptor.getNoDataValue()
if an elevation is not availableException
- if a non-runtime error occurs, e.g I/O errorResampling getResampling()
void dispose()
This method should be called only if it is for sure that this object instance will never be used again. The
results of referencing an instance of this class after a call to dispose()
are undefined.
Overrides of this method should always call super.dispose();
after disposing this instance.
Copyright © 2014–2017 European Space Agency (ESA). All rights reserved.