格子線と経緯線レイヤの削除(Delete Grids and Graticules) (カートグラフィ)

サマリ

選択した格子線と経緯線レイヤ(1 つまたは複数)に関連付けられているすべてのフィーチャを、フィーチャ データセットから削除します。

使用法

構文

DeleteGridsAndGraticules_cartography (in_grid_dataset, grid_name)
パラメータ説明データ タイプ
in_grid_dataset

削除できる格子線と経緯線レイヤの格納先となる、フィーチャ データセットの場所。

Feature Dataset
grid_name
[grid_name,...]

フィーチャ データセット内の格子線と経緯線レイヤのうち、削除できるものをリストします。

String

コードのサンプル

DeleteGridsAndGraticules(格子線と経緯線レイヤの削除)ツールの例(Python ウィンドウ)

フィーチャ データセットから格子線と経緯線レイヤを削除します。

import arcpy
from arcpy import env
env.workspace = "C:/Python_Output"
arcpy.DeleteGridsAndGraticules_cartography("C:/Python_Output/grid_layers.gdb/QUAD_24K", 
"Plaza Washington (Quad_24K_NAD83)")
DeleteGridsAndGraticules(格子線と経緯線レイヤの削除)ツールの例(スタンドアロン Python スクリプト)

フィーチャ データセットから格子線と経緯線レイヤを削除します。

 # Name: DeleteGridsAndGraticules.py 
# Description: Delete grid(s) from a feature dataset. 
# Author: ESRI 

# Import system module 
import arcpy 

# Enabling logging of the results 
arcpy.logHistory = True
 
# Set the values of the tool's parameters 
input_grid_dataset = "C:/Python_Output/grid_layers.gdb/QUAD_24K" 
grid_name = ['Plaza Washington (Quad_24K_NAD83)','Swift Minnesota (Quad_24K_NAD83)'] 

# Process: Delete Grids and Graticules 
arcpy.DeleteGridsAndGraticules_cartography(input_grid_dataset, grid_name) 
print "Grids and Graticules features deletion successful"

環境

このツールは、ジオプロセシング環境を使用しません

関連項目

ライセンス情報

ArcView: いいえ
ArcEditor: 必須 ◎
ArcInfo: 必須 ◎

7/10/2012