管道基础大数据平台系统开发-【CS】-ExportMap
13693261870
2023-08-23 4a77dcc80205b1c57ff3c2e1163e5d0793cd9e5f
修改读取栅格数据的接口-1
已修改1个文件
7 ■■■■■ 文件已修改
DataLoader/CS/GdalHelper.cs 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
DataLoader/CS/GdalHelper.cs
@@ -129,7 +129,8 @@
                vd.Meta.bands = ds.RasterCount.ToString(); // 波段数
                vd.Meta.band_type = Enum.GetName(typeof(DataType), ds.GetRasterBand(1).DataType); // 数据类型
                vd.Meta.ct = ds.GetRasterBand(1).GetRasterColorTable().ToString(); // 数据颜色表
                ColorTable ct = ds.GetRasterBand(1).GetRasterColorTable();
                vd.Meta.ct = null == ct ? null : ct.ToString(); // 数据颜色表
                vd.Meta.h_datum = null; // 高程基准
                double[] transform = new double[6];
@@ -168,7 +169,7 @@
            string epsg = ds.GetSpatialRef().GetAuthorityCode(null);
            double xMin = transform[0];
            double yMin = transform[3];
            double yMin = transform[3] - ds.RasterYSize * transform[1];
            Geometry point = new Geometry(wkbGeometryType.wkbPoint);
            point.AddPoint(xMin, yMin, 0);
@@ -186,7 +187,7 @@
            string epsg = ds.GetSpatialRef().GetAuthorityCode(null);
            double xMax = transform[0] + (ds.RasterXSize * transform[1]);
            double yMax = transform[3] + (ds.RasterYSize * transform[1]);
            double yMax = transform[3];
            Geometry point = new Geometry(wkbGeometryType.wkbPoint);
            point.AddPoint(xMax, yMax, 0);