如下,进行查询后的结果 实现点击表格中的内容可定位到数据。如下代码
public void FlyToDataValve(Int32 row)
{
Recordset selected = null;
try
{
Int32 id = row + 1;
selected = m_pipeNet.ChildDataset.Query("SMID = " + id, CursorType.Static);
Geometry3D geometry = selected.GetGeometry() as Geometry3D;
if (geometry.Type==GeometryType.GeoPoint3D)
{
Camera camera = new Camera();
camera.Longitude = geometry.InnerPoint3D.X;
camera.Latitude = geometry.InnerPoint3D.Y;
camera.Altitude = 2;
m_sceneControl.Scene.Fly(camera, 10);
DisplayBubbleQuery(geometry, id);
}
else
{}
如图所示,实现不了单击表格内容的ID进行查询后判断是点还是线数据集。即我用线数据集进行查询,得到的判断还是点数据集