ปัญหาของฉัน: การใช้ ArcPy ฉันต้องการวนซ้ำบัฟเฟอร์และเลือก geometry_features ภายในแต่ละบัฟเฟอร์และทำบางสิ่ง (อัปเดต) เฉพาะวัตถุที่พบภายในบัฟเฟอร์นั้น รหัสด้านล่างอธิบายสิ่งที่ฉันต้องการทำ (มากหรือน้อย):
def _update_connections_inside_buffers(self):
    buffers = arcpy.SearchCursor(self.__buffer_class_name)
    in_layer = "connections"
    for i_buffer in buffers:
        shape = i_buffer.shape
        # can not use a geometry to do a selection.. very inconvenient!!
        connections = arcpy.SelectLayerByLocation_management(in_layer, "WITHIN", shape) 
        self._update_connections(connections)
อย่างไรก็ตาม: สิ่งนี้จะไม่ทำงานเนื่องจาก SelectLayerByLocation_management () ไม่ยอมรับรูปทรงเรขาคณิต "รูปร่าง" เป็นอาร์กิวเมนต์ แต่คาดว่าจะมี feature_class_name (ชื่อเลเยอร์) มีวิธี arcpy ที่สามารถทำการค้นหาโดยใช้คำกริยาเชิงพื้นที่ ฉันไม่พบวิธีการทำสิ่งนี้จากคู่มือ ESRI