Skip To Content ArcGIS for Developers Sign In Dashboard

LocalGeoprocessingService Class

(Esri::ArcGISRuntime::LocalGeoprocessingService)

A local geoprocessing service which runs on an instance of Local Server. More...

Header: #include <LocalGeoprocessingService>
Inherits: LocalService

Public Functions

LocalGeoprocessingService(const QString &packagePath, QObject *parent = nullptr)
~LocalGeoprocessingService()
int maximumRecords() const
GeoprocessingServiceType serviceType() const
void setMaximumRecords(int maxRecords)
void setServiceType(GeoprocessingServiceType serviceType)

Additional Inherited Members

Detailed Description

A local geoprocessing service which runs on an instance of Local Server.

Note: Local server is only available on Windows and Linux.

A local geoprocessing service requires a geoprocessing package file (.gpk) which has been authored in ArcGIS Desktop. A LocalGeoprocessingService produces geoprocessing results using the geoprocessing package.

Use a GeoprocessingTask to submit requests to a local geoprocessing service.

Member Function Documentation

LocalGeoprocessingService::LocalGeoprocessingService(const QString &packagePath, QObject *parent = nullptr)

Constructor that takes a path to the geoprocessing package file (packagePath) and an optional parent.

LocalGeoprocessingService::~LocalGeoprocessingService()

Destructor.

int LocalGeoprocessingService::maximumRecords() const

Returns the maximum number of records returned by the service.

See also setMaximumRecords().

GeoprocessingServiceType LocalGeoprocessingService::serviceType() const

Gets the service type.

See also setServiceType().

void LocalGeoprocessingService::setMaximumRecords(int maxRecords)

Sets the maximum number of records returned by the service to maxRecords.

The default value is 10000. This value must be set before the service starts. It cannot be set on a running service.

See also maximumRecords().

void LocalGeoprocessingService::setServiceType(GeoprocessingServiceType serviceType)

Sets the service type to serviceType.

This method may only be called when the service is not started. It cannot be set on a running service. *

See also serviceType().


Feedback on this topic?