Table of Contents
WFS-T hay WFS-Transaction: The basic Web Feature Service allows querying and retrieval of features. A transactional Web Feature Service (WFS-T) allows creation, deletion, and updating of features (http://www.ogcnetwork.net/node/1629) Mất 2 ngày tìm hiểu (chính xác là vọc lại). Nãy đã đắc đạo nên Note lại :v Vấn đề của mình là hồi trước đã làm được chức năng insert, edit, delete đối tượng thông qua WFS-T của geoserver. Sau này cài win lại, cài lại Geoserver 2.10.2 thì code không chạy được nữa. Nó cứ báo lỗi thế này: Ở đây mình đang dùng Geoserver 2.10.2 và Openlayers 2x Lỗi không load được feature
Khi insert đối tượng mới cũng lỗi Kiểm tra lỗi trả về thì thấy geoserver báo lỗiCould not determine geoserver request from http request org.geoserver.platform.AdvancedDispatchFilter$AdvancedDispatchHttpRequest@72c56dĐồng thời cũng báo lỗi CROS Domain Sau đó mình dùng plugin Allow-Control-Allow-Origin của chrome nhưng vẫn bị https://chrome.google.com/webstore/detail/allow-control-allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi Sau đó, mình mới tìm hiểu và làm theo hướng dẫn sau: http://wordpress-dbauszus.rhcloud.com/wfs-t-with-openlayers-3-5/ Họ dùng Openlayers 3x và mình vẫn bị lỗi
Could not determine geoserver request from http request org.geoserver.platform.AdvancedDispatchFilter$AdvancedDispatchHttpRequest@114e25dTức mình, mình tìm lại bản Geoserver cũ hơn Cuối dùng dùng bản GeoServer 2.2.5 thì chạy lại code cũ ok (tuy vẫn bị lỗi CROS Domain) Tóm lại:
Warning: Undefined variable $comments_number in /shared/webdir2/dothanhlong.org/wp-content/themes/business-hub/comments.php on line 35
Warning: Undefined variable $comments_number in /shared/webdir2/dothanhlong.org/wp-content/themes/business-hub/comments.php on line 39
0 thoughts on “Note WFS-T Geoserver and Openlayers”