private static SiteInfoType row2SiteInfoType(UsgsDbDailyValues.sitesRow row) { SiteInfoType sit = null; if (row == null || row.IsSiteCodeNull() || row.IsSiteNameNull()) { return(null); } //string siteCode = row.SiteCode; //string siteName = row.SiteName; //float? lat = null, lon=null; //string srs; //if (! row.IsLatitudeNull() ) lat = row.Latitude; //if(!row.IsLatitudeNull()) lon = row.Longitude; //sit = CoreBuilder.CreateASiteInfoTypeWithLatLongPoint( // "NWIS", siteCode, siteName, lat, lon // ); sit = CoreBuilder.createSiteInfoRecord(row); //TODO: USGS items as notes // add agency note if (!row.Isusgs_agencyNull()) { note n = new note(); n.title = "agency"; n.Value = row.usgs_agency; sit.note = CoreBuilder.addNote(sit.note, n); } // add siteType note if (!row.Isusgs_station_typeNull()) { note n = new note(); n.title = "SiteType"; n.Value = row.usgs_station_type; sit.note = CoreBuilder.addNote(sit.note, n); } return(sit); }