public void CopyToBilFileIncludeHDR() { string path = rasterDataPath + "SchematisatieInt.bil"; string hdrPath = rasterDataPath + "SchematisatieInt.hdr"; string targetPath = "SchematisatieInt.bil"; string targetHDRPath = "SchematisatieInt.hdr"; if (File.Exists(targetPath)) { File.Delete(targetPath); } if (File.Exists(targetHDRPath)) { File.Delete(targetHDRPath); } var functionStore = new GdalFunctionStore { Path = path }; Assert.IsTrue(File.Exists(hdrPath)); functionStore.CopyTo(targetPath); Assert.IsTrue(File.Exists(targetPath)); Assert.IsTrue(File.Exists(targetHDRPath)); if (File.Exists(targetPath)) { File.Delete(targetPath); } if (File.Exists(targetHDRPath)) { File.Delete(targetHDRPath); } }
public void CopyToBilFileIncludeHDR() { string path = rasterDataPath + "SchematisatieInt.bil"; string hdrPath = rasterDataPath + "SchematisatieInt.hdr"; string targetPath = "SchematisatieInt.bil"; string targetHDRPath = "SchematisatieInt.hdr"; if (File.Exists(targetPath)) File.Delete(targetPath); if (File.Exists(targetHDRPath)) File.Delete(targetHDRPath); var functionStore = new GdalFunctionStore { Path = path }; Assert.IsTrue(File.Exists(hdrPath)); functionStore.CopyTo(targetPath); Assert.IsTrue(File.Exists(targetPath)); Assert.IsTrue(File.Exists(targetHDRPath)); if (File.Exists(targetPath)) File.Delete(targetPath); if (File.Exists(targetHDRPath)) File.Delete(targetHDRPath); }