ArcGIS API for JS Publishing feature service

Source: Internet
Author: User

1. Introduction

If we want to implement feature additions and deletions on the web side, we need to use the feature service (Featureservice), this article will show you how to publish the feature service.

1.1 What is a feature service

Before publishing, let's look at the feature service: Feature services can be used to provide features over the Internet and provide the symbology to use when displaying features. The client then executes the query operation to get the features and perform the appropriate edits. Feature services provide templates that you can use to improve the client editing experience. In addition, feature services can query and edit data in relationship classes and non-spatial tables. This is a description of the official documentation.

1.2 What is ArcSDE

From the above instructions we can get a message that the main function of the feature service is to enable the user to manipulate the features. Here we should think about where the results of the operation should be kept. Although ArcGIS has its own database, it is a single-user-level database and cannot be accessed concurrently by multiple users. A multi-user-enabled database involves some enterprise relational databases (such as Oracle, SQL Server, and so on) that transform the content in the GIS database into enterprise-level data that needs to be used in ArcSDE.

Thus, ARCSDE is the gateway to an enterprise-class database of ArcGIS databases, and through ARCSDE we can easily manage a shared, multi-user spatial database in a GIS database.

2. Preparing the Environment
    • SQL Server 2008
    • ArcCatalog
    • ArcMap
    • ArcGIS Server 10 (ArcSDE included)
    1. Steps
3.1 Creation of spatial geodatabases

Open ArcCatalog and create an enterprise Geodatabase using the Create Enterprises Geodatabase tool in ToolBox

This is a description of some of the parameters

Then connect to the database you just created

3.2 Registration of the database

Import features that need to be published

Set access permissions for data

Click the Add button to add the user you can access, and finally assign an executable action to each user

Before the service is released, the database needs to be registered with ArcGIS Server, so that we can add or delete the feature to the database that it was saved to.

Right-click the GIS server that we need to register to, and select the server Properties option.

Switch to the Data Store tab, click the + button, add the database, and then click the Import button on the Register Database page to import the newly registered databases.

When a green tick is present in front of the database, it indicates a successful registration.

Note: The above operations are performed in ArcMap or ArcCatalog.

3.3 Publishing Feature Services

The publishing feature service is much simpler than the previous preparation, and the overall process is similar to publishing a dynamic service.

First, create a new layer and add the features imported to the database to the map. Then, click File-Share as-service, after connecting to the GIS server, tick Feature Access on the Capabilities tab, click the Analyze button to make sure there are no errors and then click Publish Publish Service 。

After the publication is successful, we can view and modify the feature service in the GIS Server Manager.

ArcGIS API for JS Publishing feature service

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: 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.