Select to view content in your preferred language

How to Upload data in geoprocessing service via ArcGIS API for silverlight?

3628
4
10-16-2014 10:37 PM
MostafaKhoshabi
Deactivated User

Hi every one

I built a simple geoprocess with python that give zip file(that with in is a shape file) as input data then unzip input data and make a buffer around the input data. and publish this geoprocess at ArcGIS Server 10.2. But i don't know how to upload and using data  to geoprocessin service via ArcGIS  API for silverlight. Does anyone have a sample code that with in upload data as input geoprocessing via ArcGIS  API for silverlight?

Best Regards

0 Kudos
4 Replies
DominiqueBroux
Esri Frequent Contributor

I suggest you look at the Extract Data sample (ArcGIS API for Silverlight - Interactive Samples | ArcGIS for Developers ).

It demonstrates how to execute a GP Tools at server side and download the result locally.

0 Kudos
MostafaKhoshabi
Deactivated User

Dear Dominique

thanks you for your attention.

I can execute GP and download  but my problem is that I can not upload data as input GP. Can you help me?

best regards

0 Kudos
DominiqueBroux
Esri Frequent Contributor

Hi Mostafa,

For uploading, you have first to use UploadTask for uploading the data to the GP service and then a GPItemId as input of your GP Tool.

Though this is only supported from the version 10.1 of ArcGIS Server.

/Dominique

0 Kudos
MostafaKhoshabi
Deactivated User

Hi dear Dominique

Thanks for your attention. Do you have sample code for this?

Best Regards

0 Kudos