摘要: 2、远程桌面公司买了台好的服务器,然后把原来那些服务器都做成虚拟机放到服务器上。然后坑爹的可以ping通,但是远程不过去了。于是在网上各种找各种查。一般远程不过去也就一下几种情况。1、远程压根就没开启,然后不管怎么远程都是不可能远程的过去了。解决方法:系统----->属性------->远程------->允许远程2、Terminal Services服务没启动解决方法:将Terminal Services服务启动。(和远程左面有关的服务不止这一个)3、端口被改了远程桌面默认端口是3389,但是我们可以通过修改注册表对这个端口进行修改。该值在注册表的路径为HKEY_LOCAL 阅读全文
posted @ 2013-05-07 10:48 xjzhangdc 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 1、dll hell不管是公司自己做的类库,还是引用的第三方类库。各种dll,不同的版本。各种问题。 阅读全文
posted @ 2013-04-20 13:34 xjzhangdc 阅读(84) 评论(0) 推荐(0) 编辑
摘要: AEArcGIS Engine开发基础之QI :http://www.cnblogs.com/atravellers/archive/2010/01/13/1646377.htmlArcEngine数据编辑操作--添加线:http://blog.sina.com.cn/s/blog_506f0a950100dbgk.html 阅读全文
posted @ 2013-03-29 11:18 xjzhangdc 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 1、打开ShapefileView Code 1 private IFeatureLayer OpenShapeFile(string pPath) 2 { 3 IWorkspaceFactory pWorkspaceFactory = new ShapefileWorkspaceFactory(); // 1 4 string pFolder = System.IO.Path.GetDirectoryName(pPath); 5 string pFileName = System.... 阅读全文
posted @ 2013-03-29 10:20 xjzhangdc 阅读(181) 评论(0) 推荐(0) 编辑
摘要: View Code var systemRoot = System.Environment.SystemDirectory;Process.Start(systemRoot[0].ToString() + @":\Program Files\Common Files\microsoft shared\ink\TabTip.exe");读取文本文件并范围listarray类型View Code 1 private ArrayList ReadTxt() 2 { 3 string path = Application.StartupPath; 4 ... 阅读全文
posted @ 2013-03-25 17:20 xjzhangdc 阅读(154) 评论(0) 推荐(0) 编辑
摘要: C#连接数据库,并查询View Code 1 //连接数据库的连接符的默认必须参数:“Server=服务器地址或者服务器名(.代表本机);Database=数据库名;User ID=用户名称;Password=密码(不解释)”这四个参数是必须的。至于其他的参数自己也不是很懂。日后补充。 2 string connectionString = "Server=.;Database=CCTV;User ID=sa;Password=123456;MultipleActiveResultSets=True"; 3 SqlConnection ... 阅读全文
posted @ 2013-03-21 20:17 xjzhangdc 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 问题:遇到'异常来自 HRESULT:0x80040228’解决方法:添加一个license控件就行了.参考:http://bbs.esrichina-bj.cn/ESRI/viewthread.php?tid=14967问题:遇到‘ArcGIS version not specified. You must call RuntimeManager.Bind before creating any ArcGIS components.’解决方法:View Code /// <summary> /// 应用程序的主入口点。 /// </summary> ... 阅读全文
posted @ 2013-03-20 16:05 xjzhangdc 阅读(291) 评论(0) 推荐(0) 编辑
摘要: --创建表 CREATE TABLE geotable ( id int, shape geometry )--判断某表是否已经存在,若存在,则删除已有数据表IF OBJECT_ID ( 'dbo.SpatialTable', 'U' ) IS NOT NULL DROP TABLE dbo.SpatialTable; --复制表结构,创建新表 --select * into junctionunion from FLOOR2_NET_JUNCTIONS where 1=2--数据类型转换declare @i intset @i=11select CAST(.. 阅读全文
posted @ 2013-03-19 15:06 xjzhangdc 阅读(99) 评论(0) 推荐(0) 编辑
摘要: # 例:遍历d盘下的所有文件夹及文件import osimport arcgisscriptinggp = arcgisscripting.create()# 遍历d盘下的所有文件夹及文件for root, dirs, files in os.walk('F:\shp'): for name in files: inText=os.path.join(root,name) inSep="." shpname=name.replace('.txt','.shp') onlyname=name.replace('.txt& 阅读全文
posted @ 2013-03-19 14:40 xjzhangdc 阅读(244) 评论(0) 推荐(0) 编辑
摘要: # Create geoprocessing dispatch objectimport arcgisscriptinggp = arcgisscripting.create() # Set up inputs to toolinTxt = r"F:\shp\ELE_V1_1.txt"inSep = "."strms = r"F:\shapefile\ELE_V1_1.shp" # Run toolgp.CreateFeaturesFromTextFile(inTxt, inSep, strms, "#") #pr 阅读全文
posted @ 2013-03-19 14:39 xjzhangdc 阅读(966) 评论(0) 推荐(0) 编辑