<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_gisoracle</title><subtitle type="text"/><id>http://feed.cnblogs.com/blog/u/58064/rss</id><updated>2012-05-31T13:15:40Z</updated><author><name>gisoracle</name><uri>http://www.cnblogs.com/gisoracle/</uri></author><generator>feed.cnblogs.com</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/gisoracle/"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/58064/rss"/><entry><id>http://www.cnblogs.com/gisoracle/archive/2012/05/29/2523922.html</id><title type="text">python os模块中的文件操作</title><summary type="text">os模块中的文件操作： os 模块属性 linesep 用于在文件中分隔行的字符串 sep 用来分隔文件路径名的字符串 pathsep 用于分隔文件路径的字符串 curdir 当前工作目录的字符串名称 pardir (当前工作目录的)父目录字符串名称 1.重命名：os.rename(old, new) 2.删除：os.remove(file) 3.列出目录下的文件：os.listdir(path) 4.获取当前工作目录：os.getcwd() 5.改变工作目录：os.chdir(newdir) 6.创建多级目录：os.makedirs(r"c:\python\test") </summary><published>2012-05-29T06:24:00Z</published><updated>2012-05-29T06:24:00Z</updated><author><name>gisoracle</name><uri>http://www.cnblogs.com/gisoracle/</uri></author><link rel="alternate" href="http://www.cnblogs.com/gisoracle/archive/2012/05/29/2523922.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/gisoracle/archive/2012/05/29/2523922.html"/><content type="html">&lt;p&gt;os模块中的文件操作： &lt;br /&gt;os 模块属性 &lt;br /&gt;linesep 用于在文件中分隔行的字符串 &lt;br /&gt;sep 用来分隔文件路径名的字符串 &lt;br /&gt;pathsep 用于分隔文件路径的字符串 &lt;br /&gt;curdir 当前工作目录的字符串名称 &lt;br /&gt;pardir (当前工作目录的)父目录字符串名称 &lt;br /&gt;1.重命名：os.rename(old, new) &lt;br /&gt;2.删除：os.remove(file) &lt;br /&gt;3.列出目录下的文件：os.listdir(path) &lt;br /&gt;4.获取当前工作目录：os.getcwd() &lt;br /&gt;5.改变工作目录：os.chdir(newdir) &lt;br /&gt;6.创建多级目录：os.makedirs(r"c:\python\test") &lt;br /&gt;7.创建单个目录：os.mkdir("test") &lt;br /&gt;8.删除多个目录：os.removedirs(r"c:\python") #删除所给路径最后一个目录下所有空目录。 &lt;br /&gt;9.删除单个目录：os.rmdir("test") &lt;br /&gt;10.获取文件属性：os.stat(file) &lt;br /&gt;11.修改文件权限与时间戳：os.chmod(file) &lt;br /&gt;12.执行操作系统命令：os.system("dir") &lt;br /&gt;13.启动新进程：os.exec(), os.execvp() &lt;br /&gt;14.在后台执行程序：osspawnv() &lt;br /&gt;15.终止当前进程：os.exit(), os._exit() &lt;br /&gt;16.分离文件名：os.path.split(r"c:\python\hello.py") --&amp;gt; ("c:\\python", "hello.py") &lt;br /&gt;17.分离扩展名：os.path.splitext(r"c:\python\hello.py") --&amp;gt; ("c:\\python\\hello", ".py") &lt;br /&gt;18.获取路径名：os.path.dirname(r"c:\python\hello.py") --&amp;gt; "c:\\python" &lt;br /&gt;19.获取文件名：os.path.basename(r"r:\python\hello.py") --&amp;gt; "hello.py" &lt;br /&gt;20.判断文件是否存在：os.path.exists(r"c:\python\hello.py") --&amp;gt; True &lt;br /&gt;21.判断是否是绝对路径：os.path.isabs(r".\python\") --&amp;gt; False &lt;br /&gt;22.判断是否是目录：os.path.isdir(r"c:\python") --&amp;gt; True &lt;br /&gt;23.判断是否是文件：os.path.isfile(r"c:\python\hello.py") --&amp;gt; True &lt;br /&gt;24.判断是否是链接文件：os.path.islink(r"c:\python\hello.py") --&amp;gt; False &lt;br /&gt;25.获取文件大小：os.path.getsize(filename) &lt;br /&gt;26.*******：os.ismount("c:\\") --&amp;gt; True &lt;br /&gt;27.搜索目录下的所有文件：os.path.walk() &lt;/p&gt;&lt;p&gt;详细出处参考：&lt;a href="http://www.jb51.net/article/28905.htm"&gt;http://www.jb51.net/article/28905.htm&lt;/a&gt;&lt;/p&gt;&lt;img src="http://www.cnblogs.com/gisoracle/aggbug/2523922.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/gisoracle/archive/2012/05/29/2523922.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/gisoracle/archive/2012/05/17/2506105.html</id><title type="text">院外培训：GIS数据处理与建模高级培训班学习心得体会 来自</title><summary type="text">院外培训：GIS数据处理与建模高级培训班学习心得体会 2011-8-29 16:00:41阅读：873次 2011年8月20-22日由中国科学院计算技术研究所教育中心组织的《GIS数据处理与建模》高级培训班在华南农业大学开班，由闫磊教授主讲。我有幸同院内其他四位同事一起参加了此次培训。 这次培训的目标是：通过参加培训学习，使培训者快速掌握地理信息系（ArcGIS10）的各种基本操作、新功能和新技术，以及空间数据库的有关理论、技术及应用，加强空间数据库的数据处理、数据建模（Model）和数据分析综合运用能力，通过大量的数据模型建立和批量处理案例，大大提升学员GIS系统的设计和应用能力、应用..</summary><published>2012-05-17T05:54:00Z</published><updated>2012-05-17T05:54:00Z</updated><author><name>gisoracle</name><uri>http://www.cnblogs.com/gisoracle/</uri></author><link rel="alternate" href="http://www.cnblogs.com/gisoracle/archive/2012/05/17/2506105.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/gisoracle/archive/2012/05/17/2506105.html"/><content type="html">&lt;table border="0" cellspacing="0" cellpadding="0" width="98%"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td height="25" valign="bottom" align="center"&gt;&lt;span class="unnamed6"&gt;&lt;font size="3"&gt;&lt;strong&gt;院外培训：GIS数据处理与建模高级培训班学习心得体会&lt;/strong&gt;&lt;/font&gt;&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td height="81" valign="top"&gt;&lt;table border="0" cellspacing="0" cellpadding="0" width="98%"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td align="center"&gt;&lt;font color="#000000"&gt;2011-8-29 16:00:41　阅读：873次&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;&lt;table border="0" cellspacing="0" cellpadding="0" width="100"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;table border="0" cellspacing="0" cellpadding="5" width="98%"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="unnamed5" valign="top"&gt;&lt;font color="#000000"&gt;&lt;p&gt;2011年8月20-22日由中国科学院计算技术研究所教育中心组织的《GIS数据处理与建模》高级培训班在华南农业大学开班，由闫磊教授主讲。我有幸同院内其他四位同事一起参加了此次培训。&lt;br /&gt;这次培训的目标是：通过参加培训学习，使培训者快速掌握地理信息系（ArcGIS10）的各种基本操作、新功能和新技术，以及空间数据库的有关理论、技术及应用，加强空间数据库的数据处理、数据建模（Model）和数据分析综合运用能力，通过大量的数据模型建立和批量处理案例，大大提升学员GIS系统的设计和应用能力、应用水平和工作效率。&lt;br /&gt;现就这三天的培训情况总结如下：&lt;br /&gt;&lt;strong&gt;1. 教师理论知识非常丰富，而且授课深入浅出&lt;br /&gt;&lt;/strong&gt;由于地理信息系统所涉及的内容本来就比较广泛，要想学好用好ARCGIS这个工具，就不得不先了解一些地理信息系统的基础知识。闫老师在课程开始先从宏观上介绍了ARCGIS产品家族之间的关系，并对拓扑关系以及ARCGIS软件涉及到的一些专业术语做了介绍，为学员在后面的学习做了最基本的铺垫。&lt;br /&gt;闫老师还重点讲解了地图单位以及单位之间的换算关系、投影坐标系、地理坐标系、3度分带、6度分带等知识。这些知识对非专业人士来说，要单纯靠自己看书理解起来有很大的困难，也需要花费大量的时间。经过闫老师讲解之后，这些内容就变得清晰很多。&lt;/p&gt;&lt;p&gt;&lt;strong&gt;2. 闫老师的实践经验非常丰富，课程都实例演示&lt;br /&gt;&lt;/strong&gt;在每堂课程上，闫老师总会现场演示几个实例，让我记忆较深刻的是影像配准、拓扑处理、栅格数据矢量化、缓冲区分析、叠加分析以及综合案例、数字高程以及水文分析等。&lt;br /&gt;例如，我个人在培训之前对影像配准的基本操作有一些基础，但是经过闫老师的讲解之后，才知道为什么要这么操作，如何操作才能够最精确，在实际操作前，怎样读懂一副地图？原来不起眼的、精度不高的地图在闫老师的手里都变成了非常有价值的资料。还有就是对于栅格数据矢量化的操作，我研究了好久，也搜集了好多资料，但自己经过多次实践操作就没有成功过，闫老师现场演示了一个例子，一切都像水到渠成，不禁感叹闫老师的功力。&lt;br /&gt;当然培训前就很期待的数字高程以及水文分析案例等，闫老师也在课堂上给出了具体演示的实例。&lt;br /&gt;由于ARCGIS10提供了建模的工具，有了这个建模工具，就可以针对实际应用中的不同问题提出对应的模型。闫老师讲解了许多他自己建立的模型，在讲解过程中，一些关键环节他总是不厌其烦的提醒学员。而且，这些模型他毫无保留的分享给大家了。&lt;br /&gt;此外，闫老师还在讲课过程中穿插讲解了许多程序的&amp;#8220;暗桩&amp;#8221;。 ARCGIS程序一些功能无法正常运行，闫老师通过实例讲解要如何操作才能绕过这些陷阱，这对于一些学员来说，无疑节省了许多摸索的时间。&lt;br /&gt;之前我一直不理解dissolve这个功能，当闫老师说这个就跟数据库的group by功能一样的，我突然感觉到豁然开朗，确实，这个功能是统计分析的最重要的工具啊！闫老师告诉大家，在使用ARCGIS的过程中不可避免出问题，他给出了一个&amp;#8220;处方&amp;#8221;&amp;#8212;&amp;#8220;先检查扩展模块有没有选中、再看看数据的版本、最后看看数据库版本&amp;#8221;，基本可以解决80%的问题。&lt;br /&gt;最后，闫老师还给了不少学习的材料，包括一些教学录像，这些是给我们课后学习实践提供了很好的材料。三天的培训是很短暂的，但是对我个人的影响是巨大的，使我这个非专业人士对GIS的了解更进了一步，为日后深入研究GIS技术打下了一个很好的基础。最后感谢院里提供这个学习培训的机会！&lt;br /&gt;&lt;/p&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;来自&lt;a href="http://www.gdupi.com/trainingview.asp?id=1211"&gt;http://www.gdupi.com/trainingview.asp?id=1211&lt;/a&gt;&lt;/p&gt;&lt;img src="http://www.cnblogs.com/gisoracle/aggbug/2506105.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/gisoracle/archive/2012/05/17/2506105.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/gisoracle/archive/2012/05/08/2490700.html</id><title type="text">arcmap导出或者打印时插入的图片和对象绘制失败</title><summary type="text">arcmap导出或者打印时插入的图片和对象绘制失败</summary><published>2012-05-08T12:55:00Z</published><updated>2012-05-08T12:55:00Z</updated><author><name>gisoracle</name><uri>http://www.cnblogs.com/gisoracle/</uri></author><link rel="alternate" href="http://www.cnblogs.com/gisoracle/archive/2012/05/08/2490700.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/gisoracle/archive/2012/05/08/2490700.html"/><content type="html">&lt;strong&gt;出或者打印时插入的图片和对象绘制失败&lt;/strong&gt; &lt;div style="line-height: 22px; height: auto" id="wzabout"&gt;&lt;!--判断阅读权限--&gt;&lt;!--判断是否已经扣点--&gt;&lt;p&gt;&lt;strong&gt;文章编号：&lt;/strong&gt; 30753 &lt;/p&gt;&lt;p&gt;&lt;strong&gt;软件：&lt;/strong&gt; ArcGIS - ArcEditor 9.1, 9.2, 9.3, 9.3.1, 10 ArcGIS - ArcInfo 9.1, 9.2, 9.3, 9.3.1 ArcGIS - ArcView 9.1, 9.2, 9.3, 9.3.1, 10 &lt;/p&gt;&lt;p&gt;&lt;strong&gt;操作系统：&lt;/strong&gt; N/A &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style="line-height: 20px; border-right-width: 0px;background: #fff; border-top-width: 0px; border-bottom-width: 0px; height: auto; border-left-width: 0px" id="wzabout"&gt;&lt;p&gt;&lt;strong&gt;错误信息： &lt;/strong&gt;&lt;/p&gt;&lt;div style="padding-bottom: 8px; margin: 0px; width: 940px; padding-top: 8px"&gt;在ArcMap布局的地图页面尺寸设置超过默认打印机的默认纸张大小时，图片或者插入对象，例如JPEG, BMP,或者Excel表格等，将在导出时绘制失败或者绘制出错误的结果。在使用图片标记符号或者使用图片来渲染一个面的时候，在导出的时候也不能够正常的渲染。 &lt;br /&gt;在版本9.2及以后的版本，使用&amp;#8220;用位图标记/填充矢量化图层&amp;#8221;选项将图片标记符号转成矢量也可能导致在默认打印机默认纸张大小范围外的非正常的渲染。&lt;br /&gt;并且，一些作为插入的EMF绘制的特定的制图表达也会被这个问题所影响。&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;strong&gt;原因：&lt;/strong&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="padding-bottom: 8px; margin: 0px; width: 940px; padding-top: 8px"&gt;&lt;p&gt;如果插入的对象或者图片出现在windows默认打印机的默认纸张大小的外面，ArcMap调用的windows GDI 绘图将不能够正常的在输出结果中绘制对象或者图片。&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;解决方法：&lt;/strong&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="padding-bottom: 8px; margin: 0px; width: 940px; padding-top: 8px"&gt;&lt;p&gt;在一些打印机上，在纸张和打印设置的对话框中选择&amp;#8220;使用打印机纸张设置&amp;#8221;可以改善这个问题。&lt;br /&gt;或者，将windows默认打印机的默认纸张大小设置为一个与要导出的page layout一样大或者更大的尺寸。例如，如果地图文档的大小为17x22，在打开ArcMap前将默认打印机默认纸张大小设置为17x22或者更大。&lt;br /&gt;1. 点击开始菜单&amp;gt;控制面板&amp;gt;打印机和传真，开启Windows 打印机和传真对话框。&lt;br /&gt;2. 在默认打印机上右键，它会显示一个勾选提示。&lt;br /&gt;3. 选择打印首选项.&lt;br /&gt;4. 在纸张大小标签页下选择一个纸张尺寸超过需要输出的纸张的大小。点击确定。打印机属性对话框的名字和显示将会随着不同的打印机/驱动会有不同的显示。&lt;br /&gt;5. 启动ArcMap, 打开地图文档然后重新导出或者打印。&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;em&gt;创建时间：2006-05-03 &lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;最近更新： 2010-06-18 &lt;/em&gt;&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;来自：&lt;a href="http://support.esrichina-bj.cn/2006/0503/935.html"&gt;http://support.esrichina-bj.cn/2006/0503/935.html&lt;/a&gt;&lt;/p&gt;&lt;img src="http://www.cnblogs.com/gisoracle/aggbug/2490700.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/gisoracle/archive/2012/05/08/2490700.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/gisoracle/archive/2012/05/08/2490406.html</id><title type="text">[求助]求将一个单元格中的数字以文本显示的最好方法（除了设置为文本格式）[复制链接]</title><summary type="text">[求助]求将一个单元格中的数字以文本显示的最好方法（除了设置为文本格式）[复制链接]来自：http://club.excelhome.net/thread-625978-1-1.html求将一个单元格中的数字以文本显示的最好方法（除了设置为文本格式）----------------------------------------------------------------当然了，将单元格设置成“文本”，以后再录入数字，不管多长也是文本，不会以数字格式显示（比如科学计数法）但是我的问题的前提是，不进行这种格式的设置，就能让单元格中的数字以文本显示，下面是我所知道的两种 方法1.录入时，在前.</summary><published>2012-05-08T09:18:00Z</published><updated>2012-05-08T09:18:00Z</updated><author><name>gisoracle</name><uri>http://www.cnblogs.com/gisoracle/</uri></author><link rel="alternate" href="http://www.cnblogs.com/gisoracle/archive/2012/05/08/2490406.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/gisoracle/archive/2012/05/08/2490406.html"/><content type="html"> &lt;a href="http://www.cnblogs.com/gisoracle/admin/forum.php?mod=forumdisplay&amp;amp;fid=1&amp;amp;filter=typeid&amp;amp;typeid=1"&gt;[求助]&lt;/a&gt;&lt;a id="thread_subject" href="http://www.cnblogs.com/gisoracle/admin/thread-625978-1-1.html"&gt;求将一个单元格中的数字以文本显示的最好方法（除了设置为文本格式）&lt;/a&gt;&lt;span class="xw0 xs1 xg1"&gt;&lt;a title="您的朋友访问此链接后，您将获得相应的积分奖励" href="http://www.cnblogs.com/gisoracle/admin/thread-625978-1-1.html"&gt;[复制链接]&lt;/a&gt;&lt;/span&gt;&lt;div class="pct"&gt;&amp;nbsp;&lt;/div&gt;&lt;div class="pct"&gt;来自：&lt;a href="http://club.excelhome.net/thread-625978-1-1.html"&gt;http://club.excelhome.net/thread-625978-1-1.html&lt;/a&gt;&lt;br /&gt;&lt;style type="text/css"&gt;.pcb{margin-right:0}&lt;/style&gt;&lt;br /&gt;&lt;div class="pcb"&gt;&lt;div class="t_fsz"&gt;&lt;table cellspacing="0" cellpadding="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td id="postmessage_4227368" class="t_f"&gt;求将一个单元格中的数字以文本显示的最好方法（除了设置为文本格式）&lt;br /&gt;----------------------------------------------------------------&lt;br /&gt;当然了，将单元格设置成&amp;#8220;文本&amp;#8221;，以后再录入数字，不管多长也是文本，不会以数字格式显示（比如科学计数法）&lt;br /&gt;但是我的问题的前提是，不进行这种格式的设置，就能让单元格中的数字以文本显示，&lt;br /&gt;下面是我所知道的两种 方法&lt;br /&gt;&lt;br /&gt;1.录入时，在前面加上单引号。如 '145256321458741256,这就是身份证号，不管多长，单元格也会以文本显示。&lt;br /&gt;2.录入时，=&amp;#8220;&amp;#8221; 的方式，如 ="1254785221452158521251"&lt;br /&gt;&lt;br /&gt;以上两种方法都行，但是我想请教大家：&lt;br /&gt;1.两种方法，哪种更好些。&lt;br /&gt;2.在一些处理上（比如对数据进行各种处理），以上两种方式，哪种兼容性更好些。&lt;br /&gt;3.除了上面两种方式，还有更好的方式吗？&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;img src="http://www.cnblogs.com/gisoracle/aggbug/2490406.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/gisoracle/archive/2012/05/08/2490406.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/gisoracle/archive/2012/05/07/2487401.html</id><title type="text">集体土地所有权辅助建库软件已完成</title><summary type="text">集体土地所有权辅助建库软件已完成，软件,宗地图,集体土地,所有权,辅助,建库,协议书,系统</summary><published>2012-05-07T06:50:00Z</published><updated>2012-05-07T06:50:00Z</updated><author><name>gisoracle</name><uri>http://www.cnblogs.com/gisoracle/</uri></author><link rel="alternate" href="http://www.cnblogs.com/gisoracle/archive/2012/05/07/2487401.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/gisoracle/archive/2012/05/07/2487401.html"/><content type="html">&lt;p&gt;实现权属协议书的自动生成，&lt;br /&gt;调查表自动生成，&lt;br /&gt;权属调查表&lt;br /&gt;宗地图等&lt;/p&gt;&lt;p&gt;需要者联系电话： 18287178682 ， QQ: 276529800,Email ：&lt;br /&gt;&lt;a href="&amp;#109;&amp;#97;&amp;#105;&amp;#108;&amp;#116;&amp;#111;&amp;#58;&amp;#103;&amp;#105;&amp;#115;&amp;#111;&amp;#114;&amp;#97;&amp;#99;&amp;#108;&amp;#101;&amp;#64;&amp;#49;&amp;#50;&amp;#54;&amp;#46;&amp;#99;&amp;#111;&amp;#109;"&gt;gisoracle@126.com&lt;/a&gt;&lt;/p&gt;&lt;p&gt;下载地址&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;a href="http://files.cnblogs.com/gisoracle/fz.rar"&gt;http://files.cnblogs.com/gisoracle/fz.rar&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;img style="width: 832px; height: 687px" border="0" alt="" src="http://images.cnblogs.com/cnblogs_com/gisoracle/实现权属协议书的自动生成2.jpg" width="832" height="687" /&gt;&lt;/p&gt;&lt;p&gt;&lt;img style="width: 851px; height: 1184px" border="0" alt="" src="http://images.cnblogs.com/cnblogs_com/gisoracle/实现权属协议书的自动生成3.jpg" width="851" height="1184" /&gt;&lt;/p&gt;&lt;p&gt;&lt;img style="width: 841px; height: 1263px" border="0" alt="" src="http://images.cnblogs.com/cnblogs_com/gisoracle/实现权属协议书的自动生成1.jpg" width="841" height="1263" /&gt;&lt;/p&gt;&lt;p&gt;&lt;img style="width: 825px; height: 1210px" border="0" alt="" src="http://images.cnblogs.com/cnblogs_com/gisoracle/实现权属协议书的自动生成4.jpg" width="825" height="1210" /&gt;&lt;/p&gt;&lt;p&gt;&lt;img style="width: 832px; height: 1312px" border="0" alt="" src="http://images.cnblogs.com/cnblogs_com/gisoracle/实现权属协议书的自动生成5.jpg" width="832" height="1312" /&gt;&lt;/p&gt;&lt;img src="http://www.cnblogs.com/gisoracle/aggbug/2487401.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/gisoracle/archive/2012/05/07/2487401.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/gisoracle/archive/2012/04/17/2454547.html</id><title type="text">ISpatialFilter.SpatialRelDescription 翻译</title><summary type="text">ISpatialFilter.SpatialRelDescription 翻译 The array elements which describe the spatial relation between the query geometry and the requested geometries. There are 9 chars in this string which can be either 'F', 'T' or '*'; e.g., TT*FFT***' represents CONTAIN.（字符串中有9个字符，每个字</summary><published>2012-04-17T14:37:00Z</published><updated>2012-04-17T14:37:00Z</updated><author><name>gisoracle</name><uri>http://www.cnblogs.com/gisoracle/</uri></author><link rel="alternate" href="http://www.cnblogs.com/gisoracle/archive/2012/04/17/2454547.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/gisoracle/archive/2012/04/17/2454547.html"/><content type="html">&lt;div class="posttitle"&gt;&lt;a id="cb_post_title_url" class="singleposttitle" href="http://www.cnblogs.com/zhangjun1130/archive/2011/03/09/1978209.html"&gt;&lt;strong&gt;&lt;font color="#006bad" size="5"&gt;ISpatialFilter.SpatialRelDescription 翻译&lt;/font&gt;&lt;/strong&gt;&lt;/a&gt; &lt;/div&gt;&lt;div class="postbody"&gt;&lt;div id="cnblogs_post_body"&gt;&lt;p&gt;The array elements which describe the spatial relation between the query geometry and the requested geometries. There are 9 chars in this string which can be either 'F', 'T' or '*'; e.g., TT*FFT***' represents CONTAIN.&lt;span style="color: #ff0000"&gt;（字符串中有9个字符，每个字符可以是F,T,或者*，例如：TT*FFT***表达了包含）&lt;/span&gt;&lt;/p&gt;&lt;h4 class="dtH4"&gt;Description&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;A nine character string containing describing the spatial relationships to be tested by the spatial filter.&amp;nbsp;Required&amp;nbsp;when setting the SpatialRel property to&amp;nbsp;use the esriSpatialRelRelation enumerator.&lt;/p&gt;&lt;h4 class="dtH4"&gt;Remarks&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;The SpatialRelDescription allows the comparison of any spatial&amp;nbsp;relationship between two geometries. A spatial relationship is defined by the&amp;nbsp;intersections&amp;nbsp;between the boundary, interior, and exterior&amp;nbsp;of the query geometry and the requested geometry.&lt;span style="color: #ff0000"&gt;（空间关系用查询几何体和被请求的几何体的边界，内部，外部之间的相交关系来定义）&lt;/span&gt;&lt;/p&gt;&lt;p&gt;All of the spatial relationships defined by the esriSpatialRelEnum enumeration can be duplicated using this property.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Interior: &lt;br /&gt;The interior of a shape is defined as the entire shape minus its boundary. All shapes have interior. &lt;br /&gt;&lt;br /&gt;Boundary: &lt;br /&gt;Linear and area shapes have boundaries, but point shapes do not. The boundary of linear shapes consists of the end points of all linear parts. The boundary of area shapes consists of the linear boundary of the polygon shell(s). &lt;br /&gt;&lt;br /&gt;Exterior: &lt;br /&gt;The area outside a shape. All shapes have an exterior.&lt;/p&gt;&lt;p&gt;Each element for the first shape, the query geometry, may be tested against each element of the second shape, the requested geometry, giving nine possible spatial intersections as listed in the table below:&lt;/p&gt;&lt;div class="tableDiv"&gt;&lt;table style="width: 59.83%; height: 218px" id="o2Table55001" class="dtTable" border="1" cellspacing="0" align="center"&gt;&lt;tbody align="center"&gt;&lt;tr&gt;&lt;th&gt;&lt;br /&gt;&lt;/th&gt;&lt;th&gt;Query Geometry&lt;/th&gt;&lt;th&gt;Requested Geometry&lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;1&lt;/td&gt;&lt;td&gt;interior&lt;/td&gt;&lt;td&gt;interior&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;2&lt;/td&gt;&lt;td&gt;interior&lt;/td&gt;&lt;td&gt;boundary&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;3&lt;/td&gt;&lt;td&gt;interior&lt;/td&gt;&lt;td&gt;exterior&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;4&lt;/td&gt;&lt;td&gt;boundary&lt;/td&gt;&lt;td&gt;interior&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;5&lt;/td&gt;&lt;td&gt;boundary&lt;/td&gt;&lt;td&gt;boundary&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;6&lt;/td&gt;&lt;td&gt;boundary&lt;/td&gt;&lt;td&gt;exterior&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;7&lt;/td&gt;&lt;td&gt;exterior&lt;/td&gt;&lt;td&gt;interior&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;8&lt;/td&gt;&lt;td&gt;exterior&lt;/td&gt;&lt;td&gt;boundary&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;9&lt;/td&gt;&lt;td&gt;exterior&lt;/td&gt;&lt;td&gt;exterior&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;The nine-characters string expected by ISpatialFilter::SpatialRelDescription, is used to specify whether the intersection of each of the elements in the array is true (T), false (F), or not tested (*).&amp;nbsp;&lt;/p&gt;&lt;p&gt;For instance, in 'FFFTTT***', relationships 1-3 must be false, relationships 4-6 must be true, and relationships 7-9 are not tested. &lt;br /&gt;&lt;br /&gt;&lt;em&gt;Note that any two shapes' exteriors always intersect.&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Example Strings&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;Shares a boundary: '****T****'&lt;span style="color: #ff0000"&gt;（esri官方帮助中为：'****T***'，结尾少写一个*）&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;Shares a boundary and interiors intersect: 'T***T****' &lt;br /&gt;&lt;br /&gt;Shares a boundary and interiors do not intersect: 'F***T****' &lt;br /&gt;&lt;br /&gt;Does not touch the boundary and interiors intersect: 'T***F****' &lt;/p&gt;&lt;div class="tableDiv"&gt;&lt;strong&gt;Approximate&lt;/strong&gt;&amp;nbsp;&lt;a href="http://www.cnblogs.com/zhangjun1130/archive/2011/03/09/esrispatialrelenum.htm"&gt;&lt;strong&gt;&lt;font color="#006bad"&gt;esriSpatialRelEnum&lt;/font&gt;&lt;/strong&gt;&lt;/a&gt;&amp;nbsp;&lt;strong&gt;SpatialRelDescription Strings&lt;/strong&gt;&amp;nbsp;&lt;/div&gt;&lt;table style="width: 349pt; border-collapse: collapse" border="0" cellspacing="0" cellpadding="0" width="464"&gt;&lt;colgroup&gt;&lt;col style="width: 65pt" width="86"&gt;&lt;/col&gt;&lt;col style="width: 108pt" width="144"&gt;&lt;/col&gt;&lt;col style="width: 102pt" width="136"&gt;&lt;/col&gt;&lt;col style="width: 74pt" width="98"&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style="height: 12.75pt" height="17"&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; width: 65pt; height: 12.75pt; border-top: #ece9d8; border-right: #ece9d8" class="xl25" height="17" width="86"&gt;&lt;strong&gt;&lt;span&gt;Relation&lt;/span&gt;&lt;/strong&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; width: 108pt; border-top: #ece9d8; border-right: #ece9d8" class="xl25" width="144"&gt;&lt;strong&gt;&lt;span&gt;Selection Geometry&lt;/span&gt;&lt;/strong&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; width: 102pt; border-top: #ece9d8; border-right: #ece9d8" class="xl25" width="136"&gt;&lt;strong&gt;&lt;span&gt;Requested Geometry&lt;/span&gt;&lt;/strong&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; width: 74pt; border-top: #ece9d8; border-right: #ece9d8" class="xl25" width="98"&gt;&lt;strong&gt;&lt;span&gt;String&lt;/span&gt;&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 15.75pt" height="21"&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; height: 15.75pt; border-top: #ece9d8; border-right: #ece9d8" class="xl24" height="21"&gt;&lt;span style="font-size: small" size="3"&gt;Contains&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;Line&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;Line&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;TT*FFT***&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 15.75pt" height="21"&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; height: 15.75pt; border-top: #ece9d8; border-right: #ece9d8" class="xl24" height="21"&gt;&lt;span style="font-size: small" size="3"&gt;Contains&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;Point&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;Line&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;TT*FFT***&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 15.75pt" height="21"&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; height: 15.75pt; border-top: #ece9d8; border-right: #ece9d8" class="xl24" height="21"&gt;&lt;span style="font-size: small" size="3"&gt;Contains&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;Point&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;Point&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;T********&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 15.75pt" height="21"&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; height: 15.75pt; border-top: #ece9d8; border-right: #ece9d8" class="xl24" height="21"&gt;&lt;span style="font-size: small" size="3"&gt;Contains&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;Line&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;Poly&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;TT*FFT***&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 15.75pt" height="21"&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; height: 15.75pt; border-top: #ece9d8; border-right: #ece9d8" class="xl24" height="21"&gt;&lt;span style="font-size: small" size="3"&gt;Contains&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;Poly&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;Poly&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;TT*FFT***&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 15.75pt" height="21"&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; height: 15.75pt; border-top: #ece9d8; border-right: #ece9d8" class="xl24" height="21"&gt;&lt;span style="font-size: small" size="3"&gt;Crosses&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;Line&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;Line&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;TF*FF****&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 15.75pt" height="21"&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; height: 15.75pt; border-top: #ece9d8; border-right: #ece9d8" class="xl24" height="21"&gt;&lt;span style="font-size: small" size="3"&gt;Crosses&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;Poly&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;Line&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;TT**F****&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 15.75pt" height="21"&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; height: 15.75pt; border-top: #ece9d8; border-right: #ece9d8" class="xl24" height="21"&gt;&lt;span style="font-size: small" size="3"&gt;Crosses&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;Line&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;Poly&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;TT**T****&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 15.75pt" height="21"&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; height: 15.75pt; border-top: #ece9d8; border-right: #ece9d8" class="xl24" height="21"&gt;&lt;span style="font-size: small" size="3"&gt;Overlaps&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;Line&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;Line&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;TT*T*****&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 15.75pt" height="21"&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; height: 15.75pt; border-top: #ece9d8; border-right: #ece9d8" class="xl24" height="21"&gt;&lt;span style="font-size: small" size="3"&gt;Overlaps&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;Point&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;Point&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;T********&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 15.75pt" height="21"&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; height: 15.75pt; border-top: #ece9d8; border-right: #ece9d8" class="xl24" height="21"&gt;&lt;span style="font-size: small" size="3"&gt;Overlaps&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;Poly&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;Poly&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;TT*T*****&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 15.75pt" height="21"&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; height: 15.75pt; border-top: #ece9d8; border-right: #ece9d8" class="xl24" height="21"&gt;&lt;span style="font-size: small" size="3"&gt;Touch&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;Line&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;Line&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;FF*FT****&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 15.75pt" height="21"&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; height: 15.75pt; border-top: #ece9d8; border-right: #ece9d8" class="xl24" height="21"&gt;&lt;span style="font-size: small" size="3"&gt;Touch&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;Poly&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;Line&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;FF*FT****&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 15.75pt" height="21"&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; height: 15.75pt; border-top: #ece9d8; border-right: #ece9d8" class="xl24" height="21"&gt;&lt;span style="font-size: small" size="3"&gt;Touch&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;Line&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;Poly&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;FF*FT****&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 15.75pt" height="21"&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; height: 15.75pt; border-top: #ece9d8; border-right: #ece9d8" class="xl24" height="21"&gt;&lt;span style="font-size: small" size="3"&gt;Touch&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;Poly&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;Poly&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;FF*FT****&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 15.75pt" height="21"&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; height: 15.75pt; border-top: #ece9d8; border-right: #ece9d8" class="xl24" height="21"&gt;&lt;span style="font-size: small" size="3"&gt;Within&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;Line&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;Line&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;TF**F****&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 15.75pt" height="21"&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; height: 15.75pt; border-top: #ece9d8; border-right: #ece9d8" class="xl24" height="21"&gt;&lt;span style="font-size: small" size="3"&gt;Within&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;Point&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;Line&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;T********&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 15.75pt" height="21"&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; height: 15.75pt; border-top: #ece9d8; border-right: #ece9d8" class="xl24" height="21"&gt;&lt;span style="font-size: small" size="3"&gt;Within&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;Point&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;Point&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;T********&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 15.75pt" height="21"&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; height: 15.75pt; border-top: #ece9d8; border-right: #ece9d8" class="xl24" height="21"&gt;&lt;span style="font-size: small" size="3"&gt;Within&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;Line&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;Poly&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;TF**F****&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 15.75pt" height="21"&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; height: 15.75pt; border-top: #ece9d8; border-right: #ece9d8" class="xl24" height="21"&gt;&lt;span style="font-size: small" size="3"&gt;Within&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;Poly&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;Poly&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: #ece9d8" class="xl24"&gt;&lt;span style="font-size: small" size="3"&gt;TF**F****&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p&gt;For more information on this topic, see the &lt;a href="http://edn.esri.com/index.cfm?fa=search.results&amp;amp;c_2_a=on&amp;amp;dl_1=on&amp;amp;sa=2&amp;amp;q=shape+comparison+language" target="_blank"&gt;&lt;font color="#006bad"&gt;Shape Comparison Language&lt;/font&gt;&lt;/a&gt; topics on the EDN web site.&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;/div&gt;&lt;script type="text/javascript"&gt;if ($ != jQuery) {$ = jQuery.noConflict();}var isLogined = true;var cb_blogId = 49240;var cb_entryId = 1978209;var cb_blogApp = "zhangjun1130";var cb_blogUserGuid = "fd06470b-63cf-dd11-9e4d-001cf0cd104b";var cb_entryCreatedDate = '2011/3/9 13:20:00';&lt;/script&gt;&lt;div id="blog_post_info_block"&gt;&lt;div id="BlogPostCategory"&gt;分类: &lt;a href="http://www.cnblogs.com/zhangjun1130/category/276315.html"&gt;&lt;font color="#006bad"&gt;ArcGIS-ArcEngine&lt;/font&gt;&lt;/a&gt;&lt;/div&gt;&lt;div id="EntryTag"&gt;&lt;font color="#006bad"&gt;来自：&lt;a href="http://www.cnblogs.com/zhangjun1130/archive/2011/03/09/1978209.html"&gt;http://www.cnblogs.com/zhangjun1130/archive/2011/03/09/1978209.html&lt;/a&gt;&lt;/font&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;img src="http://www.cnblogs.com/gisoracle/aggbug/2454547.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/gisoracle/archive/2012/04/17/2454547.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/gisoracle/archive/2012/04/17/2453978.html</id><title type="text">arcgis excel</title><summary type="text">Microsoft Office Excel 表可直接在 ArcGIS 中打开，使用方法与其他表格数据源类似。例如，可以向 ArcMap 中添加这种表、在 ArcCatalog 中预览这种表，并可将这种表作为地理处理工具的输入数据。与其他数据一样，可以通过添加数据 对话框向 ArcMap 添加 Excel 文件。浏览到某个 Excel 文件时，您需选择要打开哪个表。例如，如果您有一个名为 sales_figures.xls 的 Excel 工作簿，此工作簿包含三个名称分别为 Sales、Month 和 Year to date 的工作表，每个工作表在 ArcGIS 中都是一个单独的表。在 Ar</summary><published>2012-04-17T09:02:00Z</published><updated>2012-04-17T09:02:00Z</updated><author><name>gisoracle</name><uri>http://www.cnblogs.com/gisoracle/</uri></author><link rel="alternate" href="http://www.cnblogs.com/gisoracle/archive/2012/04/17/2453978.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/gisoracle/archive/2012/04/17/2453978.html"/><content type="html">&lt;p id="GUID-F88E9FE0-11DF-439E-A708-8D0A3E25FC07"&gt;Microsoft Office Excel 表可直接在 ArcGIS 中打开，使用方法与其他表格数据源类似。例如，可以向 ArcMap 中添加这种表、在 ArcCatalog 中预览这种表，并可将这种表作为地理处理工具的输入数据。&lt;/p&gt;&lt;p id="GUID-86E92992-C4D0-4D9A-8A17-08B820BD533C"&gt;与其他数据一样，可以通过&lt;span class="wintitle"&gt;添加数据&lt;/span&gt; 对话框向 ArcMap 添加 Excel 文件。浏览到某个 Excel 文件时，您需选择要打开哪个表。例如，如果您有一个名为 sales_figures.xls 的 Excel 工作簿，此工作簿包含三个名称分别为 Sales、Month 和 Year to date 的工作表，每个工作表在 ArcGIS 中都是一个单独的表。在 ArcGIS 中，会保留 Excel 中所定义的对单元格或范围的所有名称引用。&lt;/p&gt;&lt;p id="GUID-56B38FD7-5EDF-4850-9793-74C35E554B43"&gt;通过 ArcGIS 进行访问时，工作表将显示为一个名称末尾带有 $ 的表，但命名区域将不包含 $。名称中包含空格的工作表或命名区域在表名称周围括有单引号。&lt;/p&gt;&lt;p id="GUID-B20F84A1-08A9-4AD1-A578-90AB574FDDF8"&gt;将表添加到 ArcMap 后，可以从内容列表的&amp;#8220;源&amp;#8221;视图中打开该表。但您将无法编辑该表或将记录导出为 Excel 格式。&lt;/p&gt;&lt;p id="GUID-F23D6FA6-21FB-4B0D-B3C3-9647D8C05914"&gt;以下示例对多工作表文档在 Microsoft Excel 中的显示方式和在 ArcMap &lt;span class="wintitle"&gt;添加数据&lt;/span&gt; 对话框中的显示方式进行了对比。&lt;/p&gt;&lt;ul id="UL_9590C46CFBDC4BB3BF3E23A215655850" purpose="ul"&gt;&lt;li id="GUID-CEBF76F8-E95B-4809-852A-5E997657FD17" purpose="li"&gt;在 Excel 窗口底部的&amp;#8220;工作表&amp;#8221;选项卡条上显示的三个工作表 &lt;div class="image" purpose="image"&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;img class="break" title="在 Excel 窗口底部的&amp;#8220;工作表&amp;#8221;选项卡条上显示的三个工作表" alt="在 Excel 窗口底部的&amp;#8220;工作表&amp;#8221;选项卡条上显示的三个工作表" src="http://help.arcgis.com/zh-cn/arcgisdesktop/10.0/help/005s/GUID-35AA2655-336F-4A4A-AE96-400E8511442D-web.png" purpose="img" /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/li&gt;&lt;li id="LI_2DB00825A31444C28F136C7422040C4F" purpose="li"&gt;ArcMap &lt;span class="wintitle"&gt;添加数据&lt;/span&gt; 对话框中的 sales_figures 工作簿内的可用工作表 &lt;div class="image" purpose="image"&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;img class="break" title="ArcMap&amp;#8220;添加数据&amp;#8221;对话框中的 Sales_Figure 工作簿内的 Excel 工作表" alt="ArcMap&amp;#8220;添加数据&amp;#8221;对话框中的 Sales_Figure 工作簿内的 Excel 工作表" src="http://help.arcgis.com/zh-cn/arcgisdesktop/10.0/help/005s/GUID-D14797F5-4387-4169-AD79-5E430A8E2D1D-web.png" purpose="img" /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p id="GUID-F8B8668D-B6CA-4A08-9617-3F5644C30F7C"&gt;使用 Microsoft Office Excel 文件时，需要牢记几个注意事项：&lt;/p&gt;&lt;ul id="UL_70C50BDFE08D44849D5C503BE96B7234" purpose="ul"&gt;&lt;li id="GUID-AB9C6493-400A-42B5-A020-02DF9A3CB9BF" purpose="li"&gt;ArcGIS 支持 Excel 2003 和更早版本的 .xls 文件以及 Excel 2007 .xlsx 文件。Excel 2007 的一大优势是它允许的工作表大小（1,048,576 行乘 16,384 列）比 Excel 2003 中的工作表大小（65,536 行乘 256 列）要大得多。&lt;/li&gt;&lt;li id="GUID-2AB514F7-1611-4565-9E8E-E5F6EABB4C9B" purpose="li"&gt;如果要在 ArcGIS 中使用 .xlsx 文件，但未安装 Excel 2007，则您将需要安装&amp;#8220;2007 Office System 驱动程序&amp;#8221;。可从 Microsoft 下载中心的&lt;a class="xref" href="http://links.esri.com/office_07_sysdriver" target="_blank" esrisubtype="extrel"&gt;此处&lt;/a&gt;下载此驱动程序。如果已安装 Microsoft Excel 2010，或者未安装任何版本的 Microsoft Excel，则在使用 .xls 或 .xlsx 文件前必须安装 2007 驱动程序。&lt;/li&gt;&lt;li id="GUID-7CF8A5E8-49E7-4D5F-B65C-D0DC7F1DFEAD" purpose="li"&gt;在 ArcGIS 中打开工作簿时，Excel 表在 ArcGIS 和 Excel 中均为只读。&lt;/li&gt;&lt;li id="GUID-30020712-94C0-41E0-9691-EEF39ED8A481" purpose="li"&gt;字段名称从工作表各列的首行中获取。您可以在表的&amp;#8220;属性&amp;#8221;对话框的&amp;#8220;字段&amp;#8221;选项卡上查看属性、设置字段名称的别名和设置字段可见性。&lt;/li&gt;&lt;li id="GUID-EE9F7BA1-9FA7-4368-8E6A-0E4F2E9D8CC7" purpose="li"&gt;与标准数据库不同，Excel 不会在输入数据时强制值的字段类型。因此，在 Excel 中指定的字段类型对 ArcGIS 中显示的字段类型不起任何决定作用。ArcGIS 中的字段类型是由该字段的头八行值扫描决定的。如果在单个字段中扫描到混合数据类型，则该字段将以字符串字段的形式返回，并且其中的值将被转换为字符串。&lt;/li&gt;&lt;li id="GUID-325FF6E4-682E-4CED-BFC2-2917CE8809C0" purpose="li"&gt;在 ArcGIS 中，数值字段将被转换为&amp;#8220;双精度&amp;#8221;数据类型。&lt;/li&gt;&lt;li id="GUID-2BD7E0C6-E048-40BF-823A-24C625A200DC" purpose="li"&gt;Excel 表与其他&lt;a class="xref" href="http://help.arcgis.com/zh-cn/arcgisdesktop/10.0/help/005s/005s0000000z000000.htm" rel="/zh-cn/arcgisdesktop/10.0/help/005s/005s0000000z000000.htm"&gt;不包含 ObjectID 字段的表&lt;/a&gt;类似。这表示您无法在地图中编辑、执行关联或进行选择。（注：ArcMap 不会将 Excel 中的任何列转换为 ArcGIS ObjectID 字段。例如，数值列 OID 或 autonumber 字段将是 ArcMap 中的双精度值。）&lt;/li&gt;&lt;li id="GUID-80CD45E2-B24B-482E-9CEF-A1EF790E824E" purpose="li"&gt;ArcGIS 中的 Excel 文件支持使用 Microsoft OLE DB Provider for Jet 4.0 及其支持的 Excel 索引顺序访问方法 (ISAM) 驱动程序。有关 Microsoft OLE DB Provider for Jet 4.0 及其支持的 Excel ISAM 的详细信息，请参阅 &lt;a class="xref" href="http://links.esri.com/microsoft_kb326548" target="_blank" esrisubtype="extrel"&gt;Microsoft KB 文章 326548&lt;/a&gt;。&lt;/li&gt;&lt;li id="GUID-5EE040C8-5895-4804-9E66-313F1500D4BC" purpose="li"&gt;在 ArcGIS 中，您无法创建新的 Excel 文件或将记录导出为 Excel 文件。&lt;/li&gt;&lt;li id="GUID-9F8840A5-BBAA-4693-97C4-59CAF8E20614" purpose="li"&gt;您还可以通过 OLE DB 数据库连接打开 Excel 文件&lt;/li&gt;&lt;/ul&gt;&lt;img src="http://www.cnblogs.com/gisoracle/aggbug/2453978.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/gisoracle/archive/2012/04/17/2453978.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/gisoracle/archive/2012/04/05/2433417.html</id><title type="text">ArcEngine开发——在64位操作系统下使用VS2010中开发ArcEngine应用程序的编译问题</title><summary type="text">来自：http://www.cnblogs.com/hans_gis/archive/2011/07/22/2114013.html首先说明一下所搭建的环境，信息比较多，文字难以描述，就直接上图咯。 操作系统信息： Visual Studio 2010信息： ArcGIS系列软件信息： 以上是我进行ArcGIS Engine 10.0开发的详细环境信息。下面描述使用ArcGIS Engine的MapControl Application模板时的问题。 1、启动VS2010，新建一个项目； 2、使用.NET Framework 3.5，依次展开Visual C#...</summary><published>2012-04-05T09:07:00Z</published><updated>2012-04-05T09:07:00Z</updated><author><name>gisoracle</name><uri>http://www.cnblogs.com/gisoracle/</uri></author><link rel="alternate" href="http://www.cnblogs.com/gisoracle/archive/2012/04/05/2433417.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/gisoracle/archive/2012/04/05/2433417.html"/><content type="html">&lt;p&gt;来自：&lt;a href="http://www.cnblogs.com/hans_gis/archive/2011/07/22/2114013.html"&gt;http://www.cnblogs.com/hans_gis/archive/2011/07/22/2114013.html&lt;/a&gt;&lt;/p&gt;&lt;p&gt;首先说明一下所搭建的环境，信息比较多，文字难以描述，就直接上图咯。 &lt;/p&gt;&lt;p&gt;操作系统信息：&lt;/p&gt;&lt;p&gt;&lt;img alt="" src="http://pic002.cnblogs.com/images/2011/140893/2011072214135515.png" /&gt;&lt;/p&gt;&lt;p&gt;Visual Studio 2010信息：&lt;/p&gt;&lt;p&gt;&lt;img alt="" src="http://pic002.cnblogs.com/images/2011/140893/2011072214154385.png" /&gt;&lt;/p&gt;&lt;p&gt;ArcGIS系列软件信息：&lt;/p&gt;&lt;p&gt;&lt;img alt="" src="http://pic002.cnblogs.com/images/2011/140893/2011072214165767.png" /&gt;&lt;/p&gt;&lt;p&gt;以上是我进行ArcGIS Engine 10.0开发的详细环境信息。下面描述使用ArcGIS Engine的MapControl Application模板时的问题。&lt;/p&gt;&lt;p&gt;1、启动VS2010，新建一个项目；&lt;/p&gt;&lt;p&gt;2、使用.NET Framework 3.5，依次展开Visual C#-&amp;gt;ArcGIS-&amp;gt;Extending ArcObjects，选择MapControl Application模板，命名该项目并指定存储路径，点击确定。&lt;/p&gt;&lt;p&gt;3、如此便依据模板建立了一个ArcGIS Engine应用程序，不要做其它任何操作，编译并建立项目，程序可以准确运行。（请注意在完成step 2后，解决方案管理器里列出了该项目的所有项，但是没有任何项是处于编辑状态的，也就是说VS2010的编辑区是空的）&lt;/p&gt;&lt;p&gt;下面问题开始了。大家知道，可以在设计开发阶段通过MapControl控件的属性指定地图文档或者图层。&lt;/p&gt;&lt;p&gt;4、双击解决方案管理器中的MainForm.cs，在编辑区显示了MainForm的设计视图，可以看到由几个ArcEngine的控件和一个菜单栏填充了整个窗体。&lt;/p&gt;&lt;p&gt;5、通过MapControl的属性对话框为其添加图层数据，或者指定地图文档。&lt;/p&gt;&lt;p&gt;6、再次编译，发生了如下错误：&lt;/p&gt;&lt;p&gt;&lt;img alt="" src="http://pic002.cnblogs.com/images/2011/140893/2011072215014153.jpg" /&gt;&lt;/p&gt;&lt;p&gt;中文描述：未能加载文件或程序集''file:///D:/Program Files (x86)/ArcGIS/DeveloperKit10.0/DotNet/ESRI.ArcGIS.ADF.Local.dll''&amp;nbsp;或它的某一个依赖项。试图加载格式不正确的程序。行 189 位置5。.&lt;br /&gt;英文描述：Could not load file or assembly ''file:///D:/Program Files (x86)/ArcGIS/DeveloperKit10.0/DotNet/ESRI.ArcGIS.ADF.Local.dll'' or one of its dependencies. An attempt was made to load a program with an incorrect format. Line 189, position 5.&amp;nbsp;&lt;br /&gt;是很怪异的一个问题。既然如此，那么移除MapControl控件的属性框中的数据，在编译，仍然是该错误。ArcGIS论坛&lt;a href="http://forums.arcgis.com/index.php"&gt;&lt;font color="#6466b3"&gt;http://forums.arcgis.com/index.php&lt;/font&gt;&lt;/a&gt;中也有人详细描述过该问题，详见&lt;a href="http://forums.arcgis.com/threads/16034-vs-2010-arcobject-10-mapcontrol-app-compile-problem"&gt;&lt;font color="#6466b3"&gt;http://forums.arcgis.com/threads/16034-vs-2010-arcobject-10-mapcontrol-app-compile-problem&lt;/font&gt;&lt;/a&gt;完成上述Step1~4，没有Step5，编译出现同样的错误。&lt;br /&gt;在上面帖子中，提到了一个解决办法&lt;a href="http://support.microsoft.com/kb/2028833"&gt;&lt;font color="#6466b3"&gt;http://support.microsoft.com/kb/2028833&lt;/font&gt;&lt;/a&gt;，详见&lt;a href="http://support.microsoft.com/kb/2028833"&gt;&lt;font color="#6466b3"&gt;MSBuild 4.0 or Visual Studio 2010 may fail to compile a 32-bit application targeted for .Net Framework 3.5, 3.0 or 2.0 on x64 machine&lt;/font&gt;&lt;/a&gt;。说是MSBuild或者VS2010在64位的操作系统下，基于.NET Framework 3.5，3.0或2.0来建立32位的应用程序可能会失败。&lt;/p&gt;&lt;p&gt;详细解决步骤如下：&lt;/p&gt;&lt;p&gt;1、关闭所有Visual Studio；&lt;/p&gt;&lt;p&gt;2、&lt;span style="font-family: verdana, 'ms song', Arial, Helvetica, sans-serif; color: #393939" class="Apple-style-span"&gt;以管理员的身份打开VS2010的命令提示窗口；&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family: verdana, 'ms song', Arial, Helvetica, sans-serif; color: #393939" class="Apple-style-span"&gt;3、更改目录至&lt;/span&gt;"&amp;lt;system_drive&amp;gt;:\Program Files (x86)\Microsoft SDKs\Windows\v&amp;lt;x.xx&amp;gt;\bin\&amp;#8221;下面；&lt;/p&gt;&lt;p&gt;4、输入该命令corflags /32bit+ ResGen.exe /force，执行；&lt;/p&gt;&lt;p&gt;5、使用记事本打开&amp;lt;project_name&amp;gt;.csproj文件；&lt;/p&gt;&lt;p&gt;6、在PropertyGroup下添加&amp;lt;ResGenToolArchitecture&amp;gt;Managed32Bit&amp;lt;/ResGenToolArchitecture&amp;gt;，保存，关闭退出。&lt;/p&gt;&lt;p&gt;现在在VS2010中重新打开原先的项目，编译通过，可以正确运行了！&lt;/p&gt;&lt;p&gt;对于该问题，还有另一个解决办法，打开项目属性页面，选择应用程序选项卡，设置目标框架为.NET Framework 4，如下如所示：&lt;/p&gt;&lt;p&gt;&lt;img alt="" src="http://pic002.cnblogs.com/images/2011/140893/2011072300562983.jpg" /&gt;&lt;/p&gt;&lt;p&gt;问题得到初步解决，仔细想想这里还有个问题：&lt;span style="color: #ff0000"&gt;按上述问题发生的步骤，完成Step1~3后，程序为什么可以正确执行呢？&lt;/span&gt;后续会对该问题做进一步的分析......&lt;/p&gt;&lt;p&gt;有关CorFlags.exe转换工具的详细信息请参见&lt;a href="http://msdn.microsoft.com/zh-cn/library/ms164699.aspx"&gt;&lt;font color="#6466b3"&gt;http://msdn.microsoft.com/zh-cn/library/ms164699.aspx&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;有关Resgen.exe资源文件生成器的详细信息请参见&lt;a href="http://msdn.microsoft.com/zh-cn/library/ccec7sz1.aspx"&gt;&lt;font color="#6466b3"&gt;http://msdn.microsoft.com/zh-cn/library/ccec7sz1.aspx&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;ArcGIS Resource Center上关于该问题的一片文章&lt;a href="http://resources.arcgis.com/zh-cn/content/kbase?fa=articleShow&amp;amp;d=37879" target="_blank"&gt;&lt;font color="#6466b3"&gt;ArcGIS Engine Controls fail to build using Visual Studio 2010 on a 64-bit OS&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;&lt;div id="MySignature"&gt;&lt;div id="AllanboltSignature"&gt;&lt;p id="PSignature"&gt;&lt;br /&gt;作者：&lt;a href="http://www.cnblogs.com/hans_gis/" target="_blank"&gt;&lt;font color="#6466b3"&gt;韩 锁&lt;/font&gt;&lt;/a&gt; &lt;br /&gt;出处：&lt;a href="http://www.cnblogs.com/hans_gis/" target="_blank"&gt;&lt;font color="#6466b3"&gt;http://www.cnblogs.com/hans_gis/&lt;/font&gt;&lt;/a&gt; &lt;br /&gt;本文版权归作者和博客园共有，欢迎转载，但未经作者同意必须保留此段声明，且在文章页面明显位置给出原文连接，否则保留追究法律责任的权利。&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;img src="http://www.cnblogs.com/gisoracle/aggbug/2433417.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/gisoracle/archive/2012/04/05/2433417.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/gisoracle/archive/2012/04/05/2432731.html</id><title type="text">ae中gp执行 Error HRESULT E_FAIL has been returned from a call to a COM component错误</title><summary type="text">ae中gp执行 Error HRESULT E_FAIL has been returned from a call to a COM component错误</summary><published>2012-04-05T02:04:00Z</published><updated>2012-04-05T02:04:00Z</updated><author><name>gisoracle</name><uri>http://www.cnblogs.com/gisoracle/</uri></author><link rel="alternate" href="http://www.cnblogs.com/gisoracle/archive/2012/04/05/2432731.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/gisoracle/archive/2012/04/05/2432731.html"/><content type="html">&lt;p&gt;ae中gp执行 Error HRESULT E_FAIL has been returned from a call to a COM component错误&lt;/p&gt;&lt;p&gt;根本的问题是，你使用的名字和模型的name不一致&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://www.cnblogs.com/gisoracle/aggbug/2432731.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/gisoracle/archive/2012/04/05/2432731.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/gisoracle/archive/2012/04/05/2432724.html</id><title type="text">C# 建立快捷方式</title><summary type="text">private void CreateLink(string linkName, string ExeName,string Description) { WshShell shell = new WshShell(); IWshShortcut shortcut = (IWshShortcut)shell.CreateShortcut(linkName); shortcut.TargetPath = ExeName; shortcut.WorkingDirectory =Path.GetDirectoryName(ExeName); shortcut.WindowStyle = 1; sh.</summary><published>2012-04-05T01:53:00Z</published><updated>2012-04-05T01:53:00Z</updated><author><name>gisoracle</name><uri>http://www.cnblogs.com/gisoracle/</uri></author><link rel="alternate" href="http://www.cnblogs.com/gisoracle/archive/2012/04/05/2432724.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/gisoracle/archive/2012/04/05/2432724.html"/><content type="html">&lt;p&gt;private void CreateLink(string linkName, string ExeName,string Description)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WshShell shell = new WshShell();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IWshShortcut shortcut = (IWshShortcut)shell.CreateShortcut(linkName);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; shortcut.TargetPath = ExeName;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; shortcut.WorkingDirectory =Path.GetDirectoryName(ExeName);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; shortcut.WindowStyle = 1;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; shortcut.Description = Description;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; shortcut.IconLocation = System.Environment.SystemDirectory + "\\" + "shell32.dll, 165";&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; shortcut.Save();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private void button3_Click(object sender, EventArgs e)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CreateLink(Application.StartupPath + "/两权发证.lnk", @"D:\temp\安徽\安徽.mxd", "两权发证");&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //WshShell shell = new WshShell();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //IWshShortcut shortcut = (IWshShortcut)shell.CreateShortcut(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp;&amp;nbsp; Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory) +&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp;&amp;nbsp; "\\" + "Allen's Application.lnk"&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp;&amp;nbsp; );&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //shortcut.TargetPath = System.Reflection.Assembly.GetExecutingAssembly().Location;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //shortcut.WorkingDirectory = System.Environment.CurrentDirectory;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //shortcut.WindowStyle = 1;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //shortcut.Description = "Launch Allen's Application";&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //shortcut.IconLocation = System.Environment.SystemDirectory + "\\" + "shell32.dll, 165";&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //shortcut.Save();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;p&gt;参考：&lt;a href="http://www.cnblogs.com/allenlooplee/articles/228264.html?login=1"&gt;http://www.cnblogs.com/allenlooplee/articles/228264.html?login=1&lt;/a&gt;&lt;/p&gt;&lt;img src="http://www.cnblogs.com/gisoracle/aggbug/2432724.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/gisoracle/archive/2012/04/05/2432724.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry></feed>
