Step 9: Feature Types
<- Step 8: DataStore Step 10: geGIS Demo ->
In the previous step the postgres database was configured as a source of data (DataStore). Now we will do the same with the individual tables from that database. We can now define a Feature Type for each of the uploaded shapefiles for which a table has been made in the database. A Feature Type thus represents the data for an individual layer.
In order to define the Feature Types, go to the directory where you can find this configuration. This is the geGIS directory (standard under “C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\") under "gegis\data\featureTypes\". For now this contains 1 subdirectory with the definition of the province feature type from the hello application. It also contains a zip file (demo – featureTypes.zip). Simply unzip this zip file in the "gegis/data/featureTypes" directory and return to the configuration page (here).
To test whether the Feature Types have actually been properly initialised, click on "Feature Types" in the menu. Now click on the "Test FeatureTypes" button. Next to the "PgWevDS" DataStore a whole list of feature types should now be displayed, as shown on the figure below.
You can also view the attributes for each of these feature types by simply clicking on them. This may be useful later on to configure your own application.