Testing Web Interface for REST

682
3
09-24-2010 04:55 AM
FabioSantos
New Contributor
Hi everybody.;)

I was testing a ESRI's REST sample in my web browser(firefox).
This is the url: http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Population_World/GPServ...

I put in json format input in"inputPoly" as follow:

{
"rings" : [
[ [-97.06138,32.837], [-97.06133,32.836], [-97.06124,32.834], [-97.06127,32.832], [-97.06138,32.837] ],
[ [-97.06326,32.759], [-97.06298,32.755], [-97.06153,32.749], [-97.06326,32.759] ]
],
"spatialReference" : {"wkid" : 4326}
}

When I posted it, it printed "Invalid value for parameter 'inputPoly'" and it didn't work.:(
What happended?

Thanks,
Fabio Santos
0 Kudos
3 Replies
RaviNarayanan
Esri Contributor
Please see http://resources.esri.com/help/9.3/arcgisserver/apis/rest/gpsubmit.html for more information about the syntax for GPFeatureRecordSetLayer


Here is a JSAPI sample that uses the same service:
http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/demos/geoprocessor/gp_zonalst...

Thanks
0 Kudos
FabioSantos
New Contributor
Hello Ravi,

thanks for your response.

I enter in your url (http://resources.esri.com/help/9.3/arcgisserver/apis/rest/gpsubmit.html) and copy the GPFeatureRecordSetLayer example there and I put it in http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Population_World/GPServ...

It didn't work too. Why? Would you know about that?

Thanks.
0 Kudos
RaviNarayanan
Esri Contributor
The GPFeatureRecordSetLayer example shown in REST reference page for gpSubmitJob has a point geometry type.

The geometry type required for the PopulationSummary gp task is a polygon.
0 Kudos