public class EnviInfo extends HeaderInfo
Modifier and Type | Class and Description |
---|---|
(package private) static class |
EnviInfo.MapInfoIndex |
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
dataFile
The url
|
private boolean |
hasBounds |
private boolean |
isEnvi |
private static org.slf4j.Logger |
logger |
BANDFILES, BANDNAMES, BIGENDIAN, BYTEORDER, DATATYPE, DESCRIPTION, ELEMENTS, INTERLEAVE, kFormat1ByteUInt, kFormat2ByteSInt, kFormat2ByteUInt, kFormat2x8Byte, kFormat4ByteFloat, kFormat4ByteSInt, kFormat8ByteDouble, kFormatASCII, kFormatImage, kFormatUnknown, kInterleaveByLine, kInterleaveByPixel, kInterleaveSequential, kNavigationBounds, kNavigationFiles, kNavigationUnknown, LINES, MISSINGVALUE, NAVBOUNDS, NAVFILES, OFFSET, UNIT
Constructor and Description |
---|
EnviInfo()
Ctor for xml encoding
|
EnviInfo(java.io.File thisFile)
CTOR
|
EnviInfo(java.lang.String filename)
CTOR
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLatBandFile() |
int |
getLatBandNum()
Get the latitude band number.
|
java.lang.String |
getLonBandFile() |
int |
getLonBandNum()
Get the longitude band number.
|
boolean |
hasEnviData()
Can we find a matching ENVI data file?
|
boolean |
isEnviHeader()
Is the file an ENVI header file?
|
boolean |
isHasBounds()
Returns whether or not there are bounds.
|
boolean |
isNavHeader()
Is this a navigation header file?
|
protected void |
parseHeader()
Parse a potential ENVI header file.
|
void |
setHasBounds(boolean hasBounds)
Control whether or not there are bounds.
|
doesExist, getBandCount, getFilename, getParameter, getParameter, getParameter, getParameter, getParameter, haveParsed, setFilename, setParameter
private java.lang.String dataFile
private boolean isEnvi
private boolean hasBounds
private static final org.slf4j.Logger logger
public EnviInfo()
public EnviInfo(java.io.File thisFile)
thisFile
- File to use. Cannot be null
.public EnviInfo(java.lang.String filename)
filename
- The filenamepublic boolean isEnviHeader()
true
if the file appears to be an ENVI header file.public boolean hasEnviData()
true
if dataFile
exists.public boolean isNavHeader()
true
if dataFile
contains latitude and
longitude bands, false
otherwise.public int getLatBandNum()
public java.lang.String getLatBandFile()
String
.public int getLonBandNum()
-1
.public java.lang.String getLonBandFile()
String
.public boolean isHasBounds()
public void setHasBounds(boolean hasBounds)
hasBounds
- Whether or not there are bounds.protected void parseHeader()
parseHeader
in class HeaderInfo