Beispiel #1
0
 public FakeRaster(decimal fTop, decimal fLeft, decimal dCellHeight, decimal dCellWidth, double fNoData,
                   Raster.RasterDriver psDriver, GdalDataType eDataType, string psProjection, string psUnit,
                   U[,] grid) : base(fTop, fLeft, dCellHeight, dCellWidth, grid.GetLength(1), grid.GetLength(0),
                                     fNoData, psDriver, eDataType, psProjection, psUnit)
 {
     _inputgrid  = grid;
     _outputGrid = new U[grid.GetLength(0), grid.GetLength(1)];
     _outputGrid.Fill <U>(NodataValue <U>());
 }
Beispiel #2
0
 public FakeRaster(decimal fTop, decimal fLeft, decimal dCellHeight, decimal dCellWidth, int rows, int cols,
                   GdalDataType eDataType) : base(fTop, fLeft, dCellHeight, dCellWidth, rows, cols, float.MinValue,
                                                  RasterDriver.GTiff, eDataType, "GEOGCS[\"NAD83\",DATUM[\"North_American_Datum_1983\",SPHEROID[\"GRS 1980\",6378137,298.257222101,AUTHORITY[\"EPSG\",\"7019\"]],AUTHORITY[\"EPSG\",\"6269\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIU[\"degree\",0.01745329251994328,AUTHORITY[\"EPSG\",\"9122\"]],AUTHORITY[\"EPSG\",\"4269\"]]", "m")
 {
     _inputgrid  = new U[cols, rows];
     _outputGrid = new U[cols, rows];
     _inputgrid.Fill <U>(NodataValue <U>());
     _outputGrid.Fill <U>(NodataValue <U>());
 }