public void Open([NotNull] string path) { if (isOpening) { return; } isOpening = true; if (!File.Exists(path)) { throw new FileNotFoundException(String.Format("The following file does not exist: {0}", path)); } this.path = path; log.DebugFormat("Opening grid using GDAL: {0}", path); state = GdalState.Initializing; OpenGdalDataset(path); //if (Functions.Count == 0) if (functions.Count == 0) { CreateSchemaFromDataset(); } state = GdalState.Defined; IsOpen = true; isOpening = false; }
public GdalFunctionStore() { state = GdalState.Closed; TypeConverters = new List <ITypeConverter>(); Functions = new EventedList <IFunction>(); //register gdal drivers Gdal.AllRegister(); }
public GdalFunctionStore() { state = GdalState.Closed; TypeConverters = new List <ITypeConverter>(); Functions = new EventedList <IFunction>(); }