选中—Optimization will not be performed on the input data. Features will either be stored in a single output feature or be unioned according to their grouping field, if one is provided.
未选中—Optimization will be performed on the input data. The grouping field will be ignored. This is the default.
Boolean
输出所有实体
(可选)
指定输出要素类是将包含所有要素,还是仅包含已联合的重叠要素。
选中—All input features will be written to the output. This is the default.
未选中—Only unioned features will be written to the output. Nonoverlapping features will be ignored.
DISABLE—Optimization will not be performed on the input data. Features will either be stored in a single output feature or be unioned according to their grouping field, if one is provided.
ENABLE—Optimization will be performed on the input data. The grouping field will be ignored. This is the default.
Boolean
output_all
(可选)
指定输出要素类是将包含所有要素,还是仅包含已联合的重叠要素。
ENABLE—All input features will be written to the output. This is the default.
DISABLE—Only unioned features will be written to the output. Nonoverlapping features will be ignored.
'''****************************************************************************
Name: Union3D Example
Description: This script demonstrates how to use the
Union3D tool.
****************************************************************************'''
# Import system modules
import arcpy
# Set environment settings
arcpy.env.workspace = 'C:/data'
# Set Local Variables
inMP = "multipatch.shp"
# Ensure output multipatch has a unique name
outMP = arcpy.CreateUniqueName("union_output.shp")
outTbl = arcpy.CreateUniqueName("UnionTable.dbf")
GroupField = "Type"
optimize = "DISABLE"
solids = "ENABLE"
# Run Union3D
arcpy.ddd.Union3D(inMP, outMP, GroupField, optimize, solids, outTbl)