Feature access rest online editing layers using ArcGIS for server

Source: Internet
Author: User

How to enable feature access can refer to a previously written blog: http://www.cnblogs.com/oceanking/p/3895257.html

This article focuses on a whole point of the layer, I do not know what the scientific name is called, too lazy to find, with the Worldcities map from ArcGIS, edit the cities layer.

First, find the rest URL

1. Note The main points in "Feature Access" and then click the rest URL link below.

2. Open the page to find layers: Click on the link to edit the layer, here click Cities.

3. Open the page to the bottom, you can see a variety of action links. This page does not close, the following various operations from this page point past.

Second, the operation

Notice that the 3rd page that you just opened, with fields defined as follows:

Where Objectid should be the primary key and will be generated automatically.

Fields marked as nullable:true can be filled without a value. The JSON format is as follows

[{"Geometry": {"X": $, "Y": +}, "attributes": {"City_name": "HelloWorld", "POP": 10000000}]

Yes, the value of attributes is the name of each field and its corresponding value, which is a record. Geometry represents the coordinates of this point, X is the longitude, and Y is the dimension.

1. Add a point:

Click "Add Features" to fill in the Features input box of the new page:

[{"Geometry": {"X": $, "Y": +}, "attributes": {"City_name": "HelloWorld", "POP": 10000000}]

Format Selection JSON

Click the "Add Features" button to complete.

If you see the page as shown below, it indicates success.

Where Objectid is the auto-generated ID of the point just added, this ID can be used to do the modification and delete operations.

Success:true indicates that the operation was successful.

2. Modification: Documents to be perfected

3. Delete: Document to be perfected

Feature access rest online editing layers using ArcGIS for server

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.