| | |
| | | |
| | | 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]; |
| | |
| | | |
| | | 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); |
| | |
| | | |
| | | 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); |