Package org.gvsig.basicformats.impl
Class DefaultHDRFile
java.lang.Object
org.gvsig.basicformats.impl.AbstractFormatFile
org.gvsig.basicformats.impl.DefaultHDRFile
- All Implemented Interfaces:
FormatFile,HDRFile
-
Field Summary
Fields inherited from interface org.gvsig.basicformats.HDRFile
FILE_EXTENSION, LAYOUT_BIL, LAYOUT_BIP, LAYOUT_BSQ, NONE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintintintintorg.gvsig.fmap.geom.primitive.EnvelopegetFile()intintgetNbits()intgetNcols()doubleintgetNrows()intintdoubledoubledoublegetXdim()doubledoublegetYdim()doublebooleanisValid()voidvoidsetByteOrder(ByteOrder order) voidsetComments(String comments) voidsetDataType(int dataType) voidsetDimensions(int nrows, int ncols, org.gvsig.fmap.geom.primitive.Envelope envelope) voidsetNBands(int nbands) voidMethods inherited from class org.gvsig.basicformats.impl.AbstractFormatFile
writeQuietlyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gvsig.basicformats.FormatFile
writeQuietly
-
Constructor Details
-
DefaultHDRFile
public DefaultHDRFile()
-
-
Method Details
-
getFile
- Specified by:
getFilein interfaceFormatFile
-
getFile
- Specified by:
getFilein interfaceFormatFile
-
read
- Specified by:
readin interfaceFormatFile- Throws:
IOException
-
getDataType
public int getDataType()- Specified by:
getDataTypein interfaceHDRFile
-
write
- Specified by:
writein interfaceFormatFile- Throws:
IOException
-
setByteOrder
- Specified by:
setByteOrderin interfaceHDRFile
-
setNBands
public void setNBands(int nbands) -
setDataType
public void setDataType(int dataType) - Specified by:
setDataTypein interfaceHDRFile
-
setDimensions
public void setDimensions(int nrows, int ncols, org.gvsig.fmap.geom.primitive.Envelope envelope) - Specified by:
setDimensionsin interfaceHDRFile
-
getEnvelope
public org.gvsig.fmap.geom.primitive.Envelope getEnvelope()- Specified by:
getEnvelopein interfaceHDRFile
-
getNrows
public int getNrows() -
getNcols
public int getNcols() -
getNbands
public int getNbands() -
getNbits
public int getNbits() -
getByteorder
- Specified by:
getByteorderin interfaceHDRFile- Returns:
- the byteorder
-
getLayout
-
getSkipbytes
public int getSkipbytes()- Specified by:
getSkipbytesin interfaceHDRFile- Returns:
- the skipbytes
-
getUlxmax
public double getUlxmax() -
getUlymax
public double getUlymax() -
getXdim
public double getXdim() -
getYdim
public double getYdim() -
getBandrowbytes
public int getBandrowbytes()- Specified by:
getBandrowbytesin interfaceHDRFile- Returns:
- the bandrowbytes
-
getTotalrowbytes
public int getTotalrowbytes()- Specified by:
getTotalrowbytesin interfaceHDRFile- Returns:
- the totalrowbytes
-
getBandgapbytes
public int getBandgapbytes()- Specified by:
getBandgapbytesin interfaceHDRFile- Returns:
- the bandgapbytes
-
isValid
public boolean isValid() -
getComments
- Specified by:
getCommentsin interfaceHDRFile- Returns:
- the comments
-
setComments
- Specified by:
setCommentsin interfaceHDRFile- Parameters:
comments- the comments to set
-
getNodata_value
public double getNodata_value()- Specified by:
getNodata_valuein interfaceHDRFile- Returns:
- the nodata_value
-
getXllcorner
public double getXllcorner()- Specified by:
getXllcornerin interfaceHDRFile- Returns:
- the xllcorner
-
getYllcorner
public double getYllcorner()- Specified by:
getYllcornerin interfaceHDRFile- Returns:
- the yllcorner
-
getCellsize
public int getCellsize()- Specified by:
getCellsizein interfaceHDRFile- Returns:
- the cellsize
-
getBandSize
public int getBandSize()- Specified by:
getBandSizein interfaceHDRFile
-