GPFeatureRecordSetLayer

Base Type: GPValue

A class that represents a geoprocessing task inputs for a feature record set layer.

Property

Type

Description

ExceededTransferLimit

bool

The has transfer limit been reached flag.

ExceededTransferLimitSpecified

bool

Indicates if ExceededTransferLimit is specified.

LayerDrawingDescription

LayerDrawingDescription

The layer drawing description.

OIDFieldName

string

The OID field name.

RecordSet

RecordSet

The RecordSet.

ShapeFieldName

string

The layer drawing description.

Remarks

If a geoprocessing service is associated with a result map service, the results of GPFeatureRecordSetLayer and GPRasterDataLayer data types can be drawn by the result map service and hence can be provided to the client as a map image.

Examples

C#

GPToolInfo viewshedToolInfo = gpserver.GetToolInfo("Viewshed");

GPValue[] gpValues = new GPValue[2];

//create the point for the viewshed tool from the default schema

GPParameterInfo gpPI = viewshedToolInfo.ParameterInfo[0];

//Use the default schema

GPFeatureRecordSetLayer inPoint = (GPFeatureRecordSetLayer)gpPI.Value;

RecordSet inPointRS = inPoint.RecordSet;

Record[] records = new Record[1];

Record rec = new Record();

rec.Values = new object[3];

//id field

rec.Values[0] = 0;

//shape field

PointN p = new PointN();

p.X = -13100000.0;

p.Y = 4200000.0;

rec.Values[1] = p;

//offset field

rec.Values[2] = 70;

//add the record to the set of records.

records[0] = rec;

inPointRS.Records = records;

10/23/2013