GPResultOptions

A geoprocessing class containing options that can be applied during a GetJobResult call.

Property

Type

Description

DensifyFeatures

bool

The flag that specifies whether features returned in a result are densified.

DensifyFeaturesSpecified

bool

The flag specifying that the DenisfyFeatures option has been flagged.

Format

string

The format of the results.

FormatProperties

PropertySet

The properties of the Format.

SpatialReference

SpatialReference

The spatial reference of result.

TransportType

esriGDSTransportType

The transport type of result.

TransportTypeSpecified

bool

Indicates if TransportType has been specified.

Remarks

Result options are used to indicate various options for returning result values. If the options is null, the default options are used. Result options reference a number of properties, including DensifyFeatures, TransportType, SpatialReference, Format, and FormatProperties.

The KML format properties are:

Keyword

Type

Default Value

Composite

bool

false

VectorsToRasters

bool

true

ImageSize

long

1024

PaletteSize

long

256

IconSize

long

32

Scale

double

1.0

DPI

double

96

IgnoreScaleFactor

bool

false

IgnoreVisibility

bool

false

FeatureLimit

double

10+6

There is only one Layer Package Properties, Version. Use Version = 10.2.2 to get an ArcGIS 10.2.2 layer package.

Keyword

Type

Default Value

Version

string

10.2.2

NoteNote:

Keyword is case sensitive.

Examples

C#

//Setup Result Options

GPResultOptions resultOptions = new GPResultOptions();

//Result Spatial Reference

ProjectedCoordinateSystem PCS = new ProjectedCoordinateSystem();

PCS.WKID = 102113;

PCS.WKIDSpecified = true;

resultOptions.SpatialReference = (SpatialReference)PCS;

//Result Format

resultOptions.Format = "kml";

//Transport Type

resultOptions.TransportType = esriGDSTransportType.esriGDSTransportTypeUrl;

resultOptions.TransportTypeSpecified = true;

11/8/2016