You are on page 1of 4

Adding a country in GeoX

1. Create a new security group

Open GeoX, select System, Security, Add, Add user group, and enter the name of the
group in User group input field. This group name would most likely be the same as the
3-letter country code of the new country.

Then choose Add and select individual users who will be granted access to this group.

2. Create a new basin

Open GeoX, select File, Folder, New basin

Enter the 3-letter country code in Add basin field.

Select Security, click on Add and add the newly created security group from the list. Tick
on all the boxes in the Allow column.

Your own username comes up automatically in the list of names, but you can remove it
before clicking OK to save the settings.

3. Add new country code

Open GeoX, click on Cultural Systems, and then double-click on Nations.

Check that the country does not already exist on the list.

Select Add and fill in the details for a 2-letter country code, the country name and its
currency.

The details for Kenya for example should show as in the screenshot here.
Add the country to the lookup table queries

When you need to add new countries into the lookup tables you do it in two ways

Add the countries in the SQL statements in

/2_geox_data_sources.sql, e.g. 'Kenya'

o Update the where clause in all the SQL statements

o where ( country in ('United Kingdom', 'Norway', 'Italy', 'Egypt', 'Israel',


'Kazakhstan' ,'Argentina', 'Bolivia', 'Brazil', 'Ireland', 'Trinidad and Tobago',
'Algeria', 'Australia', 'China', 'India', 'Iraq', 'Madagascar', 'Mauritania',
'Morocco', 'Nigeria',
'Oman', 'Saudi Arabia', 'Spain', 'Thailand', 'Tunisia', 'Australia', 'Cambodia',
'Canada', 'Peru',
'Tanzania', 'Kenya')
Add the names in GEOX4.BLOCK table

o Find out the maximum block_id from the block table

select max(block_id) from geox4.block;

24072

o Insert the new country into the block table by using the id "max(block_id)
+ 1", 24073 in this case

insert into geox4.block values(24073, 'KE', 'T', null);

commit;

You might also like