首页 / 浏览问题 / 组件GIS / 问题详情
应用此程序替换模型部分构件,为什么属性信息无法同步更新?
14718176...  (38EXP)  初出茅庐
4月14日, 2018
public void RecordsetSample(Workspace workspace)
        {           
            DatasetVector dataset_world = workspace.Datasources[0].Datasets["圆柱"] as DatasetVector;
            DatasetVector dataset = workspace.Datasources[0].Datasets["柱"] as DatasetVector;           
            Recordset recordset = dataset.Query("SmID=1", CursorType.Dynamic);
            Recordset recordset_world = dataset_world.Query("SmID=1", CursorType.Dynamic);            
            recordset.MoveFirst();         
            Geometry geometry = recordset.GetGeometry();
            recordset_world.Edit();
            recordset_world.SetGeometry(geometry);
            recordset_world.Update();
            recordset_world.Refresh();           
            recordset.Close();
            geometry.Dispose();
            recordset.Dispose();
            recordset_world.Dispose();
        }

1个回答

您好,可以参考该问题回复http://qa.supermap.com/22020

胡林  (5,985EXP)  登峰造极
4月16日, 2018
非常感谢!
...