ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • ヘルプ
  • Sign Out
ArcGIS Desktop

ArcGIS Online

組織のマッピング プラットフォーム

ArcGIS Desktop

完全なプロ仕様の GIS

ArcGIS Enterprise

エンタープライズ GIS

ArcGIS Developers

位置情報利用アプリの開発ツール

ArcGIS Solutions

各種業界向けの無料のテンプレート マップおよびテンプレート アプリケーション

ArcGIS Marketplace

組織で使えるアプリとデータを取得

  • ドキュメント
  • サポート
Esri
  • サイン イン
user
  • マイ プロフィール
  • サイン アウト

ArcMap

  • ホーム
  • はじめに
  • マップ
  • 解析
  • データ管理
  • ツール
  • エクステンション

EnvManager

  • 概要
  • 構文
  • 手法の概要
  • 手法
  • コードのサンプル

概要

EnvManager is a class for managing geoprocessing environments.

The environment settings set by the EnvManager class are temporary and are only set for the duration of the with block. At the completion of the with block, the environments passed to the EnvManager class will be reset to their values prior to the EnvManager class (you do not need to reset the environment values yourself).

構文

EnvManager (**kwargs)
パラメーター説明データ タイプ
**kwargs

Environment settings are passed as keyword arguments; one or more environments can be passed using the environment name.

with arcpy.EnvManager(cellSize=10, extent='-16, 25, 44, 64'):
    # Code to be executed with the environments set

For a full list of the environments and their names, see the env class.

Variant

手法の概要

手法説明
reset ()

Resets the environment settings to their values prior to calling EnvManager.

手法

reset ()

コードのサンプル

EnvManager example 1

Use EnvManager to temporarily set the cellSize and extent environments prior to executing the PointDensity tool.

import arcpy
feature_class = r'd:\data\data.gdb\cities'

with arcpy.EnvManager(cellSize=10, extent='-16, 25, 44, 64'):
    raster = arcpy.sa.PointDensity(feature_class, 'POP_RANK')
EnvManager example 2

Use EnvManager to temporarily set the workspace environment prior to accessing the ListFeatureClasses function.

import arcpy

with arcpy.EnvManager(workspace=r'd:\data\data.gdb'):
    feature_classes = arcpy.ListFeatureClasses(feature_type='POLYGON')

print('The polygon feature classes are {}'.format(', '.join(feature_classes)))

ArcGIS Desktop

  • ホーム
  • ドキュメント
  • サポート

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

Esri について

  • 会社概要
  • 採用情報
  • Esri ブログ
  • ユーザ カンファレンス
  • デベロッパ サミット
Esri
ご意見・ご感想をお寄せください。
Copyright © 2021 Esri. | プライバシー | リーガル