Quantcast
Channel: Forums - ArcGIS Viewer for Flex
Viewing all articles
Browse latest Browse all 2097

Python script tool works in Desktop but fails in Web,

$
0
0
Python script tool works in Desktop but fails in Web,


Ian Peebles has generously shared a python script tool that display xy coordinates.

For me it is worked fine on the ArcGIS desktop, and published successfully on the server, but as it is added to the one of the web applications builders like (.Net, Silverlight, Flex), it fails to work

Attachment 23481, Attachment 23482, Attachment 23483

Where might be my mistake?


The python script tool, instructions and screenshots can be downloaded from the link below
http://www.mediafire.com/?5ay8m6yu777606r

Thank you

Best

Jamal

----------------
Developed by "Ian Peebles"

http://forums.arcgis.com/threads/783...more-than-one-

displaying (x,y) in Desktop and Web application

1. outputworkspace (folder used for scratch)
2. Script (folder that contains the XY.py script)
3. Symbology (folder that contains the output symbology as layer files)
4. Toolbox.tbx (contains the FindCoordinate script tool)

The script contains a creation of an event layer that uses your coordinate system.

Steps to follow:
1. Copy these files into a folder to your local drive or server. You might name it Coordinates.
2. Set the scratch workspace in your .mxd. In this case, I used: C:\Files\GIS\Coordinates\outputworkspace (Geoprocessing -- Environment -- Workspace -- Scratch Workspace)
3. Open the Toolbox and run the tool.
4. Enter in the coordinate and click OK. Takes about 1 second to run.
5. The results will appear in the table of contents, symbolized with the coordinates labeled based on the referenced layer file.
6. If the script successfully runs, in ArcMap go to: Geoprocessing -- Results -- Current Session.
7. Right Click on the last geoprocessing results and choose Share as Geoprocessing Service.
8. Following the publishing of your geoprocessing service, you can add this into your silverlight application as a tool.
------------------------------------------------------------------
Attached Thumbnails
Click image for larger version

Name:	Clip_911.jpg‎
Views:	N/A
Size:	151.0 KB
ID:	23481   Click image for larger version

Name:	Clip_912.jpg‎
Views:	N/A
Size:	131.6 KB
ID:	23482   Click image for larger version

Name:	Clip_913.jpg‎
Views:	N/A
Size:	157.9 KB
ID:	23483  

Viewing all articles
Browse latest Browse all 2097

Trending Articles