3

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 generate a TIFF image from a complex map document. I created a script tool which successfuly generates an image.

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.

2
  • 2
    I'd suggest you take a look at the help pages and download the configs for Utility Map Generator--it allows the user to download a PDF though the GP widget in WAB.
    – Paul
    Dec 7, 2015 at 16:55
  • @Paul, Thank for the tip. The examples mentioned gave me the hint.
    – Marcin
    Dec 8, 2015 at 14:45

1 Answer 1

3

I've managed to set it up . 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.

1
  • So with these settings were you able to download the TIFF as output of GPservice in the Web AppBuilder?
    – Carl
    Jun 23, 2021 at 10:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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