Transforming the database
between SPRING and TerraLib
This tool was created for
mutual conversion of SPRING and Terralib bases so that the geographic data can be
used in both platforms. Doing so, one can use SPRING data on Terralib and
vice-versa.
SPRING -> TerraLib
Selecting the SPRING database:
-
click on Directory...
to select the SPRING database directory;
-
select one
of the database presented in the list;
-
if necessary, fill out the host, username and password information
for certain kinds of database;
-
click on
Database
to activate the selected SPRING database;
Selecting
the Terralib database:
-
select the kind of base to be
created;
-
if necessary, fill out the server, door, username and password
information for certain kinds of database;
-
if necessary,
click on Directory... to select
the SPRING database directory;
-
if necessary, fill out the Name of the Database to be created;
Defining Data:
-
click on the Definitions
tab to start the definition of which data will be exported;
-
the
Plans tab
presents the database for Projects, Categories and Information Layers. Check
or Uncheck the projects
categories or Information Layers to be converted. By default all items are
checked at initialization;
-
the
Tables tab presents
the database for Objects and Non-spatial categories. Check or uncheck the
Objects and the Non-spatial Categories to be converted. By default all
items are checked at initialization.

Converting Data:
-
click on Execute to
start the conversion;
-
click on Close to exit the application;
-
during the conversion it may be interrupted, ending with the
execution;
TerraLib -> SPRING
Selecting
the TerraLib Database:
-
select the kind of database to be
connected;
-
if necessary, fill out the server, door, username and password
information for certain kinds of database;
-
according to the type of base, do the following:
-
if
it is an Access database:
click on Database to select the .mdb file;
-
if
it is a SQLServer database:
write the name of the
database to be connected;
-
if
it is an OracleAdo database:
write the name of the
database to be connected;
-
if
it is a MySQL database:
click on Database to list the available database;
select a database in the list for connection;
-
if
it is a PostgreSQL database:
click on Database to list the available database;
select a database in the list for connection;
-
if
it is a PostGIS database:
click on Database to list the available database;
-
click on Load TerraLib Database to connect to the selected database;
Selecting
the SPRING database:
-
click on Directory...
to select the SPRING database directory;
-
write the
name of the database to be created;
-
select the kind of SPRING database
to be created;
-
if necessary, fill out the host, username and password information
for certain kinds of database;

Defining Data:
-
click on the Definitions
tab to define which data will be exported;
-
in
the Categories tab it
will be defined the names of the Categories to which each Information
Layer will be exported;
double click on the second column, “Category Name”, to write
the name of the category;
-
in
the Plans tab it will be
defined which Terralib table the data will be recovered from, and which
SPRING model it will be exported to;
Depending on the model, it will be required:
-
Cadastral: define the name of the Objects Table, that will be
concatenated to the Theme Name;
-
Thematic: define one column of the table, from where the thematic
classes will be generated;
-
Numerical: define one column of the table that contains the
altimetrical values;
-
Network: define the name of the Objects Table, that will be
concatenated to the Theme Name;
-
The other models do not require this definition;
-
the
Views, Themes and External Tables
tab presents the database for Terralib Views, Themes and External Tables. Check
or uncheck the Views, Themes and External Tables to be converted. By
default all items are checked at initialization;

Converting Data:
-
click on Execute to
start the conversion;
-
click on Close to exit the application;
-
during the conversion it may be interrupted, ending with the
execution;