Chapter 3. Configuring DataStores and FeatureTypes

Table of Contents

1. Namespaces
2. Styles
3. DataStores
3.1. Shapefile DataStore
3.2. PostGIS DataStore
3.3. Oracle Spatial DataStore
3.4. WMS DataStore
3.5. WFS DataStore
4. FeatureTypes
5. More information

Data stores are defined in the catalog.xml file. This file can be found in the /WEB-INF directory of your MAJAS server. The listing below is an example of a simple catalog.xml with one namespace and one data store.

<?config.xml version="1.0" encoding="UTF-8"?>
<catalog>

<datastores>

 <datastore namespace = "postgis" enabled = "true" id = "PgTestDS" >
   <connectionParams>
     <parameter value = "postgis" name = "namespace"  />
     <parameter value = "ggis" name = "user"  />
     <parameter value = "GGIS" name = "database"  />
     <parameter value = "ggis" name = "passwd"  />
     <parameter value = "localhost" name = "host"  />
     <parameter value = "5432" name = "port"  />
     <parameter value = "postgis" name = "dbtype"  />
   </connectionParams>
 </datastore>

</datastores>



<namespaces>
   <namespace uri = "http://www.dfc.be/postgis" prefix = "postgis" />
</namespaces>


<styles>
   <style filename = "line_blue.sld" id = "line_blue" />
</styles>

</catalog>