Es 3D cerrado (3D Analyst)
Resumen
Evalúa las entidades multiparche para determinar si cada entidad encierra completamente un volumen de espacio.
Uso
Un nuevo campo que especifica si el multiparche que está cerrado se agrega a la entidad multiparche de entrada.
This tool is a 3D set operator that provides analytical functions on 3D features. See Working with 3D set operators for more information on what set operators are and how to use them.
Sintaxis
IsClosed3D_3d (in_feature_class)
Parámetro | Explicación | Tipo de datos |
in_feature_class |
Las entidades multiparches que se van a probar. | Feature Layer |
Ejemplo de código
Ejemplo 1 de IsClosed (ventana de Python)
The following sample demonstrates the use of this tool in the Python window:
import arcpy from arcpy import env env.workspace = 'C:/data' arcpy.IsClosed3D_3d('sample_multipatch.shp')
Ejemplo 2 de IsClosed (secuencia de comandos independiente)
La siguiente muestra demuestra cómo utilizar esta herramienta en una secuencia de comandos Python independiente:
'''**************************************************************************** Name: IsClosed3D Example Description: This script demonstrates how to use the IsClosed3D tool on all multipatches in a target workspace. ****************************************************************************''' # Import system modules import arcpy import exceptions, sys, traceback from arcpy import env try: # Obtain a license for the ArcGIS 3D Analyst extension arcpy.CheckOutExtension('3D') # Set environment settings env.workspace = 'C:/data' # Set Local Variables for fc in arcpy.ListFeatureClasses(): # list features in workspace # Determine which features are multipatches if arcpy.Describe(fc).shapeType == 'MultiPatch': # Execute Is Closed 3D arcpy.IsClosed3D_3d(fc) except arcpy.ExecuteError: print arcpy.GetMessages() except: # Get the traceback object tb = sys.exc_info()[2] tbinfo = traceback.format_tb(tb)[0] # Concatenate error information into message string pymsg = 'PYTHON ERRORS:\nTraceback info:\n{0}\nError Info:\n{1}'\ .format(tbinfo, str(sys.exc_info()[1])) msgs = 'ArcPy ERRORS:\n {0}\n'.format(arcpy.GetMessages(2)) # Return python error messages for script tool or Python Window arcpy.AddError(pymsg) arcpy.AddError(msgs)
Entornos
Temas relacionados
Información de licencia
ArcView: Requiere 3D Analyst
ArcEditor: Requiere 3D Analyst
ArcInfo: Requiere 3D Analyst
7/10/2012