Select to view content in your preferred language

How to create an ArcGIS Server GP Task that performs a Trace against a Trace Network?

65
0
yesterday
JonSwoveland
Frequent Contributor

In ArcGIS Pro, I can successfully run the Trace Network Trace tool against my TN data set.   I would like to publish this out as a server geoprocessing task to make it available to an ArcGIS Javascript 4x API web application, but I'm having a heck of a time trying to figure out how to configure the input parameters.

The behaviour I'd like to provide is:

  1. User selects a start point on the map
    (Question: does this need to be a point that intersects a geometry of Trace Network feature, or will the Trace task simply find the closest feature to start from?  
  2. User selects the type of trace (downstream, upstream, connected)
  3. The start point is passed to the GP task as an input parameter.  Is a GPFeatureRecordSetLayer the correct parameter type for this?  What parameter type is this equivalent to in ArcGIS Pro? 
  4. I won't be providing the option for barriers.
  5. I would like to view the results of the Trace as a map service.  Ideally the GP Task would create a temporary map service equivalent to the group layer created in ArcGIS Pro when running the Trace tool.  The results are broken down nicely into their source layers. 
  6. Lastly, the GP Task must be available to ArcGIS Enterprise Viewers.

I've run Trace task in ArcGIS Pro and published it out as a service, but have not figured out how to pass it a starting point as an input parameter. 

Any advice is much appreciated.

0 Kudos
0 Replies