Geoprocessing Service GetJobResultOptions method

Returns the result options for a job.

 

GetJobResultOptions(string JobID)

 

Parameter

Description

JobID

The unique id of the geoprocessing job from which the current result options will be obtained.  Result options can be defined in calls to Execute, SubmitJob, and GetJobResult.
 

 

Return Value

 

A GPResultOptions object.

 

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

Densify Features: If densify features is false, then the features in the feature record set are not modified. If densify features is true, then curves in the feature record set are converted to line segments with vertices. Some client applications cannot handle curves. These applications would use the results options in Execute and GetJobResult to densify the curves. The default value is false.

 

TransportType: If transport type is “Url” then the data types that contain a GDSData object will return the GDSData object with the url to the file. If transport type is “Embedded” then the GDSData object will contain a byte stream of the return file. The default value is Url.

 

Spatial Reference: If the spatial reference is set, returned record sets and raster data will be projected to the given spatial reference.

 

Format: If the format is “KML”, the geodataset results will be returned as kml files. The value object will be GPDataFile. The file will be a url or an embedded byte stream depending on the transport type property.

 

FormatProperties: Format properties contains properties that can be modified for the given format. The format properties are optional. For KML the format properties are:


Keyword

Type

Default Value

Composite

boolean

false

VectorsToRasters

boolean

true

ImageSize

long

1024

PaletteSize

long

256

IconSize

long

32

Scale

double

1.0

DPI

double

96

IgnoreScaleFactor

boolean

false

IgnoreVisibility

boolean

false

FeatureLimit

double

10+6

 

Note: Keyword is case sensitive.

 

Examples

C#

VB.NET

Java