Package oracle.spatial.georaster
Class GCPGeoreference
- java.lang.Object
-
- oracle.spatial.georaster.GCPGeoreference
-
public class GCPGeoreference extends java.lang.Object
GCPGeoreference represents the PL/SQL type MDSYS.SDO_GEOR_GEOREFERENCE It could be used to load Ground Control Points into a GeoRaster using sdo_geor.georeference. Example:GCPGeoreference gcpg = new GCPGeoreference("Affine"); gcpg.addGCP("1", null, 25.625, 73.875, 237036.9375, 897987.1875); gcpg.addGCP("2", null, 100.625, 459.125, 237229.5625, 897949.6875); gcpg.addGCP("3", null, 362.375, 77.875, 237038.9375, 897818.8125); gcpg.addGCP("4", null, 478.875, 402.125, 237201.0625, 897760.5625); gcpg.addGCP("5", null, 167.47, 64.03, 237032.0153, 897916.2647); georPKG.georeference(geor, gcpg, false, 4326, 0, null);
-
-
Constructor Summary
Constructors Constructor Description GCPGeoreference(int method)
GCPGeoreference constructorGCPGeoreference(java.lang.String method)
GCPGeoreference constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCheckPoint(java.lang.String id, java.lang.String description, java.lang.Double row, java.lang.Double column, java.lang.Double x, java.lang.Double y)
Add a 2D Gound Check Point (not a Ground Control Point)void
addCheckPoint(java.lang.String id, java.lang.String description, java.lang.Double row, java.lang.Double column, java.lang.Integer vertical, java.lang.Double x, java.lang.Double y, java.lang.Double z)
Add a Gound Check Point (not a Ground Control Point)void
addGCP(int type, java.lang.String id, java.lang.String description, java.lang.Double row, java.lang.Double column, java.lang.Integer vertical, java.lang.Double x, java.lang.Double y, java.lang.Double z)
Add a Gound Control Pointvoid
addGCP(java.lang.String id, java.lang.String description, java.lang.Double row, java.lang.Double column, java.lang.Double x, java.lang.Double y)
Add a 2D Gound Control Point (not a Ground Check Point)void
addGCP(java.lang.String id, java.lang.String description, java.lang.Double row, java.lang.Double column, java.lang.Integer vertical, java.lang.Double x, java.lang.Double y, java.lang.Double z)
Add a Gound Control Point (not a Ground Check Point)void
addGCP(GCPPoint point)
Add a Ground Control Pointvoid
addGCPs(java.util.Vector points)
GCPPoint
getGCP(int index)
Get a Ground Control Pointoracle.sql.STRUCT
toSTRUCT(java.sql.Connection conn)
Converts the GCPGeoreference into an Oracle JDBC Struct object.
-
-
-
Constructor Detail
-
GCPGeoreference
public GCPGeoreference(int method)
GCPGeoreference constructor- Parameters:
method
- a valid Functional Fitting Method: SpatialReferenceInfo.GEOREFERENCE_TYPE_AFFINE SpatialReferenceInfo.GEOREFERENCE_TYPE_DLT SpatialReferenceInfo.GEOREFERENCE_TYPE_CUBICPOLYNOMIAL SpatialReferenceInfo.GEOREFERENCE_TYPE_QUADRATICPOLYNOMIAL SpatialReferenceInfo.GEOREFERENCE_TYPE_QUADRATICRATIONAL SpatialReferenceInfo.GEOREFERENCE_TYPE_RPC
-
GCPGeoreference
public GCPGeoreference(java.lang.String method)
GCPGeoreference constructor- Parameters:
method
- a valid Functional Fitting Method "AFFINE" "DLT" "CUBICPOLYNOMIAL" "QUADRATICPOLYNOMIAL" "QUADRATICRATIONAL" "RPC"
-
-
Method Detail
-
addGCP
public void addGCP(GCPPoint point)
Add a Ground Control Point- Parameters:
point
- a GCPPoint object
-
addGCPs
public void addGCPs(java.util.Vector points)
-
getGCP
public GCPPoint getGCP(int index)
Get a Ground Control Point- Parameters:
index
- a valid index starting from 0- Returns:
- a GCPPoint object
-
addGCP
public void addGCP(int type, java.lang.String id, java.lang.String description, java.lang.Double row, java.lang.Double column, java.lang.Integer vertical, java.lang.Double x, java.lang.Double y, java.lang.Double z)
Add a Gound Control Point- Parameters:
type
- the Ground Control Point type, 0 - Ground Control Point 1 - Ground Check Pointid
- Point iddescription
- Point descriptionrow
- Cell coordinate rowcolumn
- Cell coordinate columnvertical
- Cell coordinate verticalx
- Model coordinate X or longitudey
- Model coordinate Y or latitudez
- Model coordinate Z or hight
-
addGCP
public void addGCP(java.lang.String id, java.lang.String description, java.lang.Double row, java.lang.Double column, java.lang.Integer vertical, java.lang.Double x, java.lang.Double y, java.lang.Double z)
Add a Gound Control Point (not a Ground Check Point)- Parameters:
id
- Point iddescription
- Point descriptionrow
- Cell coordinate rowcolumn
- Cell coordinate columnvertical
- Cell coordinate verticalx
- Model coordinate X or longitudey
- Model coordinate Y or latitudez
- Model coordinate Z or hight
-
addGCP
public void addGCP(java.lang.String id, java.lang.String description, java.lang.Double row, java.lang.Double column, java.lang.Double x, java.lang.Double y)
Add a 2D Gound Control Point (not a Ground Check Point)- Parameters:
id
- Point iddescription
- Point descriptionrow
- Cell coordinate rowcolumn
- Cell coordinate columnx
- Model coordinate X or longitudey
- Model coordinate Y or latitude
-
addCheckPoint
public void addCheckPoint(java.lang.String id, java.lang.String description, java.lang.Double row, java.lang.Double column, java.lang.Integer vertical, java.lang.Double x, java.lang.Double y, java.lang.Double z)
Add a Gound Check Point (not a Ground Control Point)- Parameters:
id
- Point iddescription
- Point descriptionrow
- Cell coordinate rowcolumn
- Cell coordinate columnvertical
- Cell coordinate verticalx
- Model coordinate X or longitudey
- Model coordinate Y or latitudez
- Model coordinate Z or hight
-
addCheckPoint
public void addCheckPoint(java.lang.String id, java.lang.String description, java.lang.Double row, java.lang.Double column, java.lang.Double x, java.lang.Double y)
Add a 2D Gound Check Point (not a Ground Control Point)- Parameters:
id
- Point iddescription
- Point descriptionrow
- Cell coordinate rowcolumn
- Cell coordinate columnx
- Model coordinate X or longitudey
- Model coordinate Y or latitude
-
toSTRUCT
public oracle.sql.STRUCT toSTRUCT(java.sql.Connection conn) throws java.sql.SQLException
Converts the GCPGeoreference into an Oracle JDBC Struct object. You can then bind the Struct object to a SQL statment that inserts or updates the geometry 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
-
-