ArcGIS Server 9.2 enables Online Editing Based on Web browsers

Source: Internet
Author: User

ArcGIS Server 9.2 enables Online Editing Based on Web browsers

Http://bbs.esrichina-bj.cn/ESRI/viewthread.php? Tid = 5612 & extra = Page % 3d1

Data Preparation
Server 9.2 began to support online Data Editing Based on Web browsers. to implement such a function and have special requirements on data, let's take a look at how the document describes it:

Geodata access
Allows an end user to perform replication and Data Extraction in acrmap
Map document with a layer from a Geodatabase

For more information, see the following steps:
1. Import the data to the database through SDE;
2. register the data as a version (register as versioned ...);
3. Load the data In ArcMap (layer from a Geodatabase );
4. If other data is added to ArcMAP, save it as an mxd document;
Data preparation is complete!

Publish Service
In Manager-> services, select "Publish GIS resource" and select release to save the mxd document. You can see that "geodata access" is automatically selected in capabilities.

After the release, the manager automatically creates two services with the same name: map service and geodata service.

Note: here you need to check the pooled parameters of these two services. Generally, pooled is selected when services are released by default, because it is conducive to improving access efficiency (just like the JDBC database connection pool ). However, web-based online editing cannot use pooled. Because the principle of pooled is to create n identical instances when the server program starts, the client directly obtains instances from the pool during access, after use, it is released to the pool for use by other users. Therefore, pooled instances can only be used for read-only operations, or temporary modifications to some attributes of instances. When released, the reset method is called. However, the underlying data in SDE is edited online. Therefore, it cannot be ensured that the first created pooled instance (map service instance in SOC) is exactly the same as the second created pooled instance.
The pooled parameters were not modified during the first release, so that no response was returned when "editingtask" was clicked in the Web application, and no error was reported. Later, I imported the program into eclipse, compiled it, and run it on the console. the following error message reminds me of the above principle:
Severe: At least oneagslocalmapresource with notpooled service is required to display editing task.
2006-12-2714: 45: 59 com. ESRI. ADF. Web. AGS. Tasks. editingtask
Severe: Error while attempting tostart editing COM. ESRI. ADF. Web. adfexception: No layer available.
Create a web application
You can use the Wizard to create a web application in the Manager. The steps are templated. Note the following:
1. In the layers dialog box, select Add the map service we just released.

2. Add an editing task on the "select tasks" tab of tasks. Add other tasks as needed.

3. On the "supporting resources" tab of tasks, select the service with the same name. Note that there are fewer services on this interface than in step 1, and some of them have the same name. Why? Some mxd documents contain some special layers, such as geoprocess and network, and geodata access in this example, after such a map is published, several services with the same name will be created to support special layers in map. The icons here are very confusing, most of which are map service icons.

4. The next step is to configure the editing task:
First, select the data to be edited. Here I only published an SDE layer, so I didn't have to select it (there is only one content in the drop-down box). We can select the edited data version, at that time, five versions were created for the test, and Version1 ~ 3.
The second step is to select the types of operations that can be executed on the client and the options related to the operations. They are all just something as the name suggests.
The last step is to set the conflict handling principle. Here we will set "parent win" and "Row level" by default ".

Note the preceding points. Other steps are similar to those for publishing a common map application.
Instance usage
After the application is created, deploy the application on the server to start the test.
Click "editing" in the task. In the dialog box that appears, select the version of the data to be edited ~ The 3 series comes out. After selecting a version (such as version 1), click "start editing" to submit.

After submission, refresh the map and read the version 1 map from SDE. The editing dialog box is changed accordingly. In the figure above, there is no star in the upper left corner. J. You can also check the prompt "started editing" in the editing dialog box, indicating that the editing has been started successfully.

Next, let's create a new element. Select the tool under "create streets layer from SDE" and draw a triangle next to the pentagram, after the painting, the "editing" toolbar has changed. You can try it yourself. The bottom of the toolbar is the attribute table. We can set its attributes for the newly drawn triangle, just enter a few items. Remember "full_name = triangle I created". This is its label.

After the creation is complete, click "Save edit (s)" to submit the editing result to SDE. Next let's open ArcMap and check it. Drag the data from arccatalog to ArcMap and switch the version to version 1:

Haha, I saw the triangle I just created, and it still has my stamp on it. j
Summary

Web browser-based editing is only available in the serveradvanced version. Because you need to select a version when editing, and the version supports only functions available in the SDE version, I have also tested filegeodatabase, for the result, see the preceding annotations. However, since the user has bought the server, of course there will be SDE.
In the above example, you do not need to add any code. As long as there are no errors in a few key points, the program will be able to come out, we can import it to eclipse for further processing ......


Downloads: 30

Edit in browser


Downloads: 27

View the editing result In ArcMap

 

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.