我要快乐,健康的生活

桃花坞里桃花庵,桃花庵下桃花仙。桃花仙人种桃树,又摘桃花换酒钱。

网上资料

from http://bbs.esrichina-bj.cn/esri/viewthread.php?tid=88270

private IFeatureLayer GetSelectionLayer(IFeatureLayer pFeatureLayer, IGeometry pGeometry, bool bXZQ)

        {

            try

            {

                if (pFeatureLayer != null && pGeometry != null)

                {

                    IQueryFilter pQueryFilter;

             &n

可见,

            //使县图层可见,这个县是第一图层,注意是0.二不是名字,

            ESRI.ArcGIS.ADF.Web.DataSources.IMapFunctionality mapFunct = map.GetFunctionality("MapResourceItem0");

            mapFunct.SetLayerVisibility("0", true);

不可见

            //使县图层不可见,这个县是第一图层,注意是0.二不是名字,

            ESRI.ArcGIS.ADF.Web.DataSources.IMapFunctionality mapFunct = map.GetFunctionality("MapResourceItem0");

            mapFunct.SetLayerVisibility("0", false);

 //这个地方有点奇怪 layerID ---"0"是字符型,不知道这个为什么是

有篇论文审稿半年了,状态变成Required Reviews Complete 也已经

20多天了,本来以为是审稿结束了,网上查了下:

The Editorial Office can set a specific number of reviews to be completed for a particular paper, for EES to automatically change the status to Required Reviews Completed.

This number of required reviews to be completed, may be lower than the number of actual Reviewers invited. This allows for EES to automatically process the paper for the Editor to take further action.

This does not necessarily mean an editorial decision will be made for the paper. The Editor will communicate with 

http://clustrmaps.com/zh/index.htm

这里可以申请,可以用地图标注所有你的网站访问者位置,如所示: http://www.cnblogs.com/wenjl520/archive/2009/06/02/1494150.html

我自己也盛情了

<div id="clustrmaps-widget"></div><script type="text/javascript">var _clustrmaps = {'url' : 'http://hi.baidu.com/new/haoyongsheng', 'user' : 1015883, 'server' : '4', 'id' : 'clustrmaps-widget', 'version' : 1, 'date' : '2012-05-20', 'lang' : 'zh', 'corners' : 'square' };(function (){ var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = 'http://www4.clustrmaps.com/counter/map.js'; var x&nb

文章图片

文本标注,很多人都讨论过这个问题,我们要做的是有选择性的标注,比如说只标注安徽省,最重要的只有一句代码: pAnnoLayerProps.WhereClause = "NAME_1='" +provincename+ "'";

 我们先建立一个县-市-省三级join,(我的前面blog谈到过这个问题)

属性表的部分字段显示如下:

/// <summary>

/// 在 Map1 上显示指定图层指定区域layerName的字段field,

/// </summary>

/// <param name="Map1"></param>

/// <param name="provincename">指定省份</param>

/// <param name="layerName">在这个图层上标注</param>

/// <param name="field"></param>

///  <param name="showresult"> 如果为true显示标注,否则不显示标注</param>

/// <returns></returns>

private string hysshowLabel(ESRI.ArcGIS.ADF.Web.UI.WebControls.Map Map1, string  provincename, string laye

文章图片

在arcgis里在这样的状态发布了地图,后来执行

            Map1.ZoomToFullExtent();

           Map1.Refresh();

或者  Map1.ZoomToDefaultExtent();

的到的地图都不是全国的地图,只是部分地图,在这个样式下发布

一切正常。细想了下,这个地图当前的大小跟发布有关系,发布后,是以当前比率为default

文章图片

从网上下载的,1:400中国地图,包含省,市县,三级信息,我想做的是在县级加上两个字段分别表示市和省。

步骤如下:

下载地图,如此设置:

市于省join,保存为cityprovince.shp

将县与cityprovince关联生成countrycityprovince.shp(注意选择的不同 2)

属性太多,删除不必要属性,

文章图片

这个工作主要是有两个作用:

1标注在一定范围内显示,比如说中国的地图,如果放得太小,就不用显示县的名字,放得比较大,显示县的名字

2图层一定比率下显示。

以arcmap 为例:

 上图设置如果,比例尺字啊1:20,000,000和 1:40,000,000之间就显示

(顺便提下,上图最上面的1:18,648,304即是比率尺,可以根据这个自己调试到自己满意),

几个测试:

(有个疑问,就是并不是所有的地图能显示比率迟的,比如说从网上官方下载的中国地图,没显示比例尺,不知道为什么)

文章图片

这个代码的启示主要是来自刘光的书。

 <ToolbarItems>:中

                <esri:Tool ClientAction="Point" DefaultImage="~/Images/Toolbar/identify_1.jpg" HoverImage="~/Images/Toolbar/identify_2.jpg"

                    JavaScriptFile="" Name="MapIdentify" SelectedImage="~/Images/Toolbar/identify_3.jpg"

                    ServerActionAssembly="App_Code" ServerActionClass="MapClickIdentifyPoint" Text="Identify"

                    ToolTip="点查询" />

MapClickIdentifyPoint :

using System