his part aims to present how to configure the connection to the two database of SOS server. This file has to be named "config.properties" and contains several tags defined below :
Name |
Role and usage |
|---|---|
templateValidTime |
A duration for the validity of observationTemplate (after this time the template wil be destroyed). |
sensorIdBase |
Prefix for sensor URNs. |
observationIdBase |
Prefix for observation URNs. |
observationTemplateIdBase |
Prefix for observation template URNs. |
offeringIdBase |
Prefix for offering URNs. |
maxObservationByRequest |
in order to avoid the user to request too much observation in one request, we put a limit to the number of returned observations in one request. |
SMLDBServerName |
The host name or IP of the SensorML Database (MDWeb) |
SMLDBName |
The name of the SensorML database. |
SMLDBUser |
The User name connecting the SensorML database. |
SMLDBServerPort |
The port number on which we connect to the SensorML database. |
SMLDBUserPassword |
The User password connecting the SensorML database. |
OMDBServerName |
The host name or IP of the O&M Database. |
OMDBName |
The name of the O&M database. |
OMDBUser |
The User name connecting the O&M database. |
OMDBServerPort |
The port number on which we connect to the O&M database. |
OMDBUserPassword |
The User password connecting the O&M database. |
Here is an example of the configuration file : config.properties
Linux
Create a .sicade directory in the home directory of the user who runs the tomcat. Create another directory called sos_configuration into it. Copy the file config.properties 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/sos_configuration/. Copy the config.properties file in it and fill the different fields with your personal connection parameters.