摘要: 在底层类库项目中定义一个日志类 public class LogHelper { private static log4net.ILog log = log4net.LogManager.GetLogger("MyLogger"); public static void Debug(string content) { log.Debug(content); } public static void Info(string content) { log.Info(content); } }在该类库中引用log4net.dll,并在assemblyInfo.cs中添加[asse 阅读全文
posted @ 2011-06-17 16:06 qb371 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 转载自: http://bbs.esrichina-bj.cn/ESRI/thread-48168-1-1.html空间分析功能是GIS的主要功能之一,本章将为读者介绍一些GIS开发常用的功能涉及到的空间拓扑运算,空间关系运算,空间临近运算所使用到的接口。例如开发一个缓冲区分析功能,获取两个几何要素的最短距离,判断两个几何要素的拓扑关系等都需要使用到这些接口,使用这些接口可以极大提高开发者的开发效率。1.1目标1.熟悉ITopologicalOperator接口(用于空间拓扑运算)的使用2.熟悉IRelationalOperator接口(用于空间关联运算)的使用3.熟悉IProximityOp 阅读全文
posted @ 2011-06-17 11:36 qb371 阅读(393) 评论(0) 推荐(0) 编辑
摘要: log4net has a known issue of referencing a System.Web component which is not part of the .NET Framework 4 Client Profile and the VS2010 by default sets project target to be the lightweighted Client Profile. The solution is to change the target to .NET Framework 4:Right click project -> properties 阅读全文
posted @ 2011-06-17 11:19 qb371 阅读(249) 评论(0) 推荐(0) 编辑