Failed to run Local Geoprocessing tool in ESRI runtime sdk

المشرف العام

Administrator
طاقم الإدارة
I have created a gpk using the below python script in ArcGIS 10.3.When trying to consume as Local geoprocessing service I get below errors.

  1. The application is running using developer license.The license isvalid for development and testing only.
  2. Geoprocessor service failed.LocalServer start failed.executable not found.
What is the correct procedure to solve this ?

import arcpyfrom arcpy import envimport osenv.workspace = arcpy.GetParameter(0)fcList = arcpy.ListFeatureClasses()text_file = open("C:/Output242.txt", "w")for fc in fcList: print fc.rstrip(".shp") text_file.write(fc.rstrip(".shp"))text_file.close()I am using the below code in C# NET for consuming this gpk service.

private string gpkPath = @"C:\Script2.gpk";private string gpUrl = string.Empty;private async void StartLocalGpService(){ var gpService = new LocalGeoprocessingService(gpkPath, GeoprocessingServiceType.Execute); await gpService.StartAsync();//Fails Here gpUrl = gpService.UrlGeoprocessingService; var geoprocessor = new Geoprocessor(new Uri(gpUrl + "/Script2"));}

أكثر...
 
أعلى