If your app requires offline geoprocessing, you can use the LocalGeoprocessingService
instance, by using the path to the local geoprocessing package. To create an offline geoprocessing package, you first need to create one with ArcGIS Desktop or Pro using the steps outlined here:
The first thing to note is that LocalGeoprocessingService
is located in Esri.ArcGISRuntime.LocalServices
. Running an offline geoprocessing service is very similar to how you would use an online geoprocessing service. However, instead of just accessing the service using an online URL, you will need to start up the local geoprocessing task on your machine, like this:
this.localGPService = new LocalGeoprocessingService(this.clipGPKPath, GeoprocessingServiceType.SubmitJob); this.localGPService.StartAsync();
Note that we've instantiated LocalGeoprocessingService
with the...