分区统计到dbf表

private void button2_Click(object sender, EventArgs e)
{
    Geoprocessor geoprocessor = new Geoprocessor();
    geoprocessor.OverwriteOutput = true;
    ESRI.ArcGIS.SpatialAnalystTools.ZonalStatisticsAsTable zonal = new ESRI.ArcGIS.SpatialAnalystTools.ZonalStatisticsAsTable();
    zonal.in_zone_data = @"C:\...\市面.shp";
    zonal.zone_field = @"NAME";
    zonal.in_value_raster = @"C:\...\COAY_GF.tif";
    zonal.out_table = @"C:\...\123.dbf";
    zonal.ignore_nodata = @"NODATA";
    zonal.statistics_type = @"ALL";
    geoprocessor.Execute(zonal as IGPProcess, null);
}

你可能感兴趣的:(c#,arcengine)