Select to view content in your preferred language

GP Service output 3D Multipatch Supported?

563
1
04-04-2019 05:07 PM
YaoMo2
by
Emerging Contributor

Hi,

I'm wondering if it's possible to publish 3D Geoprocessing service that returns a multipatch as the output feature?

I have run a 3D buffer tool on a few simple 3D points and created some buffered multipatch. This worked fine with Desktop applications (ArcScene and Pro). Then, I shared the result to the Portal and that also worked fine. 

But, when I test the GP service using REST end point, the output feature seems not to have any geometry:

{
 "paramName": "Output_Feature",
 "dataType": "GPFeatureRecordSetLayer",
 "value": {
  "displayFieldName": "",
  "geometryType": "esriGeometryMultiPatch",
  "spatialReference": {
   "wkid": 4326,
   "latestWkid": 4326
  },
  "fields": [
   {
    "name": "OBJECTID",
    "type": "esriFieldTypeOID",
    "alias": "Id"
   },
   {
    "name": "Name",
    "type": "esriFieldTypeString",
    "alias": "Name",
    "length": 1024
   },
   {
    "name": "BUFF_DIST",
    "type": "esriFieldTypeDouble",
    "alias": "BUFF_DIST"
   },
   {
    "name": "BUFF_QUAL",
    "type": "esriFieldTypeInteger",
    "alias": "BUFF_QUAL"
   }
  ],
  "features": [
   {"attributes": {
    "OBJECTID": 1,
    "Name": "Feature 2",
    "BUFF_DIST": 50,
    "BUFF_QUAL": 20
   }},
   {"attributes": {
    "OBJECTID": 2,
    "Name": "Feature 1",
    "BUFF_DIST": 50,
    "BUFF_QUAL": 20
   }}
  ],
  "exceededTransferLimit": false
 }
}

The geometry type is recognized as "esriGeometryMultipatch". But, is the front-end (JS 4) able to use this result and display in a 3D Scene App?

Any examples with GP tools on 3D features? especially multipatch? 

Thanks for any sugguestions

Regards,

Yao

0 Kudos
1 Reply
RussRoberts
Esri Notable Contributor

The multipatch feature layer would have to be published as a 3D Object Scene Layer

0 Kudos