Can't Import Hydrology Toolbox & Trace Downstream

1724
3
11-23-2016 12:26 PM
Labels (1)
by Anonymous User
Not applicable

Hello,

I need some help using the TraceDownstream tool off of the ArcGIS rest services.  It works completely fine if I run it within ArcMap, but my goal is too implement it in a python tool for a project that I am doing. I can copy & paste the stand-alone script listed in the item description of the tool, but for some reason it still will not import successfully. I've attached the code below, and again..it is verbatim from the stand-alone script in the item description. I created a point feature class called "pourpt1" and placed it in the testdata geodatabase. #trace down stream

Best,

Casey

Tags (1)
0 Kudos
3 Replies
DanPatterson_Retired
MVP Emeritus

is there a dependency on the Spatial Analyst? in base ArcMap, hydrology related tools are indeed in the SA extension, which needs to be available and enabled in order to use

0 Kudos
by Anonymous User
Not applicable

No, I don't have SA checked out in ArcMap and the tool still runs successfully, it just won't function in Python. 

0 Kudos
DanPatterson_Retired
MVP Emeritus

In python, I think you should use CheckOutExtension...since python doesn't know about the extension being checked on

0 Kudos