环境变量参数整理,附官方说明地址,10.2版本
一、环境设置汇总表(Environment settings summary table) 10.2
下表按字母顺序显示了地理处理环境。表中的第一列是环境的名称。必须将此名称作为字符串传递给地理处理器的GetEnvironmentValue和SetEnvironmentValue方法。第二列是显示名称,如“环境设置”对话框中所示。
The following table shows the geoprocessing environments in alphabetical order. The first column in the table is the name of the environment. You must pass this name as a string to the geoprocessor’s GetEnvironmentValue and SetEnvironmentValue methods. The second column is the display name as shown on the Environment Settings dialog box.
表中的每个环境显示名称都链接到该环境的参考页,该页解释了环境的用途以及可以为其设置的值。
Each environment display name in the table links to the reference page of that environment, which explains what the environment is for and what values can be set for it.
.NET中的环境名称不区分大小写。
Environment names are not case-sensitive in .NET.
二、C#
/// <summary>
/// GP环境参数 => 及其接受的值
/// .Net不区分大小写
/// https://resources.arcgis.com/en/help/arcobjects-net/conceptualHelp/#/Using_environment_settings/0001000001n5000000/
/// </summary>
public static partial class GPEnviement
{
public static readonly string Auto_Commit = "autoCommit";//"autoCommit";
public static readonly string Cartographic_Coordinate_System = "cartographicCoordinateSystem";//"cartographicCoordinateSystem";
public static readonly string Cell_size = "cellSize";//"cellSize";
public static readonly string Coincident_points = "coincidentPoints";//"coincidentPoints";
public static readonly string Compression = "compression";//"compression";
public static readonly string Output_CONFIG_Keyword = "configKeyword";//"configKeyword";
public static readonly string Precision_For_Derived_Coverages = "derivedPrecision";//"derivedPrecision";
public static readonly string Extent = "extent";//"extent";
public static readonly string Geographic_Transformations = "geographicTransformations";//"geographicTransformations";
public static readonly string Maintain_Spatial_Index = "maintainSpatialIndex";//"maintainSpatialIndex";
public static readonly string Mask = "mask";//"mask";
public static readonly string Output_M_Domain = "MDomain";//"MDomain";
public static readonly string M_Resolution = "MResolution";//"MResolution";
public static readonly string M_Tolerance = "MTolerance";//"MTolerance";
public static readonly string Precision_For_New_Coverages = "newPrecision";//"newPrecision";
public static readonly string Output_Coordinate_System = "outputCoordinateSystem";//"outputCoordinateSystem";
public static readonly string Output_has_M_Values = "outputMFlag";//"outputMFlag";
public static readonly string Output_has_Z_values = "outputZFlag";//"outputZFlag";
public static readonly string Default_output_Z_value = "outputZValue";//"outputZValue";
public static readonly string Level_Of_Comparison_Between_Projection_Files = "projectCompare";//"projectCompare";
public static readonly string Pyramid = "pyramid";//"pyramid";
public static readonly string Maintain_fully_qualified_field_names = "qualifiedFieldNames";//"qualifiedFieldNames";
public static readonly string Random_number_generator = "randomGenerator";//"randomGenerator";
public static readonly string Raster_statistics = "rasterStatistics";//"rasterStatistics";
public static readonly string Reference_Scale = "referenceScale";//"referenceScale";
public static readonly string Scratch_Workspace = "scratchWorkspace";//"scratchWorkspace";
public static readonly string Snap_Raster = "snapRaster";//"snapRaster";
public static readonly string Output_Spatial_Grid_1 = "spatialGrid1";//"spatialGrid1";
public static readonly string Output_Spatial_Grid_2 = "spatialGrid2";//"spatialGrid2";
public static readonly string Output_Spatial_Grid_3 = "spatialGrid3";//"spatialGrid3";
public static readonly string Terrain_Memory_Usage = "terrainMemoryUsage";//"terrainMemoryUsage";
public static readonly string Tile_size = "tileSize";//"tileSize";
public static readonly string TIN_storage_version = "tinSaveVersion";//"tinSaveVersion";
public static readonly string Current_Workspace = "workspace";//"workspace";
public static readonly string Output_XY_Domain = "XYDomain";//"XYDomain";
public static readonly string XY_Resolution = "XYResolution";//"XYResolution";
public static readonly string XY_Tolerance = "XYTolerance";//"XYTolerance";
public static readonly string Output_Z_Domain = "ZDomain";//"ZDomain";
public static readonly string Z_Resolution = "ZResolution";//"ZResolution";
public static readonly string Z_Tolerance = "ZTolerance";//"ZTolerance";
}
三、使用示例
Geoprocessor geoprocessor =null;
geoprocessor.SetEnvironmentValue(GPEnviement.Output_Coordinate_System, 4490);