摘要: Introduction Web application data access layers have evolved over time to provide increasing flexibility and maintainability in software architecture. Often, many web applications begin by manually maintaining database connections and SQL query strings. However, as architecture designs grow, more we 阅读全文
posted @ 2011-01-18 09:52 zhh 阅读(2135) 评论(0) 推荐(0)
摘要: Jordan van Gogh describes a way to manage ObjectContext lifespan and scope in the Business Logic Layer (BLL) of a small to medium sized ASP.NET web application.IntroductionSince the introduction of th... 阅读全文
posted @ 2010-11-12 11:31 zhh 阅读(947) 评论(0) 推荐(0)
摘要: 对给定的n+1个点,可以作出n阶的贝塞尔曲线。其中最前和最后这两个点在曲线上,其余n-1个中间点是控制点,主要用于控制曲线的形状,不一定在曲线上。 假如给定的n+1个点是(x0,y0),...,(xn,yn),以t作为参数,则生成的曲线上的所有点可以表示如下: n x=∑C(n,i)*t^i*(1-t)^(n-i)*xi i=0 n y=∑C(n,i)*t^i*(1-t)^... 阅读全文
posted @ 2010-09-05 22:06 zhh 阅读(654) 评论(0) 推荐(0)
摘要: 属性描述Name跟踪监听程序的名称。这是必须的。FileName滑动文本文件的名称。这是必须的。Footer包含在文件脚注中的附加信息。默认为 --------。这是可选的。Formatter与此跟踪监听程序一起使用的格式化程序。从下拉列表中选择。这是可选的。Header包含在文件头部的附加信息。默认是 --------。这是可选的。RollFileExistsBehavior此属性决定在已存在的... 阅读全文
posted @ 2010-08-17 00:16 zhh 阅读(518) 评论(0) 推荐(0)
摘要: 1.吵架不当着父母,亲戚,邻居的面吵,在公共场所给对方面子。 2.不管谁对谁错,只要一吵架,男方必须先轻声轻气哄女方一次,女方才能马上冷静下来,否则女方一看到男方哇啦哇啦女方也忍不住哇啦哇啦,一旦造成严重后果,全部由男方负责。 3.在家里吵架不准一走了之,实在要走不得走出小区,不许不带手机和关机。 4.尊敬对方的父母长辈,吵架不开心不能对父母无礼。 5.有错一方要主动道歉,无错一方在有错方道歉并补... 阅读全文
posted @ 2010-07-29 18:14 zhh 阅读(153) 评论(0) 推荐(0)
摘要: [代码][代码]Supported pixel types limited to float and long because output currently limited to native ESRI GridPublic Function TinToRaster(pTin As ITinAdvanced, eRastConvType As esriRasterizationType, _ ... 阅读全文
posted @ 2010-07-01 10:30 zhh 阅读(1164) 评论(0) 推荐(1)
摘要: public void saveFeatureClass(IFeatureClass pFeatureClass, string fileName) {string sFileName = System.IO.Path.GetFileName(fileName); string sFilePath = System.IO.Path.GetDirectoryName(fileName); IDa... 阅读全文
posted @ 2010-07-01 10:23 zhh 阅读(535) 评论(0) 推荐(0)
摘要: public static ILayer openTinLayer(string fullPath) { ITinWorkspace pTinWorkspace; IWorkspace pWS; IWorkspaceFactory pWSFact = new TinWorkspaceFactoryClass(); ITinLayer pTinLayer = new TinLayerClas... 阅读全文
posted @ 2010-07-01 10:17 zhh 阅读(334) 评论(0) 推荐(0)
摘要: Imports System.IO Imports ESRI.ArcGIS.esriSystem Imports ESRI.ArcGIS.SystemUI Imports ESRI.ArcGIS.ADF Imports ESRI.ArcGIS.Geodatabase Imports ESRI.ArcGIS.Geometry Imports ESRI.ArcGIS.Controls I... 阅读全文
posted @ 2010-07-01 10:15 zhh 阅读(2084) 评论(0) 推荐(0)
摘要: 在进行join之前,请确认数据库可以连接  try { //使用oledb连接数据库,连接到sys.基本信息表 IWorkspaceFactory pWorkspaceFactory = new OLEDBWorkspaceFactory(); IPropertySet pPropSet = new PropertySet(); pPropSet.SetProperty("CONNECTSTRIN... 阅读全文
posted @ 2010-06-13 08:55 zhh 阅读(1095) 评论(1) 推荐(1)
摘要: 新建项目 Ctrl+shift+N新建网站 shift+Alt+N文件 Ctrl+N打开项目/解决方案 Ctrl+shift+O打开网站 shift+Alt+O打开文件 Ctrl+O保存当前文件 Ctrl+S全部保存 Ctrl+Shift+S添加新项 Ctrl+Shift+A添加现有项 Shift+Alt+A添加类 Shift+Alt+C撤消 Ctrl+Z重复 Ctrl+Y转到 Ctrl+G循环应... 阅读全文
posted @ 2010-06-11 11:31 zhh 阅读(155) 评论(0) 推荐(0)
摘要: 当我们编写AE程序时,通常会遇到需要存储某个AE对象的情况,比如Layer,Element,Map,Legend,NorthArrow等等这些举个例子说明一下:在我们编辑Featurelayer时,我们可以容易的将Feature存储在Featureclass中,同样,如果我们向Graphicscontainer中添加了Element,我们也希望可以容易的存储Element这样每次加载时可以将Ele... 阅读全文
posted @ 2010-06-09 17:52 zhh 阅读(342) 评论(0) 推荐(0)
摘要: 下面的类中封装了Geometry相关的一些操作函数,AE+VB.Net源码。 Imports ESRI.ArcGIS.GeometryImports ESRI.ArcGIS.CartoImports ESRI.ArcGIS.GeodatabaseImports ESRI.ArcGIS.esriSystemImports ESRI.ArcGIS.DisplayPublic Class Geometr... 阅读全文
posted @ 2010-06-09 12:19 zhh 阅读(4714) 评论(0) 推荐(0)
摘要: 在公共语言运行时 (CLR) 中,垃圾回收器用作自动内存管理器。它提供如下优点:使您可以在开发应用程序时不必释放内存。有效分配托管堆上的对象。回收不再使用的对象,清除它们的内存,并保留内存以用于将来分配。托管对象会自动获取干净的内容来开始,因此,它们的构造函数不必对每个数据字段进行初始化。通过确保对象不能使用另一个对象的内容来提供内存安全。垃圾回收的条件 当满足以下条件之一时将发生垃圾回收:系统具... 阅读全文
posted @ 2010-06-03 14:41 zhh 阅读(250) 评论(0) 推荐(0)
摘要: UML,泛化,依赖,关联,聚合 阅读全文
posted @ 2010-05-29 15:08 zhh 阅读(221) 评论(0) 推荐(0)