首页 / 浏览问题 / 组件GIS / 问题详情
应用此程序替换模型部分构件,为什么属性信息无法同步更新?
38EXP 2018年04月14日
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 2018年04月16日
非常感谢!
...