ArcEngine , VS.NET , SQLSERVER
淡泊明智,宁静致远~~~
posts - 47,  comments - 35,  trackbacks - 0
转自ESRI的官方文章
http://mandown.co.nz/esri/tips-for-speeding-up-caching-arcgis-server-map-services/

Tips For Speeding Up Caching ArcGIS Server Map Services


  • Upgrade to ArcGIS 9.3.1.  If you have not upgraded to 9.3.1, do it before caching because the file I/O for writing map cache tile images was vastly improved in the latest version. The result is anywhere from 25% to 2000% faster caching. Basically, the simpler the map, the more improvement you’ll see. That’s because simple maps draw faster and therefore file I/O is a larger proportion of caching time.

  • Use more than one computer to cache. If you have the luxury of using several computers to do your caching, break up the caching job first by map level, and, if needed for the largest scales, geographically. Each portion of the job should be done such that tiles are being written to each of the several computers’ hard drives. When the caching is done, then copy the tiles from each machine into a master cache. One tip here is that we bought a software application called Secure Copy by ScriptLogic Corporation which made the job of copying possible for the largest scales where the potential exists to produce millions of map tiles.

  • Set the number of processes to two. We’ve found that two is the optimum number of processes on each computer doing caching (we’ve been using 2 Duo CPUs E8500s each with 4Gb of RAM). One process just doesn’t take full advantage of available CPU and memory. Three processes pin the CPU, but actually produces fewer tiles per hour than two processes. Our theory is that file I/O is maxed out—we’ve been using 250GB and 1TB internal IDE hard drives.

  • Turn off the option for indexing in your cache folder. In the Windows file manager, right-click on your cache folder and select Properties, then click Advanced (Windows XP), and uncheck the option “For fast searching, allow Indexing Service to index this folder”. This will make cache production 15-20% faster.

  • Check your available memory. During our caching processes, we’ve usually got the Windows Task Manager open because we want to know how much memory is being used by the ArcSOC.exe processes that are being used to create the cache. This is especially important if you’ve got other services running on the server, because these services are taking up memory, too, and you want to make sure the caching process, which will be more demanding of memory usage, is not pushing out of your available physical RAM and into your pagefile.sys (which will result in catastrophically slower caching times!)

  • Relocate the server’s pagefile.sys file. Unfortunately, stability of the caching process can be an issue, especially if you have other services running on your server. We’ve found one particularly good practice to minimize unexpected stoppage of our caching processes, which is to relocate the server’s pagefile.sys file onto a dedicated partition, preferably on a disk that is not primarily involved in caching. Minimally, we used to do this for printing large maps because it kept the pagefile.sys file from becoming fragmented, which limited the size of available memory blocks.

  • Avoid having other services running while you are caching – this is really a summarization of the last few tips together!
posted @ 2009-09-17 16:21 peaceful_fish 阅读(263) 评论(2) 编辑
http://blog.myspace.cn/e/404379709.htm

Two roads diverged in a yellow wood,
And sorry I could not travel both
And be one traveller,long I stood
And looked down one as far as I could
To where it bent in the undergrowth;

Then took the other,as just as fair,
And having perhaps the better claim,
Because it was grassy and wanted wear;
Through as for that the passing there
Had them really about the same,

And both that morning equally lay
In leaves no stop had trodden black.
Oh, kept the first for another day!
Yet knowing how way leads on to way,
I doubted if I should ever come back.

I shall be telling this with a sigh
Something ages and ages hence:
Two roads diverged in a wood,and I -
I took the one less travelled by,
And that has made all the difference.

未选之路--罗伯特·费落斯特

黄村中分出两条小路,
可惜我一个人不能同时涉足,
我在路口伫立良久,
向着其中一条翘首极目,
直到它消失在丛林深处。

但我选择了另一条,
芳草待踏,分外幽寂,
同样显得诱人、美丽
虽然这两条路是如此相似,
都几乎没有族人的足迹。

那天清晨落叶满地,
两条都是踩踏的小径,
呵,留下一条路径等下次再走,
但我知道路径延绵没有尽头,
恐怕一走就再难回首。

也许多少年厚后在某地,
我回首往事轻声叹息,
两条道路分散在树林里--
而我选择的那条更少人迹,
从此决定了我人生的迥异。

posted @ 2009-09-07 11:29 peaceful_fish 阅读(1263) 评论(0) 编辑
(1)简单工厂模式:
      概括:“类工厂”通过“反射机制”生产“产品接口的具体实现产品类”
      具体:造车厂 造 汽车(implements for 车)
      关键:与普通模式相比,引入了 “产品是由工厂生产的”这一概念;利用“反射机制”使得类名通过参数传递,从而使得添加,删除,修改“具体产品类”时,不必修改“生产函数”的内部代码,只需要关心传递正确的类名参数。
(2)工厂模式:
      概括:“工厂接口的具体实现工厂类”通过“反射机制”生产“产品接口的具体实现产品类”
      具体:汽车厂(implements for 车厂) 造  汽车(implements for 车)
              公交车厂(implements for 车厂) 造  公交车(implements for 车)
      关键:与“简单共产模式”相比,引入了“工厂类都是由工产接口具体实现而来”这一概念,设计更为合理,其“工厂接口”能够抽象出“各种具体工厂实现类”的统一行为与方法。
      例子图:


      原文中的话:
      工厂方法模式和简单工厂模式在结构上的不同是很明显的。工厂方法模式的核心是一个抽象工厂类,而简单工厂模式把核心放在一个具体类上。
      工厂方法模式可以允许很多具体工厂类从抽象工厂类中将创建行为继承下来,从而可以成为多个简单工厂模式的综合,进而推广了简单工厂模式。
(3)抽象工厂模式:
      概括:“工厂接口的各种具体实现工厂类”通过“反射机制”生产“多种产品接口的具体实现产品类”
      具体:私家车厂(implements for 车厂) 造 奔驰(implements for 车)和福特(implements for 车)
              公交车厂(implements for 车厂) 造 大型公交车(implements for 车)和小型公交车(implements for 车)
      关键:与“共产模式”相比,引入了“具体工厂实现类不是仅能够造一种产品接口的具体实现类,而是能够造多种产品接口的具体实现类”这一概念,更贴近客观现状,扩充了应用性。
      例子图:

(5)门面模式:
      概念:每个“门面”都有一个“接待员”,该“接待员”负责所属子系统的所有行为与方法
      例子:去医院看病,“挂号”需要“START”,“STOP”,“OVER”三个过程。。。设置一个“挂号接待员”,由其统一规划“挂号”子系统所涉及的所有行为及方法,对于上层只暴露一个简单供调用的接口。
      本质:从下往上层层“封装”控制
      例子图:



(6)代理模式:
      概念:通过在“客户端”与“真实主题角色”之间设置“代理主题角色”,来帮助“真实主题角色”实现客户端的需求。
      举例:通过设置“电脑代理商”来帮助“电脑生产商”将电脑更好地销售给“客户”
      设计的几个名词:
      1.抽象主题角色:声明了真实主题与代理主题的共同接口(共有的特性);
      2.代理主题角色:含有对真实主题角色的引用(操作真实主体对象),代理角色通常在将客户端调用传递给真实主题对象的之前或者之后都会执行某些操作(方法),而不是只单纯的返回真实的对象,比如 代理商销售电脑时候还会附加一些优惠条件;
      3.真实主题角色:定义了代理角色所代表的真是对象。
      例子图:


学习内容来自《JAVA与模式》
posted @ 2009-08-17 14:23 peaceful_fish 阅读(190) 评论(0) 编辑
1.JAVA的反射机制是使其具有动态特征的非常关键的一种机制,也是在JAVABEAN中广泛应用的一种特征
2.顾命思义,反射 是Reflection的中文解释,它是JAVA程序开发语言的特征之一,允许“运行中”的JAVA(注意:不是编译,而是运行,更为灵活)程序对自身进行检查,或者说“自审”,“自我反射”,并能直接操作程序的内部属性,例如它能获得JAVA类中各成员的名称,类型等并将其显示出来。
3.JAVA的这一能力在实际应用中也许用得不是很多,但是在其它程序设计语言中根本就不存在这一特征,例如Pascal , C 或者 C++ 中就没有办法在程序中获得函数定义相关的信息。
4.反射机制 允许运行中的JAVA程序对自身检查使得“创建类对象时候 类名作为参数指定,程序里面根本不出现”,“将方法名称作为参数,传递入特定函数动态执行该方法”,“将字段(域)名称作为参数,传递入特定函数动态改变字段(域)的数值”等成为可能。

详见 百度百科 对于“JAVA的反射机制的例子解释”。
http://zhidao.baidu.com/question/17425148.html

总结来说:JAVA反射机制  具有动态性  
                     用得比较多的就是class.forName(className):将类名作为字符串参数传递,动态创建并实例化该类对象,进而操作
                        可以看下 设计模式中的“简单工厂模式”,其中会用到 JAVA反射机制
posted @ 2009-08-16 00:03 peaceful_fish 阅读(177) 评论(0) 编辑
MVC的概念可以上 百度百科 查下
MVC是用于Web开发一种框架设计模式,实现了 页面设计 与 后台处理 之间的逻辑分离,健壮性,扩展性 (一大堆好的词汇都可以用上去)强
MVC 可以用于 Java Web Project ,开发多了,前人们就帮我们封装提供了Spring , Hibenate ,Structs等框架
      也可以用于 .Net Web Project  ,开发多了,前人们就帮我们封装提供了 ASP.NET MVC框架
今天,看了部视频,结合以前不多的开发经验,予以以下总结:





(1)MVC即 Model <-> Controller <-> View 
            MVC用于JAVA的Web开发:Servlet 即Controller,JSP 即 View,JavaBean 即 Model
(2)Servlet与JavaBean本质上都是Java类,Serlvet特殊点(是继承了HttpServlet的Java类)
(3)三者各斯其职:JSP用于页面UI Work , JavaBean用于连接数据库等复杂操作 , Servlet作为Controller实现客户端与后台间的控制协调作用
(4)一个良好的项目框架中,其Servlet中最好只有以下一些代码内容:
        1.接受参数
        2.调用JavaBean,比如用JDBC数据库进而操作
        3.页面跳转——有许多方法,注意比较,如response.sendDirect() ,resquestDispatcher , AJAX等
        4.一些简单的逻辑判断

以上为 网上下载的《MVC设计模式》视频下载学习后感受~~~欢迎指教
posted @ 2009-08-15 17:17 peaceful_fish 阅读(222) 评论(3) 编辑
摘要: (1)空间插值方法汇总转载自WillWayer http://www.cnblogs.com/willwayer/archive/2009/07/04/1516730.html(2)ArcEngine介绍转载自 http://www.cnblogs.com/chenjq/archive/2009/07/10/1520565.html阅读全文
posted @ 2009-08-12 13:41 peaceful_fish 阅读(310) 评论(0) 编辑
摘要: 静态项目视频教程: http://mdl5.mydown.com/23/tests/200905/wyzzjc.rarASP实例开发视频教程: http://mdl5.mydown.com/23/tests/200905/qywzkf.rarFireworks8视频教程: http://mdl5.mydown.com/23/tests/200905/fw.rarWindows视频教程: http:...阅读全文
posted @ 2009-06-19 21:51 peaceful_fish 阅读(258) 评论(0) 编辑
摘要: 开源GIS---.Net系列 [转载自 の峁卯の ]NASA World WindNASA World Wind是使用.NET开发的一个Windows窗体系统,以地球外观看得角度提供全球定位功能,类似于Google Earth。它结合了美国国家航空航天局(NASA)从卫星拍摄的图像,这些图像应用于Blue Marble, Landsat 7, SRTM, MODIS 以及其它更多的地方。链接:ht...阅读全文
posted @ 2009-06-09 00:11 peaceful_fish 阅读(900) 评论(2) 编辑
摘要: Michael F. GoodchildMichael Frank Goodchild教授是美国科学院地理信息科学院士,现任加州大学圣巴巴拉分校地理系教授。1965年获得剑桥大学(Cambridge University)物理学学士学位,1969年获得麦克马斯特大学(McMaster University)地理学博士学位。在加拿大西安大略大学(University of Western Ontar...阅读全文
posted @ 2009-05-20 13:39 peaceful_fish 阅读(275) 评论(2) 编辑
摘要: 研究生应当常去的网站 1. 小木虫(http://emuch.net/) 推荐理由:里边有不少学术科研用得到的资料,且全部为免费的。 2. 国家自然科学基金(http://www.nsfc.gov.cn/Portal0/default40.htm) 推荐理由:堪称中国科学研究的风向标。 3. 國家圖書館--全國博碩士論文資訊網(http://etds.ncl.edu.tw/theabs/index...阅读全文
posted @ 2009-05-20 13:13 peaceful_fish 阅读(143) 评论(0) 编辑
每天进步一点点~~~   
昵称:peaceful_fish
园龄:3年7个月
粉丝:1
关注:1

<2012年2月>
2930311234
567891011
12131415161718
19202122232425
26272829123
45678910

搜索

 
 

常用链接

随笔分类

随笔档案

3S网站

友情链接

园内好友链接

最新评论

阅读排行榜

评论排行榜

推荐排行榜