3

I use:

http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Network/ESRI_DriveTime_US/GPServer/CreateDriveTimePolygons/execute

What is correct entry to Input Location (GPFeatureRecordSetLayer) ?

I try:

{"type": "Point","coordinates": [-105.01621,39.57422]}

but I get : "Invalid value for parameter 'Input_Location'"

4

An example from the Task parameter properties (REST) documentation (reformatted):

{ 
    "geometryType" : "esriGeometryPoint",
    "fields":[
          {"name":"Id","type":"esriFieldTypeOID","alias":"Id"},
          {"name":"Name","type":"esriFieldTypeString","alias":"Name"}],
    "spatialReference" : {"wkid" : 4326},
    "features" : [
        {
            "geometry" : {"x" : -104.44, "y" : 34.83, "spatialReference" : {"wkid" : 4326}}, 
            "attributes" : {"Id" : 43,"Name" : "Feature 1"}},
        {
            "geometry" : {"x" : -100.65, "y" : 33.69, "spatialReference" : {"wkid" : 4326}},
            "attributes" : {"Id" : 42,"Name" : "Feature 2"}}]
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.