clip and ship area of interest input

1557
4
12-01-2017 10:14 AM
AndrewDavis5
New Contributor II

I have a working version of the 'Submit Job (ExtractZionData)' running on my Server (10.2.2) and can run the tool inside arcmap.  I can see the service through my web browser.  I am unsure about the 'Area of Interest' parameter.    The default is like this.

{
  "displayFieldName": "",
  "geometryType": "esriGeometryPolygon",
  "spatialReference": {"wkid": null},
  "fields": [
    {
      "name": "FID",
      "type": "esriFieldTypeOID",
      "alias": "FID"
     },{
       "name": "Id",
       "type": "esriFieldTypeInteger",
       "alias": "Id"
     },{
       "name": "Shape_Length",
       "type": "esriFieldTypeDouble",
        "alias": "Shape_Length"
     },{
        "name": "Shape_Area",
        "type": "esriFieldTypeDouble",
        "alias": "Shape_Area"
    }
   ],
"features": [],
"exceededTransferLimit": false
}

I am looking for the correct format for a simple Area of Interest.  If anyone has a link with correct format I would appreciate the assistance.

Andy

Tags (2)
4 Replies
DanPatterson_Retired
MVP Emeritus

GeoNet Community Structure.... 

Can you see a more suitable place for this question that is in tune with your platform?  The 'Geoprocessing Space', perhaps unfortunately, generally contains questions/discussions relating to geoprocessing tools found in ArcToolbox.

0 Kudos
AndrewDavis5
New Contributor II

Thanks for the reply, I am looking for a better area.

The question is originating from my use of the Geoprocessing  Samples and creation of a service using the sample .py script that I have published.  The tutorial leads you through consumption of the service in the desktop.  

I am interested in consumption of the service through the web interface, and thought maybe someone else has done the same thing.

Would you think that  "Ask ArcGIS REST API"  would be better?

Andy

0 Kudos
DanPatterson_Retired
MVP Emeritus

I wouldn't 'rest' until it was in a web place... done

CarolineGarris
New Contributor III

Hi, 

The tool used in the "Clip and Ship" is the Extract Data (Server) tool. This tool is looking for a feature set for the Area of Interest input. A feature set is slightly different than a feature class in that it is interactive and made for immediate use. The JSON that is listed in the question is defining the temporary feature set. 

The feature set can be defined either interactively through the ArcMap (described in the "Clip and Ship" documentation, or through the ArcGIS JavaScript API. I have attached documentation below to reference these options. 

Clip and Ship documentation - http://server.arcgis.com/en/server/10.3/publish-services/linux/gp-service-example-clip-and-ship.htm

Extract Data tool documentation - http://desktop.arcgis.com/en/arcmap/10.3/tools/server-toolbox/extract-data.htm

Feature Set documentation - http://desktop.arcgis.com/en/arcmap/10.3/analyze/modelbuilder/a-quick-tour-of-using-feature-set-and-...

ArcGIS JavaScript API using a feature set documentation https://developers.arcgis.com/javascript/3/jsapi/featureset-amd.html#featureset2 

ArcGIS JavaScript API using a feature set in a geoprocessor documentation https://developers.arcgis.com/javascript/3/jsapi/geoprocessor-amd.html

Hope this helps!