1. Element Services
Feature services can be used to serve features over the Internet and provide the symbology with which they are displayed. After that, the client can perform query operations to obtain features and perform corresponding edit operations. Feature services provide templates that can be used to improve the client-side editing experience. In addition, feature services can query and edit data in relational classes and nonspatial tables.
To put it simply, the data of the feature service is stored in the database through arcSED. When the client requests the feature service, the server reads the data from the database to generate a picture and returns the picture to the client.
1. Advantages of element services:
Because the data is stored in the database, the feature service implements many functions. For example, when the client modifies the features in the service, the feature service can render and change the color of the layer.
2. Element service requirements
All data must all come from a single arcSED geodatabase
All data must be registered with a geodatabase
If you want to allow editing of the data, you will need write access to arcSED. These permissions must be granted to the arcgis server account when authenticating with OS identity.
Both versioned and unversioned data are supported; however, if you need to use services to edit non-simple types (such as network edges), you need to use versioned data
2. Publishing element services
Publishing feature services generally requires the following steps:
Prepare an arcSDE database (sql server2014 here)
Create a database and upgrade it to a geodatabase
Store the database into the SDE database and set the properties of the data
Register the SDE database with the arcgis server and publish the service
1. Create a new database
2. Open the catalog to connect to the mydb database and add a database connection
Note: The instance name is the Server name in the database (must correspond), then enter the user name, password, and finally select the database mydb we just created
Note: There may be an error here, because we registered an arcgis server account before, and the database should be published under that account. If you want to publish under this user, you need to change the arcgis server to an administrator account.
Published successfully.