コード例 #1
0
        public void GdalRasterTest()
        {
            var rp     = new GdalRasterProvider();
            var raster = rp.Open(@"Data\Grids\sample_geotiff.tif");
            var at     = new AffineTransform(raster.Bounds.AffineCoefficients);

            Assert.AreEqual(at.CellCenterToProj(0, 0), new Coordinate(-179.9499969, 89.9499969)); // correct location from sample_geotiff.tfw
        }