Package oracle.spatial.georaster
Class GeorSpatialReference
- java.lang.Object
-
- oracle.spatial.georaster.GeorSpatialReference
-
public class GeorSpatialReference extends java.lang.Object
- Since:
- release specific (what release of product did this appear in)
-
-
Constructor Summary
Constructors Constructor Description GeorSpatialReference()
GeorSpatialReference(SpatialReferenceInfo srs)
GeorSpatialReference support the representation of a SDO_GEOR_SRS type and can be instantiated from a SpatialRerenceInfo object or from scracth.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Double[]
getColDenominator()
Get Column Denominatorjava.lang.Double[]
getColNumerator()
Get Column Numeratorjava.lang.Double
getColumnOff()
Get column offsetjava.lang.Double
getColumnRMS()
Get column RMSjava.lang.Double
getColumnScale()
Get column scalejava.lang.String
getModelCoordinateLocation()
Get model coordinate locationjava.lang.Integer
getModelSRID()
Get model SRIDjava.lang.Double
getModelTotalRMS()
Get model total RMSjava.lang.Double[]
getRowDenominator()
Get Row Denominatorjava.lang.Double[]
getRowNumerator()
Get row numeratorjava.lang.Double
getRowOff()
Get row offsetjava.lang.Double
getRowRMS()
Get row RMSjava.lang.Double
getRowScale()
Get row scalejava.lang.Double[]
getSpatialResolutions()
Get Spatial Resolution of all dimensions:java.lang.Double
getSpatialTolerance()
Get spatial tolerancejava.lang.Double
getTotalRMS()
Get total RMSjava.lang.Double
getXOff()
Get x offsetjava.lang.Double
getXRMS()
Get x RMSjava.lang.Double
getXScale()
Get x scalejava.lang.Double
getYOff()
Get x offsetjava.lang.Double
getYRMS()
Get y RMSjava.lang.Double
getYScale()
Get y scalejava.lang.Double
getZOff()
Get z offsetjava.lang.Double
getZRMS()
Get z RMSjava.lang.Double
getZScale()
Get z scalejava.lang.Boolean
isOrthoRectified()
Get true if spatial orthorectified is orthorectified, false if is notjava.lang.Boolean
isRectified()
Get true if spatial reference is rectified, false if is notjava.lang.Boolean
isReferenced()
Get true if spatial reference is referenced, false if is notstatic GeorSpatialReference
loadJS(java.sql.Struct srs)
void
setColDenominator(java.lang.Integer pType, java.lang.Integer nVars, java.lang.Integer order, java.util.Vector coefficients)
Create an array with Column Denominatorvoid
setColNumerator(java.lang.Integer pType, java.lang.Integer nVars, java.lang.Integer order, java.util.Vector coefficients)
Create an array with Column Numeratorvoid
setColumnOff(java.lang.Double value)
Set column offsetvoid
setColumnRMS(java.lang.Double value)
Set column RMSvoid
setColumnScale(java.lang.Double value)
Set column scalevoid
setModelCoordinateLocation(java.lang.String value)
Set model coordinate locationvoid
setModelSRID(java.lang.Integer value)
Set model SRIDvoid
setModelTotalRMS(java.lang.Double value)
Set model total RMSvoid
setOrthoRectified(java.lang.Boolean value)
Set true if spatial orthorectified is referenced, false if is notvoid
setRectified(java.lang.Boolean value)
Set true if spatial reference is referenced, false if is notvoid
setReferenced(java.lang.Boolean value)
Set true if spatial reference is referenced, false if is notvoid
setRowDenominator(java.lang.Integer pType, java.lang.Integer nVars, java.lang.Integer order, java.util.Vector coefficients)
Create an array with Row Denominatorvoid
setRowNumerator(java.lang.Integer pType, java.lang.Integer nVars, java.lang.Integer order, java.util.Vector coefficients)
Create an array with Row Numeratorvoid
setRowOff(java.lang.Double value)
Set row offsetvoid
setRowRMS(java.lang.Double value)
Set row RMSvoid
setRowScale(java.lang.Double value)
Set row scalevoid
setSpatialResolutions(java.lang.Double xResolution, java.lang.Double yResolution, java.lang.Double tResolution, java.lang.Double zResolution)
Set Spatial X, Y, T (time) and Z (hight) Resolutionsvoid
setSpatialTolerance(java.lang.Double value)
Set spatial tolerancevoid
setTotalRMS(java.lang.Double value)
Set total RMSvoid
setXOff(java.lang.Double value)
Set z offsetvoid
setXRMS(java.lang.Double value)
Set x RMSvoid
setXScale(java.lang.Double value)
Set x scalevoid
setYOff(java.lang.Double value)
Set y offsetvoid
setYRMS(java.lang.Double value)
Set y RMSvoid
setYScale(java.lang.Double value)
Set y scalevoid
setZOff(java.lang.Double value)
Set z offsetvoid
setZRMS(java.lang.Double value)
Set z RMSvoid
setZScale(java.lang.Double value)
St z scalejava.sql.Struct
toSTRUCT(java.sql.Connection conn)
Converts the Spatial Reference information into an Oracle JDBC Struct object.
-
-
-
Constructor Detail
-
GeorSpatialReference
public GeorSpatialReference()
-
GeorSpatialReference
public GeorSpatialReference(SpatialReferenceInfo srs) throws GeoRasterException
GeorSpatialReference support the representation of a SDO_GEOR_SRS type and can be instantiated from a SpatialRerenceInfo object or from scracth.- Parameters:
srs
- an SpatialReferenceInfo object- Throws:
GeoRasterException
-
-
Method Detail
-
isRectified
public java.lang.Boolean isRectified()
Get true if spatial reference is rectified, false if is not- Returns:
- boolean value whether rectified
-
setRectified
public void setRectified(java.lang.Boolean value)
Set true if spatial reference is referenced, false if is not- Parameters:
value
- whether rectifed
-
isReferenced
public java.lang.Boolean isReferenced()
Get true if spatial reference is referenced, false if is not- Returns:
- boolean value whether spatial referenced
-
setReferenced
public void setReferenced(java.lang.Boolean value)
Set true if spatial reference is referenced, false if is not- Parameters:
value
- boolean value whether spatial referenced
-
isOrthoRectified
public java.lang.Boolean isOrthoRectified()
Get true if spatial orthorectified is orthorectified, false if is not- Returns:
- boolean value whether orthorectifed
-
setOrthoRectified
public void setOrthoRectified(java.lang.Boolean value)
Set true if spatial orthorectified is referenced, false if is not- Parameters:
value
- whether orthorectified
-
getModelCoordinateLocation
public java.lang.String getModelCoordinateLocation()
Get model coordinate location- Returns:
- value of the model coordinate location
-
setModelCoordinateLocation
public void setModelCoordinateLocation(java.lang.String value)
Set model coordinate location- Parameters:
value
- "CENTER" "UPPERLEFT"
-
getModelSRID
public java.lang.Integer getModelSRID()
Get model SRID- Returns:
- model SRID
-
setModelSRID
public void setModelSRID(java.lang.Integer value)
Set model SRID- Parameters:
value
- model SRID
-
getSpatialTolerance
public java.lang.Double getSpatialTolerance()
Get spatial tolerance- Returns:
- spatial tolerance
-
setSpatialTolerance
public void setSpatialTolerance(java.lang.Double value)
Set spatial tolerance- Parameters:
value
- spatial tolerance
-
setSpatialResolutions
public void setSpatialResolutions(java.lang.Double xResolution, java.lang.Double yResolution, java.lang.Double tResolution, java.lang.Double zResolution)
Set Spatial X, Y, T (time) and Z (hight) Resolutions- Parameters:
xResolution
- Spatial resolution on XyResolution
- Spatial resolution on YtResolution
- Spatial resolution on TzResolution
- Spatial resolution on Z
-
getSpatialResolutions
public java.lang.Double[] getSpatialResolutions()
Get Spatial Resolution of all dimensions:- Returns:
- on return[0] X Resolution on return[1] Y Resolution on return[2] T (time) Resolution on return[3] Z (hight) Resolution
-
getRowOff
public java.lang.Double getRowOff()
Get row offset- Returns:
- value of row offset
-
setRowOff
public void setRowOff(java.lang.Double value)
Set row offset- Parameters:
value
- row offset
-
getColumnOff
public java.lang.Double getColumnOff()
Get column offset- Returns:
- value of column offset
-
setColumnOff
public void setColumnOff(java.lang.Double value)
Set column offset- Parameters:
value
- column offset
-
getXOff
public java.lang.Double getXOff()
Get x offset- Returns:
- value of X offset
-
setXOff
public void setXOff(java.lang.Double value)
Set z offset- Parameters:
value
- Z offset
-
getYOff
public java.lang.Double getYOff()
Get x offset- Returns:
- value of X offset
-
setYOff
public void setYOff(java.lang.Double value)
Set y offset- Parameters:
value
- Y offset
-
getZOff
public java.lang.Double getZOff()
Get z offset- Returns:
- value of Z offset
-
setZOff
public void setZOff(java.lang.Double value)
Set z offset- Parameters:
value
- Z offset
-
getRowScale
public java.lang.Double getRowScale()
Get row scale- Returns:
- value of row scale
-
setRowScale
public void setRowScale(java.lang.Double value)
Set row scale- Parameters:
value
- row scale
-
getColumnScale
public java.lang.Double getColumnScale()
Get column scale- Returns:
- value of column scale
-
setColumnScale
public void setColumnScale(java.lang.Double value)
Set column scale- Parameters:
value
- column scale
-
getXScale
public java.lang.Double getXScale()
Get x scale- Returns:
- value of X scale
-
setXScale
public void setXScale(java.lang.Double value)
Set x scale- Parameters:
value
- X scale
-
getYScale
public java.lang.Double getYScale()
Get y scale- Returns:
- value of Y scale
-
setYScale
public void setYScale(java.lang.Double value)
Set y scale- Parameters:
value
- Y scale
-
getZScale
public java.lang.Double getZScale()
Get z scale- Returns:
- value of Z scale
-
setZScale
public void setZScale(java.lang.Double value)
St z scale- Parameters:
value
- Z scale
-
getRowRMS
public java.lang.Double getRowRMS()
Get row RMS- Returns:
- value of row RMS
-
setRowRMS
public void setRowRMS(java.lang.Double value)
Set row RMS- Parameters:
value
- row RMS
-
getColumnRMS
public java.lang.Double getColumnRMS()
Get column RMS- Returns:
- value of column RMS
-
setColumnRMS
public void setColumnRMS(java.lang.Double value)
Set column RMS- Parameters:
value
- column RMS
-
getTotalRMS
public java.lang.Double getTotalRMS()
Get total RMS- Returns:
- value of total RMS
-
setTotalRMS
public void setTotalRMS(java.lang.Double value)
Set total RMS- Parameters:
value
- total RMS
-
getRowNumerator
public java.lang.Double[] getRowNumerator()
Get row numerator- Returns:
- values of row numberator
-
setRowNumerator
public void setRowNumerator(java.lang.Integer pType, java.lang.Integer nVars, java.lang.Integer order, java.util.Vector coefficients) throws GeoRasterException
Create an array with Row Numerator- Parameters:
pType
- polynomial typenVars
- polynomial number of variablesorder
- polynomial ordercoefficients
- polynomial coeeficients- Throws:
GeoRasterException
-
getColNumerator
public java.lang.Double[] getColNumerator()
Get Column Numerator- Returns:
- on return[0] polynomial type on return[1] polynomial number of variables on return[2] polynomial order on return[3..N] coefficients polynomial coeeficients
-
setColNumerator
public void setColNumerator(java.lang.Integer pType, java.lang.Integer nVars, java.lang.Integer order, java.util.Vector coefficients) throws GeoRasterException
Create an array with Column Numerator- Parameters:
pType
- polynomial typenVars
- polynomial number of variablesorder
- polynomial ordercoefficients
- polynomial coeeficients- Throws:
GeoRasterException
-
getRowDenominator
public java.lang.Double[] getRowDenominator()
Get Row Denominator- Returns:
- on return[0] polynomial type on return[1] polynomial number of variables on return[2] polynomial order on return[3..N] coefficients polynomial coeeficients
-
setRowDenominator
public void setRowDenominator(java.lang.Integer pType, java.lang.Integer nVars, java.lang.Integer order, java.util.Vector coefficients) throws GeoRasterException
Create an array with Row Denominator- Parameters:
pType
- polynomial typenVars
- polynomial number of variablesorder
- polynomial ordercoefficients
- polynomial coeeficients- Throws:
GeoRasterException
-
getColDenominator
public java.lang.Double[] getColDenominator()
Get Column Denominator- Returns:
- on return[0] polynomial type on return[1] polynomial number of variables on return[2] polynomial order on return[3..N] coefficients polynomial coeeficients
-
setColDenominator
public void setColDenominator(java.lang.Integer pType, java.lang.Integer nVars, java.lang.Integer order, java.util.Vector coefficients) throws GeoRasterException
Create an array with Column Denominator- Parameters:
pType
- polynomial typenVars
- polynomial number of variablesorder
- polynomial ordercoefficients
- polynomial coeeficients- Throws:
GeoRasterException
-
getXRMS
public java.lang.Double getXRMS()
Get x RMS- Returns:
- value of X RMS
-
setXRMS
public void setXRMS(java.lang.Double value)
Set x RMS- Parameters:
value
- X RMS
-
getYRMS
public java.lang.Double getYRMS()
Get y RMS- Returns:
- value of Y RMS
-
setYRMS
public void setYRMS(java.lang.Double value)
Set y RMS- Parameters:
value
- Y RMS
-
getZRMS
public java.lang.Double getZRMS()
Get z RMS- Returns:
- value of Z RMS
-
setZRMS
public void setZRMS(java.lang.Double value)
Set z RMS- Parameters:
value
- Z RMS
-
getModelTotalRMS
public java.lang.Double getModelTotalRMS()
Get model total RMS- Returns:
- value of model total RMS
-
setModelTotalRMS
public void setModelTotalRMS(java.lang.Double value)
Set model total RMS- Parameters:
value
- model total RMS
-
toSTRUCT
public java.sql.Struct toSTRUCT(java.sql.Connection conn) throws java.sql.SQLException
Converts the Spatial Reference information into an Oracle JDBC Struct object. You can then bind the Struct object to a SQL statment that inserts or updates the SDO_GEOR_SRS in the database.- Parameters:
conn
- the connection to use.- Returns:
- a java.sql.Struct object when successful; otherwise null
- Throws:
java.sql.SQLException
- on error
-
loadJS
public static final GeorSpatialReference loadJS(java.sql.Struct srs) throws java.sql.SQLException, GeoRasterException
- Throws:
java.sql.SQLException
GeoRasterException
-
-