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);
}
}
查看全文
相关阅读:
go 学习笔记---chan
golang学习笔记---Goroutine
golang ---Learn Concurrency
golang ----并发 && 并行
golang 学习笔记 使用cmd
并发程序与并行程序
golang学习笔记 ---interface
golang --- map如何判断key是否存在
golang学习 ---defer语句
golang --for语句
原文地址:https://www.cnblogs.com/jetz/p/261700.html
最新文章
java生成excel文件
js实现打开本地文件或文件夹
js 获得radio的值
js选择目录
js连续指定两次或者多次的click事件(解决办法)
Packet for query is too large(1767212 > 1048576)mysql在存储图片时提示图片过大
java session 详解
URL中的特殊字符
让div垂直以及水平居中浏览器窗口
Ajax在IE浏览器会出现中文乱码解决办法
热门文章
课堂上用人脸识别“记录分析”学生表情?我反对!
jetbreains的crack方法
少惠林路由器配置
项目中要使用到的单人和多人选择功能办法
联通HG8321R光猫开路由破解详细步骤
家中电信宽带的帐号
关闭firefox火狐浏览器下载完成时自动扫描(49.0.2以后版本)
修改项目人员密码与帐号
Layui外部js修改表格内容
上线时需要的脚本
Copyright © 2011-2022 走看看