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 |
The properties of the Format. | |
SpatialReference |
The spatial reference of result. | |
TransportType |
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.
- 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 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" or "LPK", the geodataset results (GPFeatureRecordSetLayer and GPRasterDataLayer) will be returned as KML or layer package 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.
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.8 to get an ArcGIS 10.8 layer package.
Keyword |
Type |
Default Value |
---|---|---|
Version |
string |
10.8 |

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;