Use ArcGIS Server to publish geoprocessing service-reprint

Source: Internet
Author: User

Original address http://hi.baidu.com/gis%C0%ED%CF%EB/blog/item/78954da1fc618c8c4610646a.html

Hello everyone! I am a GIS ideal! Today I will focus on the release of the GP (geoprocessing) Service Based on ArcGIS server9.3, this process mainly involves testing the model change In ArcMap and then releasing this service in ArcGIS Server Manager. Because this application is used in actual development, I will more detailed (consistent style ~)

Before explaining this, there was an episode. the exciting news was that ESRI was about to launch ArcGIS Server. 9.3.1 This version is an upgradeable version for server9.3. It is estimated that a lot of user-friendly settings will be added in the second quarter. For example, the version can be upgraded directly from version 9.3.No need to uninstallArcGIS 1, 9.3You can upgrade to ArcGIS 9.3.1.Enhanced JavaSupportAccelerated map cache speed ....... For more information, see

Okay.Let's get down to the truth and continue to talk about the release of the GP service.

Data: mxd document (neworleansarea. mxd)

Tbx file (GP models for ArcGIS Server. tbx)

For this model, you can refer to this figure for self-modeling (for example ):

(The purpose of this model is to add a point in the map document and then buffer the point layer on the map based on the configured radius. points falling within the buffer distance are displayed)

Step 1: Open ArcMap and open neworleansarea. mxd noticed that the shelters layer is the layer for geographic processing. Open arctoolbox, right-click it, add a local model, browse it to GP models for ArcGIS Server, and add it to arctoolbox. A new toolbox is displayed, showing a clip shelters. with buffer right-click this and select Edit. The displayed page is displayed. Let's check the settings of this model.

Open the tools -- options -- geoprocessing option to confirm the settings, as shown in the following figure:

After setting, right-click "Input Feature" in "model", select properties, and click the Data Type Tab. Note that the input parameter here is feature set by default. Click "OK" to exit.

Double-click the buffer. The buffer radius is set to 10 miles. You can also click OK to exit.

Right-click output buffers and check that the manager is selected.

Double-click the clip tool. Note that the input feature here is shelters, that is, the element to be output exits in this layer by default.

Right-click nearby shelters, select Properties, click the layer symbol tab, pay attention to the path, and then exit cancel.

Step 2In ArcMapTest this modelAnd saveDouble-click this model in arctoolbox to bring up a window. Click the small icon on the right. Then, you can set the distance and unit to buffer at the bottom. We use the default one and click it in the map display area on the right (for good observation, click the dot symbol) then, OK, and the model starts to process the process. After the process is completed, a layer will be added to the TOC. This layer shows the position falling in the buffer distance. The default layer shown here is s_clip.

After the test is complete, delete s_clip. In arctoolbox, drag the model to the top of the TOC display layer. Then we can directly save this document. In fact, the model here is equivalent to a tool layer. you can call this function only when you release the service in this map document.

Step 3Create a mapserviceAnd GPServiceIn this process, we open ArcGIS Server Manager, click the service tag on the left, and click public a GIS service on the right to browse the neworleansarea where the map document to be released is located. when mxd clicks next, please note that the following geoprocessing service is selected. This indicates that this map document contains a geographical processing tool.

Click "Next" and you will see two published services in your services list. One is the map service and the other is the geographical processing service. If an error message is displayed, verify your access permission settings and the location. processing tool layer added to mxd does not

Step 4: create a web application that can call this geoprocessing Service

Click the Application tab on the left and then clickCreate web application

Enter the name and description to be created. Next, add a layer and navigate to neworleansarea. You can select an Interent-based access method here.

Click Next after adding a task. In the displayed window, select geoprocessing. Then, add an existing published geographic processing service for the task. Then, click supporting services in in the pop-up window, browse the geoprocessing Service released in the previous step and click OK.

Click the configuration below (configure ..) Set the running parameters of this service.

Note that you can set the following parameters for the above name and help tip. Here, I have modified a Help tip and the remaining default values.

Note: If the Configuration window does not pop up or prompts that the configuration is incorrect, make sure to check your geographic processing service user permissions and whether they have been added to the map document.

Then, the operation is simple. You can directly complete the next step to display the final result:

Note: the processing service has been called. The display result is displayed in results. There is a green dot in the map display area on the right. It is displayed inside three dots near the Green Dot. this Green Point enables you to click the dot layer within 10 kilometers of the Green Point. Please note that there is a geopreccessing label on results and you can click it to bring up a window with a thorn icon and click it on the right. the map area is stabbed and then run to display the result in results.

The full text is complete!

Of course, it is mainly about service release. As long as the Service's geographic processing model has been built, it is mainly available for use in server development. Also, it is more convenient to call this service in flex. applications have a promising future (to be discussed later )........ Finished receiving! So sleepy. I feel like I'm gone.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.