示例#1
0
        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);
            }
        }
示例#2
0
        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);
        }