public class GCPGeoreference
extends java.lang.Object
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 and Description |
---|
GCPGeoreference(int method)
GCPGeoreference constructor
|
GCPGeoreference(java.lang.String method)
GCPGeoreference constructor
|
Modifier and Type | Method and 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(GCPPoint point)
Add 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 Point
|
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)
|
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 |
addGCPs(java.util.Vector points) |
GCPPoint |
getGCP(int index)
Get a Ground Control Point
|
STRUCT |
toSTRUCT(java.sql.Connection conn)
Converts the GCPGeoreference into an Oracle JDBC Struct object.
|
public GCPGeoreference(int method)
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_RPCpublic GCPGeoreference(java.lang.String method)
method
- a valid Functional Fitting Method
"AFFINE"
"DLT"
"CUBICPOLYNOMIAL"
"QUADRATICPOLYNOMIAL"
"QUADRATICRATIONAL"
"RPC"public void addGCP(GCPPoint point)
point
- a GCPPoint objectpublic void addGCPs(java.util.Vector points)
public GCPPoint getGCP(int index)
index
- a valid index starting from 0public 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)
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 hightpublic 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)
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 hightpublic 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)
id
- Point iddescription
- Point descriptionrow
- Cell coordinate rowcolumn
- Cell coordinate columnx
- Model coordinate X or longitudey
- Model coordinate Y or latitudepublic 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)
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 hightpublic 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)
id
- Point iddescription
- Point descriptionrow
- Cell coordinate rowcolumn
- Cell coordinate columnx
- Model coordinate X or longitudey
- Model coordinate Y or latitudepublic STRUCT toSTRUCT(java.sql.Connection conn) throws java.sql.SQLException
conn
- the connection to use.java.sql.SQLException
- on error