largeunion.py
来自「esri公司产品,本代码的主要功能是实现大量数据的叠加问题!」· Python 代码 · 共 41 行
PY
41 行
"""********************************************************************************************************************
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 + =
减小字号Ctrl + -
显示快捷键?