public LASLoader(IWebHostEnvironment env) { _dbConn = new DbUtilities(); _nullRepresentation = "-999.25"; try { string contentRootPath = env.ContentRootPath; string jsonFile = contentRootPath + @"\DataBase\ReferenceTables.json"; string json = System.IO.File.ReadAllText(jsonFile); _references = JsonConvert.DeserializeObject <List <ReferenceTable> >(json); jsonFile = contentRootPath + @"\DataBase\PPDMDataAccess.json"; json = System.IO.File.ReadAllText(jsonFile); _dataDef = JsonConvert.DeserializeObject <List <DataAccessDef> >(json); } catch (Exception ex) { Exception error = new Exception("Read refernce table file error: ", ex); throw error; } }
public IndexBuilder() { _dbConn = new DbUtilities(); }