org.deegree.tools.crs
Class EPSGDBSynchronizer
java.lang.Object
org.deegree.tools.crs.EPSGDBSynchronizer
@Tool(value="Connects to the EPSG database at //hurricane/epsg, and for all projections (other objects to be added!) that have no CRS codetype in the CRS database, the codes are fetched from the EPSG database.")
public class EPSGDBSynchronizer
- extends Object
The EPSGDBSynchronizer
class sets the Codes for CRS Identifiables that do not have such codes (actually,
since these code are required for CRS Identifiables to exist, they are temporary).
The connection parameters used are :
- JDBC Driver: org.postgresql.Driver
- Connection protocol: jdbc:postgresql://hurricane/epsg?user=postgres
Currently the codes for the projections are set. The Axis element also need codes, but the axis attributes values are
quite different in the EPSG database and more work on how to automate this process has to be done.
In order to succeed in changing the codetypes in the CRS database, the user must set the variable CRS_DB_URL with
the protocol jdbc:derby:... prior to running this tool. At the moment of writing the database is at
d3_core/bin/META-INF/deegreeCRS/
- Version:
- $Revision: $, $Date: $
- Author:
- Andrei Ionita, last edited by: $Author: ionita $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EPSGDBSynchronizer
public EPSGDBSynchronizer()
connectToEPSGdatabase
protected void connectToEPSGdatabase()
getCodesForProjections
protected void getCodesForProjections(DBCRSStore dbSTore)
closeEPSGConnection
protected void closeEPSGConnection()
throws SQLException
- Throws:
SQLException
main
public static void main(String[] args)
Copyright © 2011. All Rights Reserved.