Select to view content in your preferred language

Chaining GeoProcessing Services

810
1
06-22-2012 05:42 AM
MatthewPilgrim
Regular Contributor
Hi,

I have been given some example code that links two GP tools together.  It waits for the first to complete and then does this:

string multiPatchScratchDB = "C:\\arcgisserver\\arcgisjobs\\.....etc... \\" + jobID + "\\scratch\\ExtrudeBetween.shp";
parameters.Add(new GPString("Input_Features", multiPatchScratchDB));
parameters.Add(...others);
myGeoprocessorTask.SubmitJobAsync(parameters);

Where JobId is the previous tools Id.  It looks like the first tool makes a shp file and the second one uses it (with other inputs).  This runs for someone located in the same building but not me on the other side of the Atlantic!

So the questions are:

  • Is this an acceptable approach to link two GP tools (I can't find a single page discussing this)?

  • If so, what could be causing it to run for one person and not the other (Errror 000732 - the file does exist, I can see it!)?

  • If not, how should I approach passing a SHP between them?

Many thanks,

Matthew
0 Kudos
1 Reply
DominiqueBroux
Esri Frequent Contributor
No idea about your issue, but if you don't need the shapefile at client side, why not create one GP tool chaining your 2 tools at server side?
0 Kudos