• mapxtreme2005 改变选中的图元样式


    mapxtreme2005 改变选中的图元样式

    MapInfo.Styles.CompositeStyle compositeStyle = GetOpaquesStyle(false, System.Drawing.Color.Blue);

                if (map != null)
                {
                    if (map.Layers[SysCommon.TempTableAlias] != null)
                    {
                        map.Layers.Remove(SysCommon.TempTableAlias);
                    }
                    if (map.Layers[SysCommon.TempLayerAlias] != null)
                    {
                        map.Layers.Remove(SysCommon.TempLayerAlias);
                    }
                }
                MapInfo.Engine.Session.Current.Catalog.CloseTable(SysCommon.TempTableAlias);

                MapInfo.Data.Table newtable = CreateCustomerTempTable(SysCommon.TempTableAlias, LayerAlias);
                MapInfo.Data.MIConnection conn = new MIConnection();
                conn.Open();
                MapInfo.Data.MICommand comm = conn.CreateCommand();
                comm.CommandText = "delete " + SysCommon.TempTableAlias;
                comm.Prepare();
                comm.ExecuteNonQuery();

                foreach (Feature ftr in irfc)
                {
                    comm.CommandText = "insert into " + newtable.Alias + " select * from " + LayerAlias + " where MI_Key ='" + ftr.Key + "'";              
                    comm.ExecuteNonQuery();              
                }                 
                conn.Close();
                (map.Layers[SysCommon.TempTableAlias] as FeatureLayer).Modifiers.Clear();
                MapInfo.Mapping.FeatureOverrideStyleModifier fsmtemp = new MapInfo.Mapping.FeatureOverrideStyleModifier(null, compositeStyle);
                (map.Layers[SysCommon.TempTableAlias] as FeatureLayer).Modifiers.Append(fsmtemp);

  • 相关阅读:
    Centos 下oracle 11g 安装部署及手动建库过程
    MongoDB 存储引擎Wiredtiger原理剖析
    有关RDS上只读实例延时分析-同适用于自建MySQL主从延时分析判断
    windows 下my.ini的配置优化
    什么是purge操作
    linux内核调优参考
    通过第三方镜像仓库代理下载镜像
    微积分拾遗——链式法则
    Java中的RASP实现
    机器学习是什么
  • 原文地址:https://www.cnblogs.com/googlegis/p/2978843.html
Copyright © 2020-2023  润新知