Select to view content in your preferred language

Send selected features to a GP-Service

1051
4
06-15-2011 05:16 AM
Stefan_Arndt
Esri Contributor
Hey everybody,

i'm searching for a way to export selected features as shp-file to a geoprocessing service.
Therefore i edited the standard Flex search-widget to draw a shape and select the features.
No i want to send this selected features to my geoprocessing service, which expects a shapefile.

I had already a look at the "Export to Shapefile" Widget-Code (http://www.arcgis.com/home/item.html?id=d8dc9df78ec643a9a27c18a6f01b41c1)
to get some ideas, but here the user doesn't select Features.

To be honest, i'm not a very experienced programmer, but i would like to ask if my purpose is doable and if you can give me some hints?
Or perhaps somebody has a good idea for me which is the best way to go?

I would be grateful for any information,
Stefan
Tags (2)
0 Kudos
4 Replies
Stefan_Arndt
Esri Contributor
No ideas? No assistance?

Even if it's just a small idea, i would be really grateful for any information!
0 Kudos
IvanBespalov
Frequent Contributor
ArcGIS API for flex -> Concepts -> Geoprocessing tasks

Also, the last Flex Viewer has "DataExtractWidget" - i works perfectly with my GP-Service, but sometimes returns exceptions working with ESRI sample GP-Service. You are looking for any ideas=start point? Look for help: http://yourservername/ArcGIS/SDK/REST/index.html?gpserver.html

Ivan
0 Kudos
Stefan_Arndt
Esri Contributor
Dear Ivan,

thank you very much for your help!
It's not exactly what i searched for, but i goes in the right direction. I haven't recognized the DataExtractWidget yet, but it's really good!

I rebuilded and edited the GP-Service (Data Extract Task) on my own Server and included it in my WebGIS. It's working with my predefined parameters and configuration 🙂

After that, i tried out how to save the Shapefile locally on the server instead of zipping (and downloading) it. I recognised quickly that it is not possible just to edit the "Data Extract Task" of the Server-Toolbox. Later, i checked the python code and found the lines where he zip's the whole folder and saves it. But my python & programming knowledge is not good enough to change this code to saving the shapefile (and shx, dbf, ..) in another folder (if necessary). Because my idea was to save this path and give it to the other GP-Service then ...
0 Kudos
Stefan_Arndt
Esri Contributor
Dear Ivan,

thank you very much for your help!
It's not exactly what i searched for, but i goes in the right direction. I haven't recognized the DataExtractWidget yet, but it's really good!

I rebuilded and edited the GP-Service (Data Extract Task) on my own Server and included it in my WebGIS. It's working with my predefined parameters and configuration 🙂

After that, i tried out how to save the Shapefile locally on the server instead of zipping (and downloading) it. I recognised quickly that it is not possible just to edit the "Data Extract Task" of the Server-Toolbox. Later, i checked the python code and found the lines where he zip's the whole folder and saves it. But my python & programming knowledge is not good enough to change this code to saving the shapefile (and shx, dbf, ..) in another folder (if necessary). Because my idea was to save this path and give it to the other GP-Service then ...
0 Kudos