Can a GP service return BLOB data in a GPFeatureRecordSetLayer?

1042
0
06-01-2016 11:54 AM
MarkReddick
New Contributor III

I have a complex published GP web service that processes a lot of data. To reduce the complexity of processing on the returned data i would like to add some additional geometry information in a 'BUFFER' BLOB field i add on the RecordSet that is returned by the model.

My model adds and populates the BLOB field just fine (results in desktop run of model show it added) but I don't see any way to get at the resulting BLOB data in the JavaScript API.

I'm thinking that this is not supported on this return type?? If not what should i be using for the return parameter type?

The parameter definition looks like this (removed some items for clarity).

Parameter:

      cheapest_routes

Data Type:

      • GPFeatureRecordSetLayer

Display Name

      • Cheapest Route Results

Direction:

      • esriGPParameterDirectionOutput

Geometry Type:

        • esriGeometryPolyline

Parameter Type:

      • esriGPParameterTypeDerived

The resulting JSON from the call looks like this. The fields list includes 'BUFFER' but there is nothing accessible via attributes on the feature (not that i would necessarily expect it there being of type BLOB).

{"paramName":"cheapest_routes","dataType":"GPFeatureRecordSetLayer","value":{"displayFieldName":"","geometryType":"esriGeometryPolyline","spatialReference":{"wkid":102100,"latestWkid":3857},"fields":[{"name":"OBJECTID","type":"esriFieldTypeOID","alias":"OBJECTID"},{"name":"FacilityID","type":"esriFieldTypeInteger","alias":"FacilityID"},{"name":"FacilityRank","type":"esriFieldTypeInteger","alias":"FacilityRank"},{"name":"Name","type":"esriFieldTypeString","alias":"Name","length":128},{"name":"IncidentCurbApproach","type":"esriFieldTypeInteger","alias":"IncidentCurbApproach"},{"name":"FacilityCurbApproach","type":"esriFieldTypeInteger","alias":"FacilityCurbApproach"},{"name":"IncidentID","type":"esriFieldTypeInteger","alias":"IncidentID"},{"name":"Total_Feet","type":"esriFieldTypeDouble","alias":"Total_Feet"},{"name":"ROUTE_LENGTH","type":"esriFieldTypeDouble","alias":"ROUTE_LENGTH"},{"name":"REGION_LENGTHS","type":"esriFieldTypeString","alias":"REGION_LENGTHS","length":255},{"name":"REGION_COSTS","type":"esriFieldTypeString","alias":"REGION_COSTS","length":255},{"name":"TOTAL_COST","type":"esriFieldTypeDouble","alias":"TOTAL_COST"},{"name":"BUSINESS_COUNT","type":"esriFieldTypeInteger","alias":"BUSINESS_COUNT"},{"name":"BUFFER","type":"esriFieldTypeBlob","alias":"BUFFER"},{"name":"Shape_Length","type":"esriFieldTypeDouble","alias":"Shape_Length"}],"features":[{"attributes":{"OBJECTID":1,"FacilityID":223,"FacilityRank":1,"Name":"1 - Fiber Equipment_52","IncidentCurbApproach":2,"FacilityCurbApproach":2,"IncidentID":2,"Total_Feet":4509.8375642549054,"ROUTE_LENGTH":155.05697297572786,"REGION_LENGTHS":"155","REGION_COSTS":"5","TOTAL_COST":775,"BUSINESS_COUNT":12,"Shape_Length":47.261365363001858},"geometry":{"paths":[[[-9660317.6412000004,4323080.7396000028],[-9660325.6509000007,4323095.3488000035],[-9660285.8285000008,4323117.2961999997]]]}}],"exceededTransferLimit":false}}

Any comments appreciated.

mark

Tags (2)
0 Kudos
0 Replies