Select to view content in your preferred language

Tabulate a drawn polygon

631
1
11-29-2012 11:49 AM
ChadFanguy
Deactivated User
I don't know if I should ask this here or in the Python forum so please move if this should be there instead.


I would like to run Zonal Statistics as Table and/or Tabulate Area using a "drawn" polygon with the JavaScript drawing tool.
I would like to send the geometries to these tools to use with a shape file (non changing).

Is there a way to convert the geometries to send it to the tool or is there another way to do this?

Thanks
0 Kudos
1 Reply
JohnGravois
Deactivated User
for calculating "Zonal Statistics as Table" are you saying that you want the sketched polygon geometries to be appended to a static shapefile and used together as the input feature zone data?

its pretty typical to run a geoprocessing service from a client web application with an input featureset of sketched graphics, but if you need to do the above i think you're on the right track with using python.

your script (published as a geoprocessing service) would have to

1. accept the input featureset and append it to your static shapefile.
2. make sure the zones field for sketched features is populated appropriately
3. call the Zonal Statistics as Table tool.

is creating a link to the output table for client download what you had in mind?  because i'm not sure how you could handle the information directly in the JavaScript application.  Also, you'll have to make sure you have the right extension licensing for ArcGIS Server to publish a GP service with a Spatial Analyst tool.
0 Kudos