|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.crs.configuration.deegree.db.CRSDBExporter
public class CRSDBExporter
The CRSDBExporter class inserts a CRS object in the database. In order not to introduce an object
twice, the codetype( sometimes - when the code is not provided - the objects's data) is checked not to exist already
in the database.
| Constructor Summary | |
|---|---|
CRSDBExporter()
CRS database exporter |
|
| Method Summary | |
|---|---|
protected int |
export(Axis axis)
Inserts the Axis properties into the database |
protected int |
export(CompoundCRS compound)
Insert into the database the supplied Compound CRS |
protected int |
export(CoordinateSystem crs)
Delegate the CRS to the specific exporting method |
protected int |
export(Ellipsoid ellipsoid)
Insert the Ellipsoid object data into the database |
protected int |
export(GeocentricCRS geocentric)
Insert the Geocentric CRS data into the database |
protected int |
export(GeodeticDatum gdatum)
Insert the Geodetic Datum properties into the database |
protected int |
export(GeographicCRS geographic)
Inserts the GeographicCRS data into the database |
protected int |
export(Helmert helmert)
Insert the Helmert Transformation properties into the database |
protected int |
export(LambertAzimuthalEqualArea lambertAzimuthal)
Insert into the database the Lambert Azimuthal Equal Area projection properties |
protected int |
export(LambertConformalConic lambertConformal)
Insert into the database the Lambert Conformal Conic projection properties |
void |
export(List<CoordinateSystem> crsList)
Export to database the supplied list of CoordinateSystems |
protected int |
export(Mercator mercator)
Inserts the Mercator projection into the database |
protected int |
export(PrimeMeridian pm)
Insert the Prime Meridian properties into the database |
protected int |
export(ProjectedCRS projected)
Inserts the Projected CRS data into the database |
protected int |
export(Projection projection)
Checks for the type of projection that is supplied and delegates the insertion to the specific methods. |
protected int |
export(StereographicAlternative stereographicAl)
Inserts into the database the Stereographic Alternative projection properties |
protected int |
export(StereographicAzimuthal stereographicAz)
Insert into the database the Stereographic Azimuthal projection properties |
protected int |
export(TransverseMercator transMercator)
Inserts the Transverse Mercator projection into the database |
protected int |
export(VerticalCRS vertical)
Insert the Vertical CRS data into the database |
protected int |
export(VerticalDatum vDatum)
Export the Vertical Datum to the database |
protected void |
exportIdentifiableProperties(CRSIdentifiable crsObject)
Insert into the database the core Identifiable properties of an object |
static void |
main(String[] args)
Command-line tool for inserting a CRS that is provided in a either in WKT format (via a filename argument), or in XML format (through its codetype). |
protected void |
setConnection(Connection connection)
Set the database connection (that is usually obtained from DatabaseCRSProvider) |
protected void |
setNullDoubleIf(double d,
int pos,
PreparedStatement preparedSt)
Checks if the double variable to be inserted in the database is NULL, and if so, sets the database value to NULL. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CRSDBExporter()
| Method Detail |
|---|
protected void setConnection(Connection connection)
DatabaseCRSProvider)
connection - the database connectionprotected void exportIdentifiableProperties(CRSIdentifiable crsObject)
crsObject - any CRS object
protected int export(LambertAzimuthalEqualArea lambertAzimuthal)
throws SQLException
lambertAzimuthal - the Lambert Azimuthal Equal Area projection object
SQLException - when an SQLException occurs
protected int export(StereographicAlternative stereographicAl)
throws SQLException
stereographicAl - the Stereographic Alternative projection object
SQLException - when an SQLException occurs
protected int export(StereographicAzimuthal stereographicAz)
throws SQLException
stereographicAz - the Stereographic Azimuthal projection object
SQLException - when an SQLException occurs
protected int export(LambertConformalConic lambertConformal)
throws SQLException
lambertConformal - the Lambert Conformal projection object
SQLException - when an SQLException occurs
protected void setNullDoubleIf(double d,
int pos,
PreparedStatement preparedSt)
d - the double variable from the insert statementpos - the position of the variable in the PreparedStatement from the java.sqlpreparedSt - the PreparedStatement
protected int export(TransverseMercator transMercator)
throws SQLException
transMercator - the Transform Mercator projection object
SQLException - when an SQLException occurs
protected int export(Mercator mercator)
throws SQLException
mercator - the Mercator projection object
SQLException - when an SQLException occurs
protected int export(Axis axis)
throws SQLException
axis - the Axis object
SQLException - when an SQLException occurs
protected int export(VerticalDatum vDatum)
throws SQLException
vDatum - the Vertical Datum object
SQLException - when an SQLException occurs
protected int export(VerticalCRS vertical)
throws SQLException
vertical - the Vertical CRS object
SQLException - when an SQLException occurs
protected int export(Helmert helmert)
throws SQLException
helmert - the helmert transformation object to be exported
SQLException - when an SQLException occurs
protected int export(PrimeMeridian pm)
throws SQLException
pm - the Prime Meridian object
SQLException - when an SQLException occurs
protected int export(Ellipsoid ellipsoid)
throws SQLException
ellipsoid - the ellipsoid object
SQLException - when an SQLException occurs
protected int export(GeodeticDatum gdatum)
throws SQLException
gdatum - the Geodetic Datum object
SQLException - when an SQLException occurs
protected int export(GeocentricCRS geocentric)
throws SQLException
geocentric - the Geocentric CRS object
SQLException - when an SQLException occurs
protected int export(GeographicCRS geographic)
throws SQLException
geographic - the Geographic CRS object
SQLException - when an SQLException occurs
protected int export(Projection projection)
throws SQLException
projection - the Projection object
SQLException - when and SQLException occurs
protected int export(ProjectedCRS projected)
throws SQLException
projected - the projected CRS object
SQLException
protected int export(CompoundCRS compound)
throws SQLException,
CRSException
compound - the Compound CRS object
SQLException
CRSException
protected int export(CoordinateSystem crs)
throws SQLException,
CRSException
crs - the CRS object
SQLException
CRSException
public void export(List<CoordinateSystem> crsList)
throws SQLException,
CRSException
crsList - the CoordinateSystems as a List
SQLException
CRSException
public static void main(String[] args)
throws IOException,
UnknownCRSException
args -
IOException
UnknownCRSException
|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||