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