|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object insensa.CRasterFile
public class CRasterFile
Field Summary | |
---|---|
private org.gdal.gdal.Band |
band
|
private float |
cellSize
|
private org.gdal.gdal.Dataset |
dataset
|
private int |
dataType
|
private java.lang.String |
datum
|
private org.gdal.gdal.Driver |
driver
|
private java.io.File |
fileRef
|
private java.lang.String |
geocentricCS
|
private java.lang.String |
geographicCS
|
private double[] |
geoTransform
|
private java.lang.String |
localCS
|
private int |
nCols
Anzahl der unterschiedlichen Messwerte |
private float |
noDataValue
|
private int |
nRows
|
private java.lang.String |
projectedCS
|
private java.lang.String |
projection
|
private java.lang.String |
projectionWKT
|
private org.gdal.osr.SpatialReference |
spatialReference
|
private java.lang.String |
spheroid
|
private float |
xllCorner
|
private float |
yllCorner
|
Constructor Summary | |
---|---|
CRasterFile(CRasterFile oldFile)
Create a new File instance with path+name= newFullFileName and copy all CRasterFile properties!. |
|
CRasterFile(CRasterFile oldFile,
java.lang.String newFullFileName)
Create a new File instance with path+name= newFullFileName and copy all CRasterFile properties!. |
|
CRasterFile(java.lang.String name)
|
Method Summary | |
---|---|
void |
createFileCopy(CRasterFile oldFile,
WorkerStatusCallback callback)
Creates a new File on hard disk with Path of File.absolutePath; |
boolean |
createNewFile(CRasterFile oldFile,
int dataType,
double noDataValue)
|
private void |
createRasterInformation()
|
boolean |
delete()
|
boolean |
exists()
|
java.io.File |
getAbsoluteFile()
|
java.lang.String |
getAbsolutePath()
|
org.gdal.gdal.Band |
getBand(int gdalAccess)
|
float |
getCellSize()
|
org.gdal.gdal.Dataset |
getDataset(int gdalAccess)
|
int |
getDataType()
|
java.lang.String |
getDatum()
|
org.gdal.gdal.Driver |
getDriver(int gdalAccess)
|
java.io.File |
getFileRef()
|
java.lang.String |
getGeocentricCS()
|
java.lang.String |
getGeographicCS()
|
double[] |
getGeoTransform()
|
java.lang.String |
getName()
|
int |
getNCols()
|
float |
getNoDataValue()
|
int |
getNRows()
|
java.lang.String |
getParent()
|
java.lang.String |
getProjectedCS()
|
java.lang.String |
getProjection()
|
java.lang.String |
getProjectionWKT()
|
org.gdal.osr.SpatialReference |
getSpatialReference()
|
java.util.Map<java.lang.String,java.lang.String> |
getSpatialReferenceAttr()
|
java.lang.String |
getSpheroid()
|
void |
getValues(CRasterFile rFile)
|
float |
getXllCorner()
|
float |
getYllCorner()
|
private void |
openGdalConnection(int gdalAccess)
|
void |
refresh()
|
void |
relocateFile(java.lang.String newPath)
|
boolean |
renameTo(java.io.File dest)
just renames the file reference and saves dest as new file reference. |
void |
setCellSize(float cellSize)
|
void |
setNCols(int nCols)
|
void |
setNoDataValue(float noDataValue)
|
void |
setNRows(int nRows)
|
void |
setXllCorner(float xllCorner)
|
void |
setYllCorner(float yllCorner)
|
void |
unlock()
|
void |
writeNodataValue(double nodataValue)
|
void |
writeNodataValueMax()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int nCols
private int nRows
private float xllCorner
private float yllCorner
private float noDataValue
private float cellSize
private org.gdal.gdal.Dataset dataset
private org.gdal.gdal.Driver driver
private org.gdal.gdal.Band band
private int dataType
private java.lang.String projectionWKT
private java.lang.String projectedCS
private java.lang.String geocentricCS
private java.lang.String projection
private java.lang.String geographicCS
private java.lang.String datum
private java.lang.String spheroid
private java.lang.String localCS
private double[] geoTransform
private org.gdal.osr.SpatialReference spatialReference
private java.io.File fileRef
Constructor Detail |
---|
public CRasterFile(CRasterFile oldFile) throws java.io.IOException, CRasterFileException
oldFile
-
java.io.IOException
CRasterFileException
public CRasterFile(CRasterFile oldFile, java.lang.String newFullFileName) throws java.io.IOException, CRasterFileException
oldFile
- newFullFileName
-
java.io.IOException
CRasterFileException
public CRasterFile(java.lang.String name) throws java.io.IOException, CRasterFileException
name
-
java.io.IOException
CRasterFileException
Method Detail |
---|
public void createFileCopy(CRasterFile oldFile, WorkerStatusCallback callback) throws java.io.IOException, CRasterFileException
oldFile
- callback
-
java.io.IOException
CRasterFileException
public boolean createNewFile(CRasterFile oldFile, int dataType, double noDataValue) throws java.io.IOException, CRasterFileException
oldFile
- dataType
- noDataValue
-
java.io.IOException
CRasterFileException
private void createRasterInformation() throws java.io.IOException, CRasterFileException
java.io.IOException
CRasterFileException
public boolean delete()
public boolean exists()
public java.io.File getAbsoluteFile()
public java.lang.String getAbsolutePath()
public org.gdal.gdal.Band getBand(int gdalAccess) throws java.io.IOException
gdalAccess
-
java.io.IOException
public float getCellSize()
public org.gdal.gdal.Dataset getDataset(int gdalAccess) throws java.io.IOException
gdalAccess
-
java.io.IOException
public int getDataType()
public java.lang.String getDatum()
public org.gdal.gdal.Driver getDriver(int gdalAccess) throws java.io.IOException
gdalAccess
-
java.io.IOException
public java.io.File getFileRef()
public java.lang.String getGeocentricCS()
public java.lang.String getGeographicCS()
public double[] getGeoTransform()
public java.lang.String getName()
public int getNCols()
public float getNoDataValue()
public int getNRows()
public java.lang.String getParent()
public java.lang.String getProjectedCS()
public java.lang.String getProjection()
public java.lang.String getProjectionWKT()
public org.gdal.osr.SpatialReference getSpatialReference()
public java.util.Map<java.lang.String,java.lang.String> getSpatialReferenceAttr()
public java.lang.String getSpheroid()
public void getValues(CRasterFile rFile)
rFile
- public float getXllCorner()
public float getYllCorner()
private void openGdalConnection(int gdalAccess) throws java.io.IOException
gdalAccess
-
java.io.IOException
public void refresh() throws java.io.IOException, CRasterFileException
java.io.IOException
CRasterFileException
public void relocateFile(java.lang.String newPath)
newPath
- public boolean renameTo(java.io.File dest) throws java.io.IOException
dest
-
java.io.IOException
public void setCellSize(float cellSize)
cellSize
- public void setNCols(int nCols)
nCols
- public void setNoDataValue(float noDataValue)
noDataValue
- public void setNRows(int nRows)
nRows
- public void setXllCorner(float xllCorner)
xllCorner
- public void setYllCorner(float yllCorner)
yllCorner
- public void unlock()
public void writeNodataValue(double nodataValue) throws java.io.IOException
nodataValue
-
java.io.IOException
public void writeNodataValueMax() throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |