Laserfiche WebLink
Data Store Overview <br />Appendix - Data Store Overview - 2 <br />Data Store Configuration Files <br /> <br />A data store is configured by enabling the data store type in the main TSTool.cfg configuration file, and <br />creating a data store configuration file for each connection. Configurations are processed at software <br />startup to enable data stores . An example of the TSTool configuration file for the UsgsNwisDaily d ata <br />s tore is shown below. Multiple data stores can be defined using the [D ataStore:DataStoreNam e] <br />synt ax. <br /> <br /># Configuration file for TSTool <br /> <br />[TSTool] <br /> <br />UsgsNwisDaily Enabled = true <br /> <br /># Startup data stores (note that data store name in config file takes precedence) <br /> <br />[DataStore:UsgsNwisDaily ] <br /> <br />ConfigFile = "UsgsNwisDaily .cfg" <br /> <br />TSTool Configuration File with USG S NWIS Daily Data Store Properties <br /> <br />The following illustrates a data store configuration file format , which in this example is located in the <br />same folder as the TSTool configuration file and configures the “UsgsNwisDaily ” data store. Several <br />standard prop erties are required and additional properties may be used for specific data stores . <br /> <br /># Configuration information for "UsgsNwisDaily" data store. # Properties are: # # The user will see the following when interacting with the data store: # # Type - UsgsNwis DailyDataStore (required with no changes) # Name - data store identifier used in applications, for example as the # input type information for time series identifiers (usually a short string) # Description - data store description for reports and user interfaces (short phrase) # Enabled - whether the data store is enabled (default=True) # # The following are specific to the USGS NWIS daily data store: # # ServiceRootURI - web service root URI, including the server name and root path # ServiceAPIDocument ationURI - web service API documentation URI, describing # the syntax, input, and output # ServiceOnlineURI - web service interactive page to query data, typically # "drill down" or form based Type = "UsgsNwisDailyDataStore" Name = "UsgsNwisDaily" Description = "USGS NWIS Daily Value Web Service" Enabled = True ServiceRootURI = "http://waterservices.usgs.gov/nwis/dv" ServiceAPIDocumentationURI = "http://waterservices.usgs.gov/rest/DV -Service.html" ServiceOnlineURI = "http://waterservices.usgs.gov/r est/DV -Test -Tool.html" <br /> <br />Separate appendices are provided to describe each data store type that is supported by TSTool. <br /> <br />U sing Multiple Data Stores to Construct a Complete Time Series <br /> <br />O rganizations often provide acce ss to data in different formats, quality, and availability. For example, <br />streamflow m ay be av ailable as “real -time ” on one website and “historical ” on ano ther , typically for <br />reasons related to data management , qual ity control, and other reasons. In many cases there is a concern <br />10