Webgis ArcGIS Server Publishing feature Service process resolution for online feature editing

Source: Internet
Author: User

Webgis ArcGIS Server Publishing feature Service process resolution for online feature editing

Featureservice, also known as feature services, has the greatest benefit of supporting online feature editing and updating edits to a database in the background, which requires ARCSDE to provide access support for the geodatabase. Therefore, the source of the features in the feature service must be from ARCSDE.

For a detailed description of the feature service, refer to the official website documentation:

Http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#/What_is_a_feature_ Service/009300000020000000/

Description

Native development environment:

ArcGIS Server 10.0

ArcSDE 10.0 for MSSQL EXPRESS R2

Prerequisites for this article: ARCSDE has been installed and a database connection has been successfully established in Arccatalog. :

First, prepare the data: Add custom point features in ArcSDE

As a test, here we create a new Point feature class (other features like the rationale) in the native ArcSDE that represents a point source of pollution. The process is as follows:

Enter the point feature name, and alias, and click Next.

Select the coordinate system, because eventually we want to display in the Web map, so here we chose Webmecator. Then click Next, select the default tolerance setting, and click Next to set the feature field.

As shown above, here we add a series of fields as shown above, containing the source number, name, latitude, discharge concentration value, responsible person, running status, contact person, etc.

Then click OK to finish adding the point features.

2. Add a domain for the ARCSDE database (this step is optional)

For an introduction to domains, refer to the official documentation:

Http://help.arcgis.com/en/arcgisdesktop/10.0/help/#/A_quick_tour_of_attribute_domains/001s00000001000000/

Because when you edit a feature, the attribute value (field) of a feature can only be a certain type, or one of a range, or some value. As a result, we are not allowed to enter it at random to ensure that the data is not compromised. Then there is a need to restrict user input. For example, the operating state of the source can only be: off or running. cannot be a different value. So here we need to use the domain to make sure the user is entering the correct value and updating it into our database in the background. Here's how:

Right-click the Geodatabase, select Properties

Add the domain value as shown below

The above process can be referred to:

Http://help.arcgis.com/en/arcgisdesktop/10.0/help/#/Creating_a_new_attribute_range_domain/001s00000003000000/

Http://help.arcgis.com/en/arcgisdesktop/10.0/help/#/Creating_a_new_coded_value_domain/001s00000004000000/

3. Apply the attribute field to the newly created point feature.

Right-click the feature, select Properties, under the Fields panel, tap each field, and the domain option below will apply the domain we just created to the corresponding field. For example, if we click on the Run Status field, we can set its domain to the value of the property named state we created earlier. As shown in the following:

This way, the Sourcestate property value can only be run or closed. So that the user can not enter other illegal values, to ensure the correctness of the data.

4. Create a new MXD document and add the point features we created earlier in ArcSDE.

Open ArcMap to create a new MXD document and add our new point features in the ARCSDE database.

Above we see sources of pollution from the SDE database, followed by the establishment of the source of the symbolic system. Right-click Pollution sources--select Properties

Click Symbol

Select the appropriate symbol and click OK. Now the symbol has become the style we set. The style that is set here is also the default style after you add a point feature (source) to the Web.

Save an MXD document, publish it, publish it in Arccatalog, or publish it directly in ArcMap. Procedure: Select the document you just saved in ArcMap, right-click Publish to ArcGIS Server

Set GIS service-related options

Enter the server name, select the GIS service, and then click Next.

Be sure to tick feature Access, which means that the feature service is enabled. You can also enable other GIS services. Then click Next to complete the publishing process.

Reprinted from: http://www.cnblogs.com/potential/archive/2012/11/03/2752796.html

Webgis ArcGIS Server Publishing feature Service process resolution for online feature editing

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.