Professional Documents
Culture Documents
Orion OConverter
2
CHAPTER 2: How to create a configuration
file?
The configuration file has a simple easy to ready text file. This file can be prepared by a non-
technical user.
3
Figure 1: Configuration File Content
The configuration file may contain a single line comment starting with the ‘#’ sign.
Example: #I am a comment.
This is WRONG!
The configuration file contains the information for a specific source within the [start] and [end]
tags.
3. :separator tag
This tag will contain the separator which is used to separate fields within the data sources fields
Example: TX.txt file from the geonames.org source has a tab “ ”as a separator
However, the TX.txt file from GNIS source has a pipe “|” separator
4. :names tag
Example: geonames.org
GNIS US
4
GNIS ROW and so on.
5. :fields tag
This file contains administrative information i.e. it contains all the field names and their data
type. This information may be used to identify the correctness of the data source.
6. :mandatoryfields tag
This tag contains a mapping between the mandatory fields in the source file and the mandatory
fields in the database in the location_info table.
7. :mandatoryfeatures tag
This file contains a mapping between the mandatory fields in the feature class source and the
database table feature_class.
Mandatory Field from database Mapped to following field from geonames.org
class 0: Field 0 : Feature code
description 1: Field 1: Feature class description
reserved1 2: Field 2: Feature class detailed description
reserved2 NULL
data_source_id NULL
Figure 4: Mandatory field mapping for fields in features.txt from geonames.org to feature_class table
8. :featureseparator tag
This tag shows the separator within the feature class file
For example: the Feature class file from geonames.org featureCodes.txt has the tab “ ”
separator.
5
Chapter3: File Download File and Unzip
utility:
When the user clicks the “Run Download Manager” button on the Main Window, it will invoke
the Download Manager utility.
6
The Download Manager allows you to download a file from the source and
Save it to a Destination path. Opens File
Select
Dialog box
7
It also allows you to Pause, Resume and Cancel a Download.
Unzip Utility:
We can invoke the Unzip utility once the file has been downloaded. This allows you to
automatically unzip the file to a destination folder.
Clicking on the BROWSE button opens a File Choose Dialog box which allows you to select a
destination location on your computer.
8
The user can select the location to which he wants to save the unzipped file The Unzip Utility shows the
contents of the Zip folder. The user may check mark a fiel he wanted to be unzipped
Choose
location/destination
to save unzipped file
Select File to be
Unzipped
Accept OR
Cancel Unzip
9
Chapter 4: OConverter File Import:
This is the key module of the Orion GIS project and the OConverter Application.
The File Import allows the user to select the file downloaded from the various sources and
import them into the database; he can do this by clicking the browse button. He also has to
select the name of the source and hit the “Accept” button to start the download.
The “File Import” shows a progress bar for the duration when the file is being imported
When the Import is completed successfully it alerts the user regarding the same.
10
Chapter 5: OConverter Feature Class Import:
The Feature Class Import allows the user to select the feature class file and import it into the
database; he can do this by clicking the browse button. He also has to select the name of the
source and hit the “Accept” button to start the import. He additionally has to select the
“Checkbox” to identify that he is importing feature classes.
11