Hi, I am trying to publish a relatively simple python script as a Geoprocessing widget insde a webpp
The tool works well when executed locally.
and publishes to ArcGIS Server
But I did not understand from esri guide
how do i add raster that wil show after the user active the widget
this is the scripts ,how do i add the output raster to the map that the user see in the webmap
Thank you very much
import arcpy
from arcpy import env
from arcpy.sa import *
#arcpy.env.scratchWorkspace = 'c:/temp/scratchoutput.gdb'
number = arcpy.GetParameterAsText(0)
#Pop_Total
statData = "C:\\arcprotest\\b.tif"
#def main():
out_raster = arcpy.sa.Plus(statData,int(number))#out_raster.save("test")# how do i add this raster to the webmap