示例#1
0
        /// <summary>
        /// Calulates band statics simple stats and corraltion and covariance matrix
        /// </summary>
        /// <param name="inRasterPath">path of the input raster (string, IRasterdataset, IRaster, IRasterDescription</param>
        /// <param name="outStats">full path of the output statistics</param>
        /// <returns>geoprocessing messages</returns>
        public string calcBandStats(object inRasterPath, string outStats)
        {
            ESRI.ArcGIS.SpatialAnalystTools.BandCollectionStats bcStats = new BandCollectionStats();
            bcStats.compute_matrices = "DETAILED";
            bcStats.in_raster_bands  = inRasterPath;
            return(getMessages(gpExecute(bcStats)));


            //mulvOp.BandCollectionStats((IGeoDataset)inRasterDset, outStats, true);
        }
        /// <summary>
        /// Calulates band statics simple stats and corraltion and covariance matrix
        /// </summary>
        /// <param name="inRasterPath">path of the input raster (string, IRasterdataset, IRaster, IRasterDescription</param>
        /// <param name="outStats">full path of the output statistics</param>
        /// <returns>geoprocessing messages</returns>
        public string calcBandStats(object inRasterPath, string outStats)
        {
            ESRI.ArcGIS.SpatialAnalystTools.BandCollectionStats bcStats = new BandCollectionStats();
            bcStats.compute_matrices = "DETAILED";
            bcStats.in_raster_bands = inRasterPath;
            return getMessages(gpExecute(bcStats));

            //mulvOp.BandCollectionStats((IGeoDataset)inRasterDset, outStats, true);
        }