简体   繁体   English

如何在openlayers中保存功能

[英]how to save features in openlayers

Using openlayers, I want to add new features to a vector layer and then save that feature in POSTGIS DB. 我想使用openlayers将新功能添加到矢量层,然后将该功能保存在POSTGIS DB中。 I want to achieve this functionality using the save button which comes along with openlayers download. 我想使用openlayers下载随附的保存按钮来实现此功能。 Plz provide some sample code. 请提供一些示例代码。

Have you read this tutorial? 您读过教程了吗? It works, but this way you will need a geoserver between openlayers and postgis, I don't know if it is possible without geoserver. 它可以工作,但是通过这种方式,您将需要在openlayers和postgis之间安装一个geoserver,我不知道没有geoserver是否有可能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM