计算输入要素的几何交点,并在esri srcgis中相应地从输入要素类更新要素

2024-04-25 07:18:00 发布

您现在位置:Python中文网/ 问答频道 /正文

在识别其他要素类的要素之间的交点/重叠后,我希望更新输入要素类中的字段

我曾尝试使用识别gp,但在识别交叉口后,我无法进一步移动

我希望在输入要素类中填充与其他输入相交的字段

更新

这是密码

// Replace a layer/table view name with a path to a dataset 
// (which can be a layer file) or create the layer/table 
// view within the script # The following inputs are layers or 
// table views:"TXDC_OWN_D15_PROJ_GIS_LOCN_LN","AGO_nhs"

arcpy
 .SelectLayerByLocation_management(
   in_layer="TXDC_OWN_D15_PROJ_GIS_LOCN_LN", 
   overlap_type="WITHIN", 
   select_features="AGO_nhs", 
   search_distance="", 
   selection_type="NEW_SELECTION", 
   invert_spatial_relationship="NOT_INVERT"
)


Tags: ortheviewlayertableagoproj要素

热门问题