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);
}
}
查看全文
相关阅读:
第一个EJB示例
Visual Studio/Eclipse调用 JBoss5中的WebService
TomEE
eclipse 启动时使用指定的jdk
Haskell示例
安装VS2010 SP1后,再安装mvc3
Mysql报错为1366的错误的时候
Java8-如何将List转变为逗号分隔的字符串
IDEA连接mysql又报错!Server returns invalid timezone. Go to 'Advanced' tab and set 'serverTimezone' prope
he last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
原文地址:https://www.cnblogs.com/jetz/p/261700.html
最新文章
Qt 等待一段时间例如1s
串口拔插之后开头数据读取不到的问题
windows系统添加服务命令
UE4 Multiplayer多人局域网LAN联机打包参数设置
UE4关于编译配置的参考(Debug,DebugGame,Development,Shipping,Test等)
UE4与Visual Studio版本对应关系
UE打包32位程序遇到Win32 is not a supported platform for MindWaveEditor. Valid platforms are Win64.
TArray<uint8>转FString
Nagios+zabbix+ganglia的相关参数分析和优缺点介绍
zabbix安装
热门文章
自动化监控利器-Zabbix
ubuntu dhcp修改ip地址
NFV技术中遇到的新名词
SSH端口映射
How can I determine the URL that a local Git repository was originally cloned from?
phalcon 前端代码结构
sql之left join、right join、inner join的区别
No handlers could be found for logger "keystoneauth.identity.generic.base"
Windows 7 Path环境变量255限制的解决办法,SUBST
Unix删除当前目录可执行文件
Copyright © 2011-2022 走看看