Hi,
I am trying to build a WPF Desktop app, wherein I am using Local server to consume a geoprocessing package. The idea is to develop an app where I can click at a location, to mark an outlet point, on the map and click the generate button to generate the watershed above the outlet. I tried to follow the sample from https://developers.arcgis.com/net/latest/wpf/sample-code/local-server-geoprocessing/
But not successful in achieving the goal and I get “Job failed” message box.
I am attaching the code also. Any help is much appreciated.
Hi Mike,
Thanks for pointing out to resourceful documentations. I tried to make some adjustments in the code as pointed out in the link https://github.com/Esri/arcgis-runtime-samples-dotnet/blob/master/src/WPF/ArcGISRuntime.WPF.Viewer/Samples/Geoprocessing/AnalyzeViewshed/AnalyzeViewshed.xaml.cs#L70.
After running the code, "Job Failed" message box shows up with message as follows:
I am attaching the new code as well.. Please let me know the work around.
Thanks,
Manish
One issue might be that you're not providing any input features.
Your code initializes the features:
`gpParams.Inputs["Outlet of Watershed"] = new GeoprocessingFeatures();`
But I can't see any code that adds a feature to that input. You'll need something like this:
arcgis-runtime-samples-dotnet/AnalyzeViewshed.xaml.cs at master · Esri/arcgis-runtime-samples-dotnet · GitHub
I also recommend reading this topic for tips on publishing geoprocessing services: A quick tour of authoring and sharing geoprocessing services—Documentation | Documentation for ArcGIS Enterprise
Thanks
Mike
One of the reasons that I use ArcMap instead of ArcGIS pro is because many parts of the application were previously built using ArcMap. I will not have a problem transitioning to ArcGIS Pro for building new applications. As far as old ones, I can still use ArcGIS Pro if there is an easy way to upgrade the old ones rather than writing whole new program.
This is a really exciting use case for Local Server.
Question: Before I take a look... are you able to use ArcGIS Pro instead of ArcMap? (the next release of Local Server approx Q3 2020 will only support Pro packages, therefore I'd prefer to get you going in that direction if possible)
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.