public class SpatialReferenceInfo
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
GCPPOINT_STATUS_ESTIMATED
An integer indicating gcpPointStatus Estimated.
|
static int |
GCPPOINT_STATUS_INVALID
An integer indicating gcpPointStatus Invalidated.
|
static int |
GCPPOINT_STATUS_MEASURED
An integer indicating gcpPointStatus Measured.
|
static int |
GCPPOINT_STATUS_REMOVED
An integer indicating gcpPointStatus Removed.
|
static int |
GCPPOINT_STATUS_VALIDATED
An integer indicating gcpPointStatus Validated.
|
static int |
GCPPOINT_TYPE_CHECKPOINT
An integer indicating gcpPoint type CheckPoint.
|
static int |
GCPPOINT_TYPE_CONTROLPOINT
An integer indicating gcpPoint type ControlPoint.
|
static int |
GEOREFERENCE_TYPE_AFFINE
An integer indicating geoReference type affine.
|
static int |
GEOREFERENCE_TYPE_CUBICPOLYNOMIAL
An integer indicating geoReference type CubicPolynomial.
|
static int |
GEOREFERENCE_TYPE_DLT
An integer indicating geoReference type DLT.
|
static int |
GEOREFERENCE_TYPE_QUADRATICPOLYNOMIAL |
static int |
GEOREFERENCE_TYPE_QUADRATICRATIONAL
An integer indicating geoReference type QuadraticRational.
|
static int |
GEOREFERENCE_TYPE_RPC
An integer indicating geoReference type RPC.
|
static int |
GEOREFERENCE_TYPE_UNKNOWN
An integer indicating geoReference type UNKNOWN.
|
static int |
MDGRX_SRM_FUNCFITTING
An integer indicating modelType FunctionalFitting.
|
static int |
MDGRX_SRM_RIGOROUS
An integer indicating modelType RigorousModel.
|
static int |
MDGRX_SRM_STOREDFUNC
An integer indicating modelType StoredFunction.
|
static java.lang.String |
MODEL_DIMENSION_S
A string indicating the S dimension in the GeoRaster model space.
|
static java.lang.String |
MODEL_DIMENSION_T
A string indicating the T dimension in the GeoRaster model space.
|
static java.lang.String |
MODEL_DIMENSION_X
A string indicating the X dimension in the GeoRaster model space.
|
static java.lang.String |
MODEL_DIMENSION_Y
A string indicating the Y dimension in the GeoRaster model space.
|
static java.lang.String |
MODEL_DIMENSION_Z
A string indicating the Z dimension in the GeoRaster model space.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addGcpPoints(java.util.Vector points)
Append the GCP points to existing GCP points.
|
double[] |
computeSpatialResolutions(int pyramidLevel)
Computes the spatial resolution based on GeoReference information.
|
double[] |
getCellCoordinate(double x, double y, long pyramidLevel)
Calculates cell coordinates based on given model coordinates.
|
double[] |
getCellCoordinate(double x, double y, long pyramidLevel, double height)
Calculates cell coordinates based on given model coordinates.
|
JGeometry |
getCellCoordinate(JGeometry geometry, int pyramidLevel)
Transforms a geometry in the ground coordinate system to the location of a geometry in the raster space of the GeoRaster object.
|
JGeometry |
getCellCoordinate(JGeometry geometry, int pyramidLevel, double height)
Transforms a geometry in the ground coordinate system to the location of a geometry in the raster space of the GeoRaster object.
|
java.lang.String |
getDescription()
Returns the georeference description.
|
GeorFunctionalFittingModel |
getFunctionalFittingModel()
Returns a GeorFunctionFittingModel object based on XML metadata.
|
int |
getGcpFFMethod()
Returns the GCP FFMethod.
|
java.util.Vector |
getGcpPoints()
Returns the GCP points.
|
java.lang.String |
getGcpTableName()
Returns the GCP table name.
|
int |
getGeoreferenceType()
Returns the georeference type.
|
double[] |
getModelCoordinate(double row, double column, long pyramidLevel)
calculate model coordinates based on given cell coordinates.
|
double[] |
getModelCoordinate(double row, double column, long pyramidLevel, double height)
calculate model coordinates based on given cell coordinates.
|
JGeometry |
getModelCoordinate(JGeometry geometry, int pyramidLevel, int targetSRID)
Transforms a geometry in the raster space of the GeoRaster object to a geometry in the ground coordinate system.
|
JGeometry |
getModelCoordinate(JGeometry geometry, int pyramidLevel, int targetSRID, double height)
Transforms a geometry in the raster space of the GeoRaster object to a geometry in the ground coordinate system.
|
java.lang.String |
getModelCoordinateLocation()
Returns the model coordinate location.
|
java.lang.String |
getModelDimensionDescription()
Returns the model dimension description.
|
java.lang.Integer |
getModelSRID()
Returns the SRID.
|
int |
getModelType()
Returns the model type.
|
java.lang.Double |
getSpatialResolution(java.lang.String dimension)
Returns the spatial resolution of the specified dimension stored in the XML without verification and computing; this means return value might be different from the value returned by the method computeSpatialResolutions.
|
java.lang.Double |
getSpatialTolerance()
Returns the spatial tolerance.
|
java.lang.Integer |
getVerticalSRID()
Returns the vertical SRID.
|
java.lang.Boolean |
isOrthoRectified()
Returns true if the current GeoRaster object is orthorectified.
|
java.lang.Boolean |
isRectified()
Returns true if the current GeoRaster object is rectified.
|
java.lang.Boolean |
isReferenced()
Returns true if the current GeoRaster object is georeferenced.
|
void |
setDescription(java.lang.String description)
Sets the georeference description.
|
void |
setFunctionFittingModel(GeorFunctionalFittingModel srs)
Initiates attribute values based on a given GeorFunctionFittingModel object.
|
void |
setGcpFFMethod(int FFMethod)
Sets the GCP FFMethod.
|
void |
setGcpPoints(java.util.Vector points)
Sets the GCP points.
|
void |
setGcpTableName(java.lang.String gcpTableName)
Sets the GCP table name.
|
void |
setModelCoordinateLocation(java.lang.String modelCoordinateLocation)
Sets the model coordinate location.
|
void |
setModelDimensionDescription(java.lang.String modelDimensionDescription)
Sets the model dimension description.
|
void |
setModelSRID(java.lang.Integer SRID)
Sets the SRID.
|
void |
setModelType(int modelType)
Sets the model type.
|
void |
setOrthoRectified(java.lang.Boolean isOrthoRectified)
Sets true if the current GeoRaster object is orthorectified.
|
void |
setRectified(java.lang.Boolean isRectified)
Sets true if the current GeoRaster object is rectified.
|
void |
setReferenced(java.lang.Boolean isReferenced)
Sets true if the current GeoRaster object is georeferenced.
|
void |
setSpatialResolution(java.lang.String dimension, java.lang.Double resolution)
Sets the spatial resolution of the specified dimension.
|
void |
setSpatialTolerance(java.lang.Double spatialTolerance)
Sets the spatial tolerance.
|
void |
setWorldFile(double A, double B, double C, double D, double E, double F)
Initiates attribute values based on given parameters in a world file.
|
public static final java.lang.String MODEL_DIMENSION_X
public static final java.lang.String MODEL_DIMENSION_Y
public static final java.lang.String MODEL_DIMENSION_Z
public static final java.lang.String MODEL_DIMENSION_T
public static final java.lang.String MODEL_DIMENSION_S
public static final int GEOREFERENCE_TYPE_UNKNOWN
public static final int GEOREFERENCE_TYPE_AFFINE
public static final int GEOREFERENCE_TYPE_DLT
public static final int GEOREFERENCE_TYPE_RPC
public static final int GEOREFERENCE_TYPE_QUADRATICPOLYNOMIAL
public static final int GEOREFERENCE_TYPE_CUBICPOLYNOMIAL
public static final int GEOREFERENCE_TYPE_QUADRATICRATIONAL
public static final int GCPPOINT_TYPE_CONTROLPOINT
public static final int GCPPOINT_TYPE_CHECKPOINT
public static final int GCPPOINT_STATUS_MEASURED
public static final int GCPPOINT_STATUS_REMOVED
public static final int GCPPOINT_STATUS_ESTIMATED
public static final int GCPPOINT_STATUS_VALIDATED
public static final int GCPPOINT_STATUS_INVALID
public static final int MDGRX_SRM_RIGOROUS
public static final int MDGRX_SRM_STOREDFUNC
public static final int MDGRX_SRM_FUNCFITTING
public java.lang.Boolean isReferenced()
public void setReferenced(java.lang.Boolean isReferenced)
isReferenced - true if the current GeoRaster object is georeferencedpublic java.lang.Boolean isRectified()
public void setRectified(java.lang.Boolean isRectified)
isRectified - true if the current GeoRaster object is rectifiedpublic java.lang.Boolean isOrthoRectified()
public void setOrthoRectified(java.lang.Boolean isOrthoRectified)
isOrthoRectified - true if the current GeoRaster object is orthorectifiedpublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - georeference descriptionpublic java.lang.Integer getModelSRID()
public void setModelSRID(java.lang.Integer SRID)
SRID - SRIDpublic java.lang.Integer getVerticalSRID()
public java.lang.String getModelDimensionDescription()
public void setModelDimensionDescription(java.lang.String modelDimensionDescription)
modelDimensionDescription - model dimension descriptionpublic java.lang.Double getSpatialResolution(java.lang.String dimension)
dimension - specified dimension stringpublic double[] computeSpatialResolutions(int pyramidLevel)
pyramidLevel - specified pyramid level
public void setSpatialResolution(java.lang.String dimension,
java.lang.Double resolution)
dimension - specified dimension stringresolution - spatial resolution of specified dimension.public java.lang.Double getSpatialTolerance()
public void setSpatialTolerance(java.lang.Double spatialTolerance)
spatialTolerance - spatial tolerancepublic java.lang.String getModelCoordinateLocation()
public void setModelCoordinateLocation(java.lang.String modelCoordinateLocation)
modelCoordinateLocation - model coordinate locationpublic int getModelType()
public void setModelType(int modelType)
modelType - model typepublic int getGcpFFMethod()
public void setGcpFFMethod(int FFMethod)
FFMethod - GCP FFMethodpublic java.util.Vector getGcpPoints()
public void setGcpPoints(java.util.Vector points)
points - a vector of GCP pointspublic void addGcpPoints(java.util.Vector points)
points - a vector of GCP pointspublic java.lang.String getGcpTableName()
public void setGcpTableName(java.lang.String gcpTableName)
gcpTableName - GCP table namepublic GeorFunctionalFittingModel getFunctionalFittingModel()
public void setWorldFile(double A,
double B,
double C,
double D,
double E,
double F)
throws GeoRasterException
A - parameter A defined in the worldfileB - parameter B defined in the worldfileC - parameter C defined in the worldfileD - parameter D defined in the worldfileE - parameter E defined in the worldfileF - parameter F defined in the worldfileGeoRasterExceptionpublic void setFunctionFittingModel(GeorFunctionalFittingModel srs)
srs - GeorFunctionFittingModel object.public int getGeoreferenceType()
public double[] getModelCoordinate(double row,
double column,
long pyramidLevel)
row - row number in cell space, which already counts in row ULTCoordinate.column - column number in cell space, which already counts in column ULTCoordinate.pyramidLevel - pyramid level.
public double[] getModelCoordinate(double row,
double column,
long pyramidLevel,
double height)
row - row number in cell space, which already counts in row ULTCoordinatecolumn - column number in cell space, which already counts in column ULTCoordinatepyramidLevel - pyramid levelheight - heightpublic JGeometry getModelCoordinate(JGeometry geometry, int pyramidLevel, int targetSRID) throws java.lang.Exception
geometry - a geometry in the cell spacepyramidLevel - pyramid leveltargetSRID - target SRID; must be greater than zerojava.lang.Exceptionpublic JGeometry getModelCoordinate(JGeometry geometry, int pyramidLevel, int targetSRID, double height) throws java.lang.Exception
geometry - a geometry in the cell spacepyramidLevel - pyramid leveltargetSRID - target SRID; must be greater than zeroheight - heightjava.lang.Exception
public double[] getCellCoordinate(double x,
double y,
long pyramidLevel)
x - x in model spacey - y in model spacepyramidLevel - pyramid level
public double[] getCellCoordinate(double x,
double y,
long pyramidLevel,
double height)
x - x in model spacey - y in model spacepyramidLevel - pyramid levelheight - heightpublic JGeometry getCellCoordinate(JGeometry geometry, int pyramidLevel)
geometry - a geometry in the ground coordinate systempyramidLevel - pyramid levelpublic JGeometry getCellCoordinate(JGeometry geometry, int pyramidLevel, double height)
geometry - a geometry in the ground coordinate systempyramidLevel - pyramid levelheight - number specifying the Z value for three-dimensional (X, Y, Z) georeferencing