/// <summary>
        /// 从图层名称根据属性条件查询记录集
        /// </summary>
        /// <param name="MapObj">地图控件</param>
        /// <param name="LayerName">图层名称</param>
        /// <param name="Attribute">查询属性</param>
        /// <param name="HasGeometry">是否包含几何对象</param>
        /// <param name="Cursor">游标模式</param>
        /// <returns></returns>
        public static Recordset GetRecordsetByDatasource(this DatasetVector DvSet, string Attribute, bool HasGeometry, CursorType Cursor)
        {
            QueryParameter queryParameter = new SuperMap.Data.QueryParameter();

            queryParameter.AttributeFilter = Attribute;
            queryParameter.CursorType      = Cursor;
            queryParameter.HasGeometry     = HasGeometry;
            Recordset rcd = DvSet.Query(queryParameter);

            return(rcd);
        }
        /// <summary>
        /// 从图层名称根据属性条件查询记录集
        /// </summary>
        /// <param name="MapObj">地图控件</param>
        /// <param name="LayerName">图层名称</param>
        /// <param name="Attribute">查询属性</param>
        /// <param name="HasGeometry">是否包含几何对象</param>
        /// <param name="Cursor">游标模式</param>
        /// <returns></returns>
        public static Recordset GetRecordset(this Map MapObj, string LayerName, string Attribute, bool HasGeometry, CursorType Cursor)
        {
            DatasetVector  dvSet          = (DatasetVector)MapObj.Layers[LayerName].Dataset;
            QueryParameter queryParameter = new SuperMap.Data.QueryParameter();

            queryParameter.AttributeFilter = Attribute;
            queryParameter.CursorType      = Cursor;
            queryParameter.HasGeometry     = HasGeometry;
            Recordset rcd = dvSet.Query(queryParameter);

            return(rcd);
        }
        /// <summary>
        /// 从图层名称根据属性条件查询记录集
        /// </summary>
        /// <param name="MapObj">地图控件</param>
        /// <param name="LayerName">图层名称</param>
        /// <param name="Attribute">查询属性</param>
        /// <param name="HasGeometry">是否包含几何对象</param>
        /// <param name="Cursor">游标模式</param>
        /// <returns></returns>
        public static Recordset GetRecordsetByIntersect(this Map MapObj, string LayerName, Geometry Geo, string Attribute, bool HasGeometry, CursorType Cursor)
        {
            Geometry query = Geo.Clone();

            DatasetVector  dvSet          = (DatasetVector)MapObj.Layers[LayerName].Dataset;
            QueryParameter queryParameter = new SuperMap.Data.QueryParameter();

            queryParameter.AttributeFilter    = Attribute;
            queryParameter.CursorType         = Cursor;
            queryParameter.HasGeometry        = HasGeometry;
            queryParameter.SpatialQueryMode   = SpatialQueryMode.Intersect;
            queryParameter.SpatialQueryObject = query;
            Recordset rcd = dvSet.Query(queryParameter);

            return(rcd);
        }