【ArcGIS Engine】GPEnvironment GP工具环境变量

环境变量参数整理,附官方说明地址,10.2版本

一、环境设置汇总表(Environment settings summary table) 10.2

官方地址

下表按字母顺序显示了地理处理环境。表中的第一列是环境的名称。必须将此名称作为字符串传递给地理处理器的GetEnvironmentValueSetEnvironmentValue方法。第二列是显示名称,如“环境设置”对话框中所示。

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.

Environment nameDisplay name 👉 官方地址
autoCommitAuto Commit
cartographicCoordinateSystemCartographic Coordinate System
cellSizeCell size
coincidentPointsCoincident points
compressionCompression
configKeywordOutput CONFIG Keyword
derivedPrecisionPrecision For Derived Coverages
extentExtent
geographicTransformationsGeographic Transformations
maintainSpatialIndexMaintain Spatial Index
maskMask
MDomainOutput M Domain
MResolutionM Resolution
MToleranceM Tolerance
newPrecisionPrecision For New Coverages
outputCoordinateSystemOutput Coordinate System
outputMFlagOutput has M Values
outputZFlagOutput has Z values
outputZValueDefault output Z value
projectCompareLevel Of Comparison Between Projection Files
pyramidPyramid
qualifiedFieldNamesMaintain fully qualified field names
randomGeneratorRandom number generator
rasterStatisticsRaster statistics
referenceScaleReference Scale
scratchWorkspaceScratch Workspace
snapRasterSnap Raster
spatialGrid1, 2, 3Output Spatial Grid 1, 2, 3
terrainMemoryUsageTerrain Memory Usage
tileSizeTile size
tinSaveVersionTIN storage version
workspaceCurrent Workspace
XYDomainOutput XY Domain
XYResolutionXY Resolution
XYToleranceXY Tolerance
ZDomainOutput Z Domain
ZResolutionZ Resolution
ZToleranceZ Tolerance

二、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);
  • 24
    点赞
  • 24
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值