Select to view content in your preferred language

Interactively selecting shapefile from map service

617
1
12-04-2012 01:53 PM
StephenFricke
Deactivated User
Hey everyone,

I would really appreciate if someone could give me some help.  I have created some geoprocessing services which clip a particular raster dataset by a shapefile of interest.  I have imbedded this geoprocessing service in a map service, so in the web page there is a map with some shapefiles in it, and then on the side of the map there are the parameters that need to be specified to run the geoprocessing service.  One of these parameters is the shapefile which the user would like to clip the data by.  Instead of having to upload a shapefile into this parameter, I want the user to be able to click on a shapefile that is in the map service, and then the geoprocessing service will use this shapefile as the clipping extent.  I am not quite sure how to pass the shapefile the user clicks on to the gp service.  Is there some sort of onClick parameter for the shapefile that I need to create within the javascript?  Any help would be much appreciated.  Thank you!!
0 Kudos
1 Reply
DevonDunham1
Deactivated User
I am looking for the same thing. I've figured out a few ways to do it but each is tedious. I found a good post here talking about they are working on improving some of the webmap functionality for an easier build-in of what we are looking for. In the meanwhile you can convert the feature objects to JSON, import them somewhere and synch your data that way, or http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp_start.htm#jshelp/intro_accessapi.html.
0 Kudos