📄 largeclip.py
字号:
"""********************************************************************************************************************
LargeClip.py
Description:
Requirements:
Python and the Python for Windows extention (win32 Extension) to be installed.
Author: ESRI, Redlands
Date: 07/14/2004
Usage: <input_featureclass> <clip_featureclass> <output_featureclass> <cluster_tolerance>
*********************************************************************************************************************"""
#Import system modules and PartionedOverlayer.py (contains functions to partiondata and overlay)
import PartitionedOverlay, sys
try:
#Describe input featureclass to determine the shape type for the output
dsc = PartitionedOverlay.gp.describe(sys.argv[1])
PartitionedOverlay.shape_type = dsc.shapetype.upper()
#Create the parameter list
param_list = [sys.argv[1], sys.argv[2], sys.argv[3], sys.argv[4]]
PartitionedOverlay.ScratchWorkspaceExists("clip_analysis", param_list)
#Set the cluster tolerance in the Partition Overlay script for later use
PartitionedOverlay.SetClustTol("clip_analysis", param_list[0] + ";" + param_list[1], sys.argv[4])
#Run LargeClip passing in the tool name and parameter list
PartitionedOverlay.RunLargeOverlay("clip_analysis", param_list)
del dsc
except Exception, ErStr:
PartitionedOverlay.gp.AddError(str(ErStr))
except:
PartitionedOverlay.gp.AddError("Failure in Large Clip\n" + str(PartitionedOverlay.gp.getmessages(2)))
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -