AnsweredAssumed Answered

How to set field for GPFeatureRecordSetLayer

Question asked by jkane12 on Apr 19, 2016

For a view shed geoprocessing Task there is an input parameter "OffsetA" that is in the "Fields" list of a GPFeatureRecordSetLayer,  is there any example of setting this in C#?

So far I have:

var inputPoint = await MyMapView.Editor.RequestPointAsync();

GPFeatureRecordSetLayer gp = new GPFeatureRecordSetLayer("Input_Observation_Point", inputPoint);

 

thanks,

 

Parameter: Input_Observation_Point
Data Type: GPFeatureRecordSetLayer
Display Name Input_Observation_Point
Description: The input location from which the viewshed should be calculated.
Direction: esriGPParameterDirectionInput
Default Value:  Geometry Type: esriGeometryPoint
HasZ: false
HasM: false 
Spatial Reference: 54003  (54003)

Fields:
◾ OBJECTID  ( type: esriFieldTypeOID , alias: OBJECTID ) 
OffsetA  ( type: esriFieldTypeSmallInteger , alias: OffsetA ) 
Features: None.

Outcomes