??? mccombe.terrain
? DEMReader
java.lang.Object
java.beans.PropertyChangeSupport
mccombe.terrain.DEMReader
- ????????:
Serializable
- ??????:
SRTM2Reader
,SRTM3Reader
DEMReader - an abstract base class for readers of various forms of Digital Elevation Model data sets
- ????:
-
?????
????????????protected class
CacheEntry -- A class used to store a row of values -
????
????????????protected static final int
protected HashMap<String,
DEMReader.CacheEntry> protected boolean
protected String[]
protected long
protected String
protected boolean
protected long
protected static ZipInputStream
protected String
protected int
protected static final Locale
protected static final int
protected long
protected static final double
protected long
protected long
protected boolean
-
?????
??? -
????
??????????abstract String[]
abstract String
abstract boolean
protected void
downloadFile
(String filename) Download a specific file and sand save it in scratch space on the local machineabstract String
extn()
abstract String
double
frac
(int tile) Calculate the proportion of a degree represented by a particular element in the bufferprotected String
double
protected String
getProperty
(TerrainProperties propertyName) protected DEMReader.CacheEntry
long
hits()
static double
lagrangian
(double x, Point2D.Double... points) Fit an exact polynomial to a set of points and return its value at a specified pointabstract boolean
protected String
long
missing()
abstract int
numEntryName
(String name) byte[]
Read the next byte record from the current ZipInputStreamint[]
Read the next record from the current ZipInputStreamabstract int
void
long
void
setDownload
(boolean flag) protected void
setMessage
(String msg) protected void
setProgress
(int val) double
tile
(double x) Calculate the number of the element in the buffer that refers to a particular lat or lon valuelong
tries()
zipEntryName
(String name) ??????? java.beans.PropertyChangeSupport
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, hasListeners, removePropertyChangeListener, removePropertyChangeListener
-
??????
-
in
-
DIRECTORY
-
cycle
protected long cycle -
cache
-
cacheEnable
protected boolean cacheEnable -
MAX_CACHE_SIZE
protected static final int MAX_CACHE_SIZE- ????:
-
hits
protected long hits -
tries
protected long tries -
missing
protected long missing -
resultcount
protected long resultcount -
MISSING
protected static final double MISSING- ????:
-
BUFFERLENGTH
protected static final int BUFFERLENGTH- ????:
-
lastMessage
-
download
protected boolean download -
lastValue
protected int lastValue -
LOCALE
-
useLegacy
protected boolean useLegacy -
copyright
-
-
???????
-
DEMReader
-
-
??????
-
makename
-
getHeight
-
getRow
-
readRecord
Read the next record from the current ZipInputStream- ??:
- int[] buffer of length recordlength() containing the decoded next record;
- ??:
IOException
-
readByteRecord
Read the next byte record from the current ZipInputStream- ??:
- byte[] buffer of length recordlength() containing the decoded next record;
- ??:
IOException
-
tile
public double tile(double x) Calculate the number of the element in the buffer that refers to a particular lat or lon value- ??:
x
- the double lat/lon value- ??:
- A double value representing the buffer element index
-
getDownloadSiteName
-
frac
public double frac(int tile) Calculate the proportion of a degree represented by a particular element in the buffer- ??:
tile
- the integer number of the element- ??:
- double number representing a fraction of a degree
-
downloadFile
protected void downloadFile(String filename) throws KeyManagementException, NoSuchAlgorithmException, IOException, MissingDataFileException Download a specific file and sand save it in scratch space on the local machine- ??:
filename
- the name of the file to download- ??:
KeyManagementException
NoSuchAlgorithmException
IOException
MissingDataFileException
-
lagrangian
Fit an exact polynomial to a set of points and return its value at a specified point- ??:
x
- double the value at which to evaluate the calculated polynomialpoints
- a set of java.awt.geom.Point2D.Double values- ??:
- double value of the polynomial
-
hits
public long hits() -
resultcount
public long resultcount() -
tries
public long tries() -
missing
public long missing() -
resetCounts
public void resetCounts() -
setMessage
-
setProgress
protected void setProgress(int val) -
getProperty
-
setDownload
public void setDownload(boolean flag) -
getPropertyChangeListeners
-
datasetName
-
downloadable
public abstract boolean downloadable() -
recordlength
public abstract int recordlength() -
formatstring
-
extn
-
littleendian
public abstract boolean littleendian() -
missingValue
public abstract int missingValue() -
copyright
-
zipEntryName
-
numEntryName
-