public double[] OnProcessing(gviTerrainAnalyseOperation op, double[] ptArray)
 {
     if (onProcessing != null)
     {
         return(onProcessing(op, ptArray));
     }
     else
     {
         return(null);
     }
 }
Example #2
0
        double[] ta_Processing(gviTerrainAnalyseOperation Operation, double[] ptArray)
        {
            List <double> ret = new List <double>();

            if (ptArray != null)
            {
                for (int i = 0; i < ptArray.Length / 2; i++)
                {
                    double x = ptArray[2 * i];
                    double y = ptArray[2 * i + 1];
                    double z = this.axRenderControl1.Terrain.GetElevation(x, y, gviGetElevationType.gviGetElevationFromDatabase);
                    ret.Add(z);
                }
            }
            return(ret.ToArray());
        }