public DEMFileDefinition(string name, DEMFileType format, string extension, DEMFileRegistrationMode registration) { this.Name = name; this.Type = format; this.FileExtension = extension; this.Registration = registration; }
public DEMFileDefinition(DEMFileType format, DEMFileRegistrationMode registration) { this.Name = null; this.Type = format; this.FileExtension = null; this.Registration = registration; }
private void DebugCheckRegistrationType(DEMFileRegistrationMode registration, string xllcornerLine, string yllcornerLine) { string xRegFromFile = xllcornerLine.Split(SEPARATOR, StringSplitOptions.RemoveEmptyEntries)[0]; string yRegFromFile = yllcornerLine.Split(SEPARATOR, StringSplitOptions.RemoveEmptyEntries)[0]; DEMFileRegistrationMode xModeFromFile = xRegFromFile.ToLower().EndsWith("corner") ? DEMFileRegistrationMode.Grid : DEMFileRegistrationMode.Cell; DEMFileRegistrationMode yModeFromFile = yRegFromFile.ToLower().EndsWith("corner") ? DEMFileRegistrationMode.Grid : DEMFileRegistrationMode.Cell; Debug.Assert(registration == xModeFromFile && registration == yModeFromFile, "Registration mode mismatch between file and dataset."); }