删除格网和经纬网 (制图)

许可等级:BasicStandardAdvanced

摘要

从要素数据集中删除与一个或多个所选格网和经纬网图层关联的所有要素。

用法

语法

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"

环境

此工具不使用任何地理处理环境

相关主题

许可信息

ArcGIS for Desktop Basic: 否
ArcGIS for Desktop Standard: 是
ArcGIS for Desktop Advanced: 是
5/10/2014