Welcome to ESRI Blogs

New geoprocessing tutorial in online help

A new tutorial explaining how to add geoprocessing to Web applications became available today in the ArcGIS Server Web-based help. This tutorial walks you through the process of building a model and creating a map to display the model inputs and results. It then shows how to publish both the map and the model as services and add them to a Web Mapping Application.

To complete the tutorial, you need a few simple GIS datasets and ArcGIS Server for the Microsoft .Net Framework. You also need access to ArcMap. Give it a try and leave us a comment about your experience!

Published Tuesday, July 31, 2007 1:51 PM by sterlingdq
Filed under: ,

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# re: New geoprocessing tutorial in online help

I hope to offer some examples based on these fucntions of arcmap by arcgis server 9.2 development. Thank u. I am from China.
Tuesday, July 31, 2007 6:40 PM by kylin

# re: New geoprocessing tutorial in online help

I cannot get the sample to work. It appears it is working but nothing is displayed on the map. Can you offer any assistance?
Thursday, August 09, 2007 7:13 AM by Don

# re: New geoprocessing tutorial in online help

Hi Don. So if I understand right you built a geoprocessing application based on the information in this post and the results are not showing up on the map? Or is the entire map blank?

If the map is blank, does it appear when you refresh (F5)?

Thursday, August 09, 2007 9:04 AM by sterlingdq

# re: New geoprocessing tutorial in online help

The map is showing up great. The results of the geoprocessing task is not showing up on the map.
Thursday, August 09, 2007 9:33 AM by Don

# re: New geoprocessing tutorial in online help

Not sure I'll be able to diagnose this without seeing the application, but here are a few more questions-

What appears in the Results panel window when you run the task? Are there any messages or any result layers that look like you should be able to check them on or off?

Does anything get created in your server jobs directory when you run the task? If you installed ArcGIS Server on one machine and accepted the defaults, your jobs directory is in C:\arcgisserver\arcgisjobs. Each time you run the task, the outputs should appear in this folder.

If you created a different server jobs directory, does the SOC account have permissions to read from there?

Did you create the tool layer and publish the map and geoprocessing service together as described in this tutorial, or did you publish the geoprocessing service on its own (no tool layer or associated map)? If you published the geoprocessing service on its own, then the client might be trying to render the results and there are several reasons they might not draw. If you went this route, let me know and I can go into more detail.

-SQ

Thursday, August 09, 2007 10:04 AM by sterlingdq

# re: New geoprocessing tutorial in online help

When I run the task I get the following things in the Results panel; I get messages saying that all processes ran correctly, I get result layers that can be checked on or off. However when I expand the layer all that is shown is Legend (not a symbol or any other text), and I also have an Inputs layer that tells me my linear units I used and the feature set layer. When I got the the server jobs directory arcgisserver\arcgisjobs\_GPServer\{J1BCA12C434F44025 BFC63EBC51E9AED9_or Similar}\scratch the created shapefiles appear and look to be correct. The geoprocessing service was created by me publishing a mxd that had the model as a layer. If I publish the service on its own the results get displayed just not with the symbology I want and the results are very transparent. What do you think it could be? -Don
Thursday, August 09, 2007 11:52 AM by Don

# re: New geoprocessing tutorial in online help

Hi, Have you looked at: http://webhelp.esri.com/arcgisdesktop/9.2/index.cfm?TopicName=Troubleshooting_guide See "Why is the resulting map service layer from my server tool empty?" n
Thursday, August 09, 2007 12:09 PM by n

# re: New geoprocessing tutorial in online help

I looked at the Troubleshooting Guide and it solved my problem of the data not showing. What I ended up doing was manually setting my scratch workspace to c:\temp. Now I have a new problem. The model is a buffer and selected so I am displaying two shapefiles with custom symbology (which is what I want) but the input symbology is not what I set in the model. Is that something that can be changed or do I just have to deal with it? -Don
Friday, August 10, 2007 6:23 AM by Don

# re: New geoprocessing tutorial in online help

Does the input symbology have a shortened path also? Are you pointing at a layer file that is of the same geometry type of your inputs? Does the SOC account have permission to get it?

Those are the only things I can think of right now.

Friday, August 10, 2007 2:42 PM by sterlingdq

# re: New geoprocessing tutorial in online help

Don- I'm assuming the input is a feature set. When you create your tool layer, all feature set inputs should have a node in the tool layer. Does the symbology of the inputs in the tool layer reflect what you want? If yes, then I'm not sure what the problem is. If not, then you should reset the symbology for the inputs in the tool layer to the symbology you desire. -n
Friday, August 10, 2007 2:47 PM by n

# re: New geoprocessing tutorial in online help

I am having a very similar problem. The result of my geoprocessing stays on the server un the argisserver\jobs folder. I can get it using the GET DATA item on the Results tab (the result is a feature class). That's no problem. But in the web application of course, there is no way to get the data off the server once i have run the tool!!! Please tell me what I am doing wrong.

Alan

Sunday, December 02, 2007 3:31 PM by apeters

# re: New geoprocessing tutorial in online help

Alan- This tutorial draws the result on the server using the associated map service, so the actual features are not sent to the client. Only the map image is sent to the client.

If you want the features to be returned to the client, you can "disassociate" your geoprocessing service from the map service by doing this:

1. Open ArcCatalog

2. Browse to your geoprocessing service in the catalog tree.

3. If necessary, stop the service by right-clicking it and clicking Stop.

4. Right-click the service and click Service Properties

5. Click the Parameters tab.

6. Find the Result Map Service box and change it to "None". This will force the results to be sent back to the client. Note that if a lot of features are coming back, this could take a while.

7. Click "OK" (Do not click "Apply" - this is a bug)

8. Start the geoprocessing service.

After doing this, the map service will not be used to draw the results and the client application will receive the features.

Monday, December 03, 2007 11:45 AM by sterlingdq

# re: New geoprocessing tutorial in online help

I'm having the same problem mentioned above where the GP task ran on the server, the results were created in the arcgisjobs directory but nothing is displayed on the map. My GP tasks are in a served toolbox. The Results pane has an "Output" with "Legend" and "Features" but nothing gets displayed. I've looked through the issues mentioned above haven't found anything that helps. My client is a .NET web app created from the template. Any ideas?
Monday, August 25, 2008 8:01 AM by Deona

Leave a Comment

(required) 
required 
(required)