大家好,我有一个关于在ArcGIS Pro中创建工具箱的小python脚本的问题。我的目标是在场景层中创建3D钻孔。出于这个目的,我首先希望用户能够在点特征类中输入关于高度的值。到目前为止,我为值创建了字段。但现在我找不到任何解决方案,为特征类中的每一行创建值。用户应该可以为类中的每个特性输入它们……如果有人知道这样做的可能性,我会非常感谢一些输入(在那里我可以寻找可能的解决方案或功能等)。import arcpy arcpy.env. overwriteoutput = False #从栅格井中获取值= arcpy。GetParameterAsText(0) raster = arcpy。GetParameterAsText(1) # Process: Extract Values to Points (Extract Values to Points) (sa) Output_point_features = arcpy。GetParameterAsText(2) arcpy.sa。extractvaluestpoints (in_point_features=wells, in_raster=raster, out_point_features=Output_point_features, interpolate_values= "NONE", add_attributes= "VALUE_ONLY") #AddField FromDepth ToDepth fieldName1 = "FromDepth" fieldPrecision = 3 fieldAlias = "FromDepth" fieldName2 = "ToDepth" fieldPrecision2 = 3 fieldAlias2 = "ToDepth" arcpy。AddField_management(Output_point_features, fieldName1, "LONG", fieldPrecision, field_alias=fieldAlias, field_is_nullable= "NULLABLE") arcpy。AddField_management(Output_point_features , fieldName2 , "LONG" , fieldPrecision2 , field_alias=fieldAlias2 , field_is_nullable= "NULLABLE" ) Thanks in advance and regards, Nicola
...查看更多