/// <summary>
 /// Creates a new instance of gdalImage
 /// </summary>
 public GdalTiledImage(string fileName)
     : base(fileName)
 {
     WorldFile = new WorldFile {
         Affine = new double[6]
     };
     GdalHelper.Configure();
     ReadHeader();
 }
Exemple #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);
                }
            }
        }
 /// <summary>
 /// Creates a new instance of gdalImage
 /// </summary>
 public GdalImageSource()
 {
     GdalHelper.Configure();
 }
 /// <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();
 }