MapService to FeatureSet
Hello,
I'm trying to test out a simple Buffer Geoprocess in a workflow and the one thing I'm having trouble with is can I not just use the URL of a MapService as my Input parameter in my Workflow's Geoprocess tool? If I use the capture geometry tool along with the querytask, I can draw a polygon around the features to buffer in the map but when I remove capture geometry and querytask and replace the Input parameter with a mapservice URL, I get a very unhelpful error stating "Unable to complete operation.." I tried to post the images below but they weren't showing up so I put the URL's to each workflow image as well
http://www.dropbox.com/s/u7l4b8654kimnhv/Full.jpg
/customer/servlet/servlet.FileDownload?file=00P6000000e88FdEAI
/customer/servlet/servlet.FileDownload?file=00P6000000e88FYEAY
(/customer/servlet/servlet.FileDownload?file=00P6000000e88FdEAI) /customer/servlet/servlet.FileDownload?file=00P6000000e88FdEAI
-
Hi Josh
if I recall correctly the input is a Geometry Service not just a Map Service.
Images can be included in a message directly by uploading the images to the server. Not an immediately obvious process but possible.
Ralph
0 -
Geoprocessing errors can sometimes be found in your ArcGIS Server logs in more helpful forms -- look in the ArcGIS Server Manager web interface for this.
I'm not quite sure what you are trying to do with these parameters though. A GPFeatureRecordSetLayer parameter is basically a FeatureSet variable + a tag that tells the geoprocessor what parameter slot to put it in. A URL to a mapservice is not at all equivalent to this -- even if it understood that, how would it know what features from the mapservice to buffer?
Of course, it is possible to pass a URL as a parameter to a geoprocessing task, but this would be a GPString parameter, and you would have to rewrite the geoprocessor to look out for this variable instead.
0 -
Hi Jonathan. Thanks for the quick reply. The reason I want to use a Mapservice URL (specifically a layer in the MapService) is so that I can query against that entire layer (every feature in that layer). I'm still getting an error that I cannot figure out. I'm simply trying to do a Spatial Join between two feature sets but keep getting "Unable to complete operation..". Both my input parameters are Feature Sets and my output parameter is a feature class and all three parameters are set to "Model Parameter" inside the Model in Toolbox. After publishing the GP Service, I can't get it to work. Thoughts?
0 -
There is probably a more complete error message in your ArcGIS Server logs, accessible through the ArcGIS Manager web interface. You should check here regularly when trying to debug geoprocessing tools. They can be quite tricky at the best of times, and every bit of useful information helps.
Other than that I'm not sure we can provide more helpful advice without taking a detailed look at your setup -- you are welcome to open a support case for some one on one assistance with this.
0
Please sign in to leave a comment.
Comments
4 comments