Edge-of-field bioreactors issue

18 views
Skip to first unread message

Fernando Avendaño

unread,
Sep 17, 2024, 7:40:30 PMSep 17
to ACPF Forum
Hi there!

Thank you so much for all your support, the ACPF tool is genius and we are constantly trying it out here in NZ.

I am currently trying the bioreactors tool. It works well when a farm is segmented in various fields (see attached 'Screenshot1'), but when there is only one unit (see attached 'Screenshot2'), it throws the following error:

  Traceback (most recent call last):  File "C:\Users\favendan\Desktop\ACPF_V5_Pro_04042023\Scripts\BioreactorsP5.py", line 362, in <module>  BiorectorPoints(FBIn, DrainageTable, DEM, D8FlowAcc, D8FlowDir, gSSURGO, ZFactor)  File "C:\Users\favendan\Desktop\ACPF_V5_Pro_04042023\Scripts\BioreactorsP5.py", line 196, in BiorectorPoints  pour_pts = SnapPourPoint(fld_tiles, D8FlowAcc, 0, "pointid")  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\sa\Functions.py", line 16385, in SnapPourPoint  return Wrapper(  ^^^^^^^^  File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\sa\Utils.py", line 45, in swapper  result = wrapper(*args, **kwargs)  ^^^^^^^^^^^^^^^^^^^^^^^^  File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\sa\Functions.py", line 16378, in Wrapper  result = arcpy.gp.SnapPourPoint_sa(  ^^^^^^^^^^^^^^^^^^^^^^^^^^  File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 512, in <lambda>  return lambda *args: val(*gp_fixargs(args, True))  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ arcgisscripting.ExecuteError: ERROR 010151: No features created by operation. Failed to execute (SnapPourPoint). Failed script g. Edge-of-field Bioreactors... Failed to execute (Bioreactors). Failed at Wednesday, 18 September 2024 9:13:05 am (Elapsed Time: 40.46 seconds)  

From the error, it suggests that it cannot snap any points. I'm wondering what is the reason and if there is any fixes in the code for this?

Kind regards,
Screenshot1.jpg
Screenshot2.jpg
Reply all
Reply to author
Forward
0 new messages