Solved! Go to Solution.
I will also point out that the data in the application is in state plane coordinates (feet), so I had to reproject the intermediate data to WGS 1984 to get the coordinates in decimal degrees. If you are working in WGS 1984, you can eliminate this step.
Also the reason there is a buffer is because you cannot zoom to a point in the application builder. . only lines and polygons. The buffer is invisible, so only the point shows up.
Seems kind of goofy, but this is how I got it to work.
Jamal,
Try this script that I have attached. The zip file contains the following contents:
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.
I hope this helps. Below is a screenshot of what the geoprocessing results look like after it is run in ArcMap.
Jamal, it looks like you are getting closer. You will only be able to see one result at a time in ArcGIS desktop, because the data is overwritten in the scratchworkspace each time you run the tool. This works as designed. Now, if you run the script successfully, you should be able to publish a geoprocessing service.
I checked your projection system for your data and it looks fine. There shouldn't be any issues there.
What I will suggest you do is check your geoprocessing service settings. Specifically look at the Parameters and look for the View Results with a Map Service. Make sure the box is checked. I have this checked and I can see my geoprocessing results for the same tool I built for our organization.
After you check your service, re-run the tool in the application builder. When you run the tool, the results will appear in the table of contents, then you can zoom to layer using the out of the box tool. If you run the tool again, another result will appear in the table of contents on top of the other one in the table of contents. This will give your multiple results that you are wanting.
I think you are close, because you were able to publish the service. Check your service settings again.
Jamal, it looks like you are getting closer. You will only be able to see one result at a time in ArcGIS desktop, because the data is overwritten in the scratchworkspace each time you run the tool. This works as designed. Now, if you run the script successfully, you should be able to publish a geoprocessing service.
I checked your projection system for your data and it looks fine. There shouldn't be any issues there.
What I will suggest you do is check your geoprocessing service settings. Specifically look at the Parameters and look for the View Results with a Map Service. Make sure the box is checked. I have this checked and I can see my geoprocessing results for the same tool I built for our organization.
After you check your service, re-run the tool in the application builder. When you run the tool, the results will appear in the table of contents, then you can zoom to layer using the out of the box tool. If you run the tool again, another result will appear in the table of contents on top of the other one in the table of contents. This will give your multiple results that you are wanting.
I think you are close, because you were able to publish the service. Check your service settings again.