I want to create a simple application in ArcGIS Web AppBuilder which uses geoprocessing service to generate output file.
I have a simple Python script which generates a TIFF image from a complex map document. I created a script tool which successfuly generates an image when running from ArcMap
My question is how to set up script tool parameters and geoprocessing service parameters to be able to configure geoprocessing widget in Web AppBuilder.
My intention is to have a download link as an output.
Solved! Go to Solution.
I've managed to set up a gp service.
Here're the most important settings:
Script:
- output image is written to default scratch folder (outDir = arcpy.env.scratchFolder)
- script parameter: arcpy.SetParameter(0,tif_path)
Script tool:
- Parameter: Data Type - file; Type - Derived; Direction - Output
GP Service:
Default settings.
Web AppBuilder:
Geoprocessing widget's parameters are populated automatically after poining to the service.
I've managed to set up a gp service.
Here're the most important settings:
Script:
- output image is written to default scratch folder (outDir = arcpy.env.scratchFolder)
- script parameter: arcpy.SetParameter(0,tif_path)
Script tool:
- Parameter: Data Type - file; Type - Derived; Direction - Output
GP Service:
Default settings.
Web AppBuilder:
Geoprocessing widget's parameters are populated automatically after poining to the service.