Is there a way to upload file through GP task?

290
2
09-26-2011 11:59 AM
SteveLi
New Contributor
For example upload a shapefile, parse the content, send string back to client, so web map can plot it.

Or there is better way to do it.

Thanks.
Steve
0 Kudos
2 Replies
curtvprice
MVP Esteemed Contributor
For example upload a shapefile, parse the content, send string back to client, so web map can plot it.

Or there is better way to do it.

Thanks.
Steve


Python has standard modules to access data via ftp or http. (urllib comes to mind) - gp/arcpy would only be needed you were trying to access data from a GIS or SDE server.
0 Kudos
KevinHibma
Esri Regular Contributor
Curtis is correct with his ideas.

If you need upload, you could use Python and built in modules.
Another approach (depending on your requirements) - you could build a web application to handle file upload. The third example in this presentation demonstrates that:

http://resources.arcgis.com/gallery/file/geoprocessing/details?entryID=D9FF1406-1422-2418-34C7-DFD12...
0 Kudos