Version 0.6-SNAPSHOT (current trunk)
With the new version 0.6.x comes a refactoring of PostGRID.
Linux
Create a .constellation directory in the home directory of the user who runs the tomcat.
Windows
For example, with a Windows installed on C:/ and a user named Cedr, create the directory C:/Document and Settings/Cedr/Application Data/Constellation.
Configuration file
Add a file named coverage-sql.xml in your constellation path :
Here we set the value "no namespace" to the attribute namespace, which means there will be no prefix namespace for the layers. It is possible to put a full url or just a word.
Version 0.5-SNAPSHOT (and all 0.5.x tags)
If you are using the trunk version of Constellation you can use several postgrid on one constellation.
No more config.xml needed.
Linux
Create a .constellation directory in the home directory of the user who runs the tomcat.
Windows
For example, with a Windows installed on C:/ and a user named Cedr, create the directory C:/Document and Settings/Cedr/Application Data/Constellation.
Add a file named postgrid.xml in your constellation path :
Old configuration, before version 0.5.x
This part aims to present how to configure the connection to the database in a file, well known by the Constellation web service. This file has to be named "config.xml" and contains several tags defined below :
Name |
Role and usage |
|---|---|
Server |
server name . |
Port |
server connexion port . |
Database |
database nameto connect to. |
User |
User who will connect to the database, like : |
Password |
Password for the user to connect. |
Driver |
Driver class to access to the database. |
ReadOnly (Optional) |
Defines whether the database is accessed in "read-only" mode, |
RootDirectory (Optional) |
Data should be found in this directory and in its children. If not defined, |
Permission (Optional) |
Permission type of access to the webservices. |
Here is an example of the configuration file : config.xml
Linux
Create a .sicade directory in the home directory of the user who runs the tomcat. Copy the file config.xml in it and fill the different fields with your personal connection parameters.
Windows
For example, with a Windows installed on C:/ and a user named Cedr, create the directory C:/Document and Settings/Cedr/Application Data/Sicade. Copy the config.xml file in it and fill the different fields with your personal connection parameters.