Esempio n. 1
0
 /// <summary>
 /// Creates a new instance of gdalImage
 /// </summary>
 public GdalTiledImage(string fileName)
     : base(fileName)
 {
     WorldFile = new WorldFile {
         Affine = new double[6]
     };
     GdalHelper.Configure();
     ReadHeader();
 }
Esempio n. 2
0
        /// <summary>
        /// Creates a new instance of GdalRasterProvider
        /// </summary>
        public GdalRasterProvider()
        {
            GdalHelper.Configure();

            // Add ourself in for these extensions, unless another provider is registered for them.
            string[] extensions = { ".tif", ".tiff", ".adf" };
            foreach (string extension in extensions)
            {
                if (!DataManager.DefaultDataManager.PreferredProviders.ContainsKey(extension))
                {
                    DataManager.DefaultDataManager.PreferredProviders.Add(extension, this);
                }
            }
        }
Esempio n. 3
0
 /// <summary>
 /// Creates a new instance of gdalImage
 /// </summary>
 public GdalImageSource()
 {
     GdalHelper.Configure();
 }
Esempio n. 4
0
 /// <summary>
 /// Creates a new instance of gdalImage, and gets much of the header information without actually
 /// reading any values from the file.
 /// </summary>
 public GdalImageSource(string fileName)
 {
     Filename = fileName;
     GdalHelper.Configure();
     ReadHeader();
 }