首页 / 浏览问题 / 云GIS / 问题详情
forOpenlayers如何修改GIS中数据
csy
22EXP 2019年02月13日

forOpenlayers如何修改GIS中数据

image

1个回答

你好,请问你原本的面数据里面有用地性质之类的属性吗?如果有的话可以首先获取到这块要素,然后通过feature.setProperties({属性名:属性值})改变这块要素的属性 然后调用要素服务new ol.supermap.FeatureService 里面的editFeatures服务,在传入SuperMap.EditFeaturesParameters参数是修改里面的editType为update即可   。这样就让你udb里面的面数据集属性也随之更改了  可参考http://iclient.supermap.io/examples/openlayers/editor.html#02_editFeatures

3,352EXP 2019年02月13日
...