zoukankan
html css js c++ java
复制到浮动层,强调显示某个(多个)区域
//
强调显示某个区域
public
void
EmphasisRegion(
string
ShowType,
string
ShowKey,Map map)
{
MapInfo.Geometry.DRect bd
=
new
DRect(
0
,
0
,
0
,
0
);
(_tempTable
as
IFeatureCollection).Clear();
//
清空
foreach
(Feature ftr
in
MapInfo.Engine.Session.Current.Catalog.GetTable(ShowType) )
{
if
(ftr[
"
f_name
"
].ToString()
==
ShowKey)
{
//
Feature ftr =MapInfo.Engine.Session.Current.Catalog.SearchForFeature(ShowType,MapInfo.Data.SearchInfoFactory.SearchWhere("f_name='"+ShowKey+"'") );
//
if(ftr==null)return;
//
样式
SimpleInterior si
=
new
SimpleInterior(
2
,System.Drawing.Color.BurlyWood);
SimpleLineStyle sl
=
new
SimpleLineStyle(MapInfo.Styles.PatternStyle.FDiag ) ;
sl.Color
=
System.Drawing.Color.SaddleBrown ;
AreaStyle ars
=
new
AreaStyle(sl,si);
if
(ftr.Geometry.GetType().ToString()
==
"
MapInfo.Geometry.MultiPolygon
"
)
{
Feature f
=
(Feature)ftr.Clone();
f.Style
=
ars;
_tempTable.InsertFeature(f);
if
(bd.x1
==
0
&&
bd.y1
==
0
&&
bd.x2
==
0
&&
bd.y2
==
0
)
bd
=
new
DRect(f.Geometry.Bounds.x1,f.Geometry.Bounds.y1,f.Geometry.Bounds.x2,f.Geometry.Bounds.y2);
else
bd.MergeRects(f.Geometry.Bounds);
}
}
map.SetView(bd,ftr.Geometry.CoordSys);
}
}
查看全文
相关阅读:
C语言指针入门
c的动态内存管理
汇编入门基础与helloworld
汇编1
汇编2——完整的例子集合
算法与数据结构——选择,插入,希尔排序
MySQL
MySQL 笔记
CSS样式优先级
GIT使用笔记
原文地址:https://www.cnblogs.com/jetz/p/261700.html
最新文章
ckeditor富文本编辑器支持从word复制粘贴保留格式和图片的插件
百度umeditor富文本编辑器支持从word复制粘贴保留格式和图片的插件
百度ueditor富文本编辑器支持从word复制粘贴保留格式和图片的插件
百度富文本编辑器支持从word复制粘贴保留格式和图片的插件
python web开发——django学习(一)第一个连接mysql数据库django网站运行成功
django.db.utils.OperationalError: (1251, 'Client does not support authentication protocol requested ...
python web开发Django连接mysql
()中断和异常的再总结
PAT 甲级 1147 Heaps (30 分) (层序遍历,如何建树,后序输出,还有更简单的方法~)...
chaper3_exerise_Uva1568_Molar_Mass_分子量
热门文章
chaper3_exerise_Uva1225_digit_counting
chaper3_exerise_Uva1368_DNA序列
chaper3_exerise_UVa455_周期串
日期计算
简单的黑白棋游戏
数式计算(递归解法)_四则运算
UVa1592_数据库
作业_纯虚函数的应用_继承_单向链表_员工信息
BigInteger类型的解析_超详细解析
CentOS7.1 KVM虚拟化之环境准备
Copyright © 2011-2022 走看看