To Import SGI Data

The SGI (Sistema de Informações Geográficas) is a software developed by INPE for the processing of thematic and numeric data.

Before importing any project and its IL's from SGI, one must define in SPRING a Database and the Categories  corresponding to the SGI data type.

In the case of a thematic IL from SGI, it suffices that the category of the thematic model be created without classes so that the IL can be imported. When selecting the Thematic Category in the option "Import from SGI..." the classes of SGI, present in the ".tab" file, will be automatically created in SPRING. In case the category selected already contains classes, it will be necessary to make associations between those classes of SGI and the classes in SPRING in order to have the conversion done.
 
Procedures for importation


See the SGI files needed for each data type.

A - For the importation of thematic data in the SGI format, SPRING imports Lines, Line Labels, and Thematic Images.

    To import Lines and Labels the following SGI files are needed:

        	-  <proj name>.prj
        - <proj name>.dir
        - <proj name>_<il_name>.li1
        - <proj name>_<il_name>.li2
        - <proj name>_<il_name>.cen

To import a Thematic Image the following SGI files are needed:

        	-  <proj name>.prj
        - <proj name>.dir
        - <proj name>_<il_name>.di
        - <proj name>_<il_name>.i
        - <proj name>_<il_name>.tab
        - <proj name>_<il_name>.lu

To import Texts the following SGI files are needed:

        	-  <proj name>.prj
        - <proj name>.dir
        - <proj name>_<il_name>.tex


B - For numeric data in SGI format SPRING imports spot heights and contour lines (samples).

To import Spot Heights the following SGI files are needed:

        	-  <proj name>.prj
        - <proj name>.dir
        - <proj name>_<il_name>.pt
        - <proj name>_<il_name>.i
        - <proj name>_<il_name>.lut

To import Contour lines the following SGI files are needed:

        	-  <proj name>.prj
        - <proj name>.dir
        - <proj name>_<il_name>.li1
        - <proj name>_<il_name>.li2

To import Grids the following SGI files are needed:

        	-  <proj name>.prj
        - <proj name>.dir
        - <proj name>_<il_name>.gr


C - For image data in SGI format SPRING imports Gray Level Image and Coded  Image (Synthetic).

To import Gray Level Image the following SGI files are needed:

      	-  <proj name>.prj
      - <proj name>.dir
      - <proj name>_<il_name>.di
      - <proj name>_<il_name>.i

To import Coded Image the following SGI files are needed:

      	-  <proj name>.prj
      - <proj name>.dir
      - <proj name>_<il_name>.di
      - <proj name>_<il_name>.i
      - <proj name>_<il_name>.lut

See following the procedures to import SGI data.




Importing SGI Data:

  • select File - Import from SGI... on the main menu. The window "Import SGI Data" is presented;
  • click on the button SGI File... to navigate to the directory where the SGI files are kept, specially the file "<proj name>.dir";
  • click on the button Loadin the import window. Note that the Information Layers in the SGI project are listed;
  • select the desired Infolayer from the list;
  • type in the name of the Project to be created in SPRING (maximum 32 characters), in case no project has been loaded;
  • click on the button Category... to select in the window "Categories List" the model type equivalent to the one in SGI. The categories and classes should have been already created using the option File - Data Model... or ;
  • type in the name of the IL that will contain the data in SPRING. In case you use an existing IL you will have to select the option Mosaic so you won't delete the existing contents of that IL;
  • in case SGI's IL is a thematic map, and the category in SPRING is without classes, the SGI classes will be automatically created in SPRING. In case the SPRING category already contains classes, it will be necessary to associate the SGI classes with the classes in SPRING so that the conversion can be done;
  • click on the button Applyin order to perform the importation.


OBS: In case some text is associated to any IL in SGI, this will be automatically created in SPRING.
IMPORTANT: When importing a first IL from SGI it will be necessary to unload any loaded project in SPRING. After the importation of this first IL from SGI, a project will be automatically created and loaded in SPRING.
See more about the import/export formats in SPRING



See also:
Definition of Database
Definition of the Conceptual Model
How to IMPORT data of other formats ?
How to IMPORT GRIB images ?
How to EXPORT data ?