OpenLayer3 modifying layer features in geoserver with WFS with layer read-only problem Resolution (is read-only)

Source: Internet
Author: User
Tags modifier
recently in the Learning Openlayer tutorial, through Openlayer loading GeoServer layer, which encountered the problem and resolved here to do the next record;

One, reference documents:
1. Learn the tutorial for the ' Openlayer Uncle ' of the tutorial, very good, very detailed, in the learning process encountered do not understand also consulted the author's help, very suitable for beginners to learn, address: Modify the features through WFS
2. After encountering the modified layer submission, the network displays 200,context Length:0,is read-only, these issues are in the workaround here
Ii. Concrete Steps
1. Load the SHP format file into the Postgresgis database and publish the loaded layer using the method PostGIS publish the layer in GeoServer, referring to my previous blog;
2. You can load and display the published layers by writing code in the tutorials of Uncle Drag.
3. The specific code is as follows:

<! DOCTYPE html>  

Three, found the problem
1. Loading the map can appear, query features can appear, you can select and edit, click Save, the network transmission correctly without any error, but the return value is empty, the display prompt is "/ows: Exceptiontext>{http://postgregis.com}xian_polygon is Read-only "", guess should be a permission issue, after Baidu, in the second link to find the reference to the method;
Iv. Troubleshooting Steps
1. Open the GeoServer management interface, click on the "Data" tab in "Security" on the left, and click on "Rule path". W ", Check the box under" Grant Access to any role ", click Save, Clean the cache, then click Submit after the change, save the success.

Related Article

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.