Esempio n. 1
0
 /// <summary>
 /// Pass in a rasterized vector mask
 /// </summary>
 /// <param name="otType"></param>
 /// <param name="rInputA"></param>
 /// <param name="rInputB"></param>
 /// <param name="rPolymask"></param>
 /// <param name="rOutputRaster"></param>
 public RasterMath(RasterOperators.MathOpType otType, Raster rInputA,
                   Raster rInputB, VectorRaster rPolymask, Raster rOutputRaster) :
     base(new List <Raster> {
     rInputA, rInputB
 }, rPolymask, new List <Raster> {
     rOutputRaster
 })
 {
     _type   = otType;
     _scalar = false;
 }
Esempio n. 2
0
 /// <summary>
 /// Pass-through constructor for Raster Math with a scalar operand
 /// </summary>
 /// <param name="otType"></param>
 /// <param name="rInput"></param>
 /// <param name="dOperand"></param>
 /// <param name="sOutputRaster"></param>
 public RasterMath(RasterOperators.MathOpType otType, Raster rInput, decimal dOperand,
                   Raster rOutputRaster) : base(new List <Raster> {
     rInput
 }, new List <Raster> {
     rOutputRaster
 })
 {
     _type        = otType;
     _scalar      = true;
     _origOperand = (double)dOperand;
     _operand     = (T)Convert.ChangeType(dOperand, typeof(T));
 }