Step 8: DataStore

<- Step 7: Uploading data                      Step 9: Feature Types ->

 

 

We now have an operational database which contains data for different layers. What we have to do now is to make sure that geGIS can actually consult these data. This will take several steps. First, there is the DataStore.
A DataStore is a source of data. A provincial layer was used for the hello geGIS application from step 4. These provinces were taken from a shapefile. Or more specifically from a shapefile DataStore. In this step we will configure the postgres database as DataStore.
The DataStore catalogue can be readjusted through the configuration cool which was referred to in the previous step (http://localhost:8080/gegis/config.jsp).
Select the “Datastores” option in the menu. You now have 3 options: testing, adjusting and resetting the DataStore catalogue. If you click on “Test DataStores”, you will get the following result:

Two DataStores are displayed now. The "ShpProvincieDS" DataStore refers to the provinces shapefile whereas the "PgWevDS" DataStore refers to the postgres database. Indeed, the DataStore is already configured, but is currently just deactivated.
We will now just activate it. To this end click on the “Change DataStores” button in the configuration tool.

Two DataStores are defined on the figure. If you replace "" by "" (put enabled on true), you can also use the postgres database in all geGIS applications. Now click on “store” to store the changes.
In order to be sure that everything passed off correctly, it is advisable to click on "Test DataStores" again. This should give the following result.

 

If you do not get the desired result, you can always click on the "Reset DataStores" button. This will reset the DataStore catalogue to its original status at the beginning of this step.

 

 

<- Step 7: Uploading data             Step 9: Feature Types ->