[GIS] Python Widget Wrapper to extend basewidget class in ArcGIS Viewer for Flex

arcgis-flex-viewerpythonwidget

I'd like to create a flex wrapper for python code run locally (utilizing arcgis data and outputting data that can be displayed on the flexviewer). I'd like to use gdal or pyproj modules to process data locally with distributed scripts.

How would one go about creating a wrapper-widget that extends the basewidget class in the arcgis viewer for flex that can communicate with the local install of the python interpreter?

web.py rest services

in terms of the workflow:
user without arcgis server license (for geoprocessing tasks) wants to perform some spatial analysis on a graphic layer in the flex viewer (flash or air).

python script running as a web service (web.py?) accepts vector input ("public" viewshed geoprocessing task demonstrated by esri (http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Elevation/ESRI_Elevation_World/GPServer/Viewshed) creates a graphic polygon layer as output). Using a graphic layer from the flex viewer as input to a "point in polygon" python script (http://geospatialpython.com/2011/01/point-in-polygon.html) would make the output from the viewshed (or other graphic generating tool) more useful.

Best Answer

This isn't really a doable thing -- the best you can hope for here is to install ArcGIS Server on the local machine and expose the Python script as a Geoprocessing service.

Related Question