public Service_DV_1_1() { //log4net.Util.LogLog.InternalDebugging = true; //log.Info("Starting " + "NWISDV"); // ODws = new WofService(this.Context);//INFO we can extend this for other service types //ODws = new GetDataInformationDailyDB(); ODws = new GetDataInformationDB(); ODws.VariableVocabulary = "NWISDV"; ODws.SiteVocabulary = "NWISDV"; //QueryLoggger = new Logging(ODws.SiteVocabulary); // configure ConnectionStringSettings oddb = ConfigurationManager.ConnectionStrings["ODDB"]; ODws.DataInfoConnection = oddb.ConnectionString; ODws.VariablesTableName = "odm_dv_variables"; ODws.SitesTableName = "odm_dv_sites"; ODws.SeriesTableName = "odm_dv_SeriesCatalog"; ODws.UseVariableCodeMatch = true; // dvSvc = new GetValuesDailyUSGS(ConfigurationManager.AppSettings["USGSDVUrl"]); dvSvc = new GetValuesDVRESTUSGS_xslt(ConfigurationManager.AppSettings["USGSDVUrl"] , ConfigurationManager.AppSettings["USGSDVxlst"]); // #endregion }
public Service_ISD_1_0() { //log4net.Util.LogLog.InternalDebugging = true; //log.Info("Starting " + "NWISDV"); // ODws = new WofService(this.Context);//INFO we can extend this for other service types //ODws = new GetDataInformationDailyDB(); ODws = new GetDataInformationDB(); ODws.VariableVocabulary = "NCDCISD"; ODws.SiteVocabulary = "NCDCISD"; QueryLoggger = new Logging(ODws.SiteVocabulary); // configure ConnectionStringSettings oddb = ConfigurationManager.ConnectionStrings["ODDB"]; ODws.DataInfoConnection = oddb.ConnectionString; ODws.VariablesTableName = "isd_variables"; ODws.SitesTableName = "isd_sites"; ODws.SeriesTableName = "isd_SeriesCatalog"; // configured in using statement above dvSvc = new DataTimeSeriesWofSrv(); ((DataTimeSeriesWofSrv)dvSvc).Token = ConfigurationManager.AppSettings["NCDC_Token"]; // #endregion }
public Service_Data_1_0() { ODws = new GetDataInformationDB(); ODws.VariableVocabulary = "NWISIID"; ODws.SiteVocabulary = "NWISIID"; QueryLoggger = new Logging(ODws.SiteVocabulary); // configure ConnectionStringSettings oddb = ConfigurationManager.ConnectionStrings["ODDB"]; ODws.DataInfoConnection = oddb.ConnectionString; ODws.VariablesTableName = "odm_qw_variables"; ODws.SitesTableName = "odm_qw_sites"; ODws.SeriesTableName = "odm_qw_SeriesCatalog"; dvSvc = new GetValuesDataNWIS(ODws, ConfigurationManager.AppSettings["USGSDataUrl"]); }
public Service_DV_1_0_scrape() { //log4net.Util.LogLog.InternalDebugging = true; log.Info("Starting " + "NWISDV"); // ODws = new WofService(this.Context);//INFO we can extend this for other service types //ODws = new GetDataInformationDailyDB(); ODws = new GetDataInformationDB(); // configure ConnectionStringSettings oddb = ConfigurationManager.ConnectionStrings["ODDB"]; ODws.DataInfoConnection = oddb.ConnectionString; ODws.VariablesTableName = "odm_dv_variables"; ODws.SitesTableName = "odm_dv_sites"; ODws.SeriesTableName = "odm_dv_SeriesCatalog"; dvSvc = new GetValuesDailyUSGS(); try { useODForValues = Boolean.Parse(ConfigurationManager.AppSettings["UseODForValues"]); } catch (Exception e) { String error = "Missing or invalid value for UseODForValues. Must be true or false"; log.Fatal(error); throw new SoapException("Invalid Server Configuration. " + error, new XmlQualifiedName(SoapExceptionGenerator.ServerError)); } try { requireAuthToken = Boolean.Parse(ConfigurationManager.AppSettings["requireAuthToken"]); } catch (Exception e) { String error = "Missing or invalid value for requireAuthToken. Must be true or false"; log.Fatal(error); throw new SoapException(error, new XmlQualifiedName(SoapExceptionGenerator.ServerError)); } }
public Service_Rest_1_0() { ODws = new GetDataInformationDB(); ODws.VariableVocabulary = "NCDCISH"; ODws.SiteVocabulary = "NCDCISH"; QueryLoggger = new Logging(ODws.SiteVocabulary); // configure ConnectionStringSettings oddb = ConfigurationManager.ConnectionStrings["ODDB"]; Dictionary <String, object> parameters = new Dictionary <string, object>(); ODws.Parameters = parameters; // configured in using statement above dvSvc = new DataTimeSeriesWofSrv(); // #endregion }
public Service_ISH_1_0() { ODws = new GetDataInformationDB(); ODws.VariableVocabulary = "NCDCISH"; ODws.SiteVocabulary = "NCDCISH"; QueryLoggger = new Logging(ODws.SiteVocabulary); // configure ConnectionStringSettings oddb = ConfigurationManager.ConnectionStrings["ODDB"]; ODws.DataInfoConnection = oddb.ConnectionString; ODws.VariablesTableName = "ish_variables"; ODws.SitesTableName = "ish_sites"; ODws.SeriesTableName = "ish_SeriesCatalog"; // configured in using statement above dvSvc = new DataTimeSeriesWofSrv(); ((DataTimeSeriesWofSrv)dvSvc).Token = ConfigurationManager.AppSettings["NCDC_Token"]; // #endregion }
//private static readonly ILog log = LogManager.GetLogger(typeof(Service_DV_1_0)); //private static readonly ILog queryLog = LogManager.GetLogger("QueryLog"); //private static readonly Logging queryLog2 = new Logging(); //// protected WofService ODws; //protected NwisWOFService.GetValuesDailyUSGS dvSvc; ////protected NwisWOFService.GetDataInformationDailyDB ODws; //protected NwisWOFService.GetDataInformationDB ODws; //private Boolean useODForValues; //private Boolean requireAuthToken; public Service_DailyValues_1_0() { //log4net.Util.LogLog.InternalDebugging = true; //log.Info("Starting " + "NWISDV"); // ODws = new WofService(this.Context);//INFO we can extend this for other service types Dictionary <string, object> parameters = new Dictionary <string, object>(); parameters.Add("SeriesType", TimeSeriesTypeEnum.Interval); // set in db view // parameters.Add("MaxRealTimePeriod", ConfigurationManager.AppSettings["USGSUVdays"]); //ODws = new GetDataInformationDailyDB(); ODws = new GetDataInformationDB(); ODws.Parameters = parameters; ODws.VariableVocabulary = "NWISDV"; ODws.SiteVocabulary = "NWISDV"; QueryLoggger = new Logging(ODws.SiteVocabulary); // configure ConnectionStringSettings oddb = ConfigurationManager.ConnectionStrings["ODDB"]; ODws.DataInfoConnection = oddb.ConnectionString; ODws.VariablesTableName = "odm_dv_variables"; ODws.SitesTableName = "odm_dv_sites"; ODws.SeriesTableName = "odm_dv_Series"; ODws.UseVariableCodeMatch = true; //use full variable name ODws.UseSitesCodeMatch = true; // dvSvc = new GetValuesUnitNWIS(ODws); // dvSvc = new GetValuesUnitWebserviceUSGS(); // dvSvc = new GetValuesUnitRestUSGS(ConfigurationManager.AppSettings["USGSUVUrl"]); dvSvc = new GetValuesDailyRESTUSGS_11to10(ConfigurationManager.AppSettings["USGSDVUrl"] , ConfigurationManager.AppSettings["USGSDVxlst"]); }
//// protected WofService ODws; //protected NwisWOFService.GetValuesDailyUSGS dvSvc; ////protected NwisWOFService.GetDataInformationDailyDB ODws; //protected NwisWOFService.GetDataInformationDB ODws; //private Boolean useODForValues; //private Boolean requireAuthToken; public Service_EPA_1_0() { //log4net.Util.LogLog.InternalDebugging = true; log.Info("Starting " + "EPA"); // ODws = new WofService(this.Context);//INFO we can extend this for other service types //ODws = new GetDataInformationDailyDB(); ODws = new GetDataInformationDB(); // WaterOneFlow.GenericDB DBws = (WaterOneFlow.GenericDB) ODws; ODws.VariableVocabulary = "EPA"; ODws.SiteVocabulary = "EPA"; // queryLog = new Logging(ODws.SiteVocabulary); // configure ConnectionStringSettings oddb = ConfigurationManager.ConnectionStrings["ODDB"]; ODws.DataInfoConnection = oddb.ConnectionString; //ODws.VariablesTableName = "odm_variables"; //ODws.SitesTableName = "sites"; //ODws.SeriesTableName = "SeriesCatalog"; ODws.VariablesTableName = "odm_variables"; // ODws.SitesTableName = "ws_odm_sites"; ODws.SitesTableName = "odm_sites"; // ODws.SeriesTableName = "epa_SERIESCATALOG_no_medium"; //ODws.SeriesTableName = "odm_SERIESCATALOG"; ODws.SeriesTableName = "odm_SERIESCATALOG"; //dvSvc = new GetValuesProxy(); dvSvc = new EPAWOFService.GetValuesEPA(ODws); // for when the new WaterOneFlow is ready //dvSvc = new WaterOneFlow.Service.values.v1_0.GetValuesXslt( // ConfigurationManager.AppSettings["ServiceXmlUrl"] // , ConfigurationManager.AppSettings["xsltName"]); }
public Service_Groundwater_1_0() { //log4net.Util.LogLog.InternalDebugging = true; //log.Info("Starting " + "NWISDV"); // ODws = new WofService(this.Context);//INFO we can extend this for other service types //ODws = new GetDataInformationDailyDB(); ODws = new GetDataInformationDB(); ODws.VariableVocabulary = "NWISGW"; ODws.SiteVocabulary = "NWISGW"; QueryLoggger = new Logging(ODws.SiteVocabulary); // configure ConnectionStringSettings oddb = ConfigurationManager.ConnectionStrings["ODDB"]; ODws.DataInfoConnection = oddb.ConnectionString; ODws.VariablesTableName = "odm_gw_variables"; ODws.SitesTableName = "gw_flatfile"; ODws.SeriesTableName = "gw_flatfile"; dvSvc = new GetValuesGWNWIS(ODws, ConfigurationManager.AppSettings["USGSGWUrl"]); }