Selection[] mSelection;
Recordset mSelecteRecordset;
mSelection = m_MapControl.Map.FindSelection(true); //地图的选择集
Point mPoint = m_MapControl.Map.MapToPixel(BoolnPoint); //地图坐标转换为像素坐标
if (mSelection.Length > 0)
{
mSelecteRecordset = mSelection[0].ToRecordset(); //选择集转为记录集
BoolnPoint = new Point2D(Convert.ToDouble(mSelecteRecordset.GetFieldValue("SmX")), Convert.ToDouble(mSelecteRecordset.GetFieldValue("SmY")));
执行该句代码是提示错误,求解答》》
“System.ArgumentException”类型的异常在 SuperMap.Data.dll 中发生,但未在用户代码中进行处理