05 2012 档案

CS 客户端不引用AE
摘要:cs版,在服务端引用AE的各个reference。USL层传入参数,server端分析出结果,然后以DataTable,数组、或者类的方式方法。返回载体不要包含AE的类型。这样,客户端不用安装AERuntime,不用引用AE组件 阅读全文

posted @ 2012-05-30 14:25 imihiro 阅读(277) 评论(1) 推荐(0)

C# 创建xml文档. xml文件中有中文字符,无法用浏览器显示
摘要:XmlDocument doc = new XmlDocument(); XmlDeclaration dec = doc.CreateXmlDeclaration("1.0", "GB2312", null); doc.AppendChild(dec); //创建一个根节点(一级) XmlElement root = doc.CreateElement("First"); doc.AppendChild(root);//xml文件包含中文字符,且没有说明xml编码格式时.就无法被xmlDocument对象和IE识别。 解决方式,在x 阅读全文

posted @ 2012-05-25 18:12 imihiro 阅读(379) 评论(0) 推荐(0)

Access 语句 参数顺序
摘要:string sqlstr="update tbTest setname=@name,gender=@gender, duty=@duty, age=@age where id=@id"Oleparameter[] paras=new Oleparameter[5];paras[0]=new Oleparameter("@name",OleDbType.VarCHar,50);paras[0].Value=nameValue;paras[1]=new Oleparameter("@gender",OleDbType.VarCHar,5 阅读全文

posted @ 2012-05-25 14:18 imihiro 阅读(237) 评论(0) 推荐(0)

类 不包含 方法的定义
摘要:右键点击类的方法,能够导航到定义,但编译的时候总是报错。原因: 两个类重名或者 类与 ashx重名解决方式: 添加 命名空间.类名.方法名来调用方法 阅读全文

posted @ 2012-05-23 20:57 imihiro 阅读(320) 评论(0) 推荐(0)

3表以上 的 join 查询
摘要:在Access中, 每次join完都要 添加括号才能继续 joinselect * from ((tbresident left join tbsingleold on TBResident.residentid=tbsingleold.residentid) left join tbwillparent on TBResident.residentid=tbwillparent.residentid)最后可以添加 where 语句//tbresident是主表 ,其余4个表是从表 (主表left join 4个从表)select * from (((tbresident left join 阅读全文

posted @ 2012-05-23 19:59 imihiro 阅读(374) 评论(0) 推荐(0)

Asp.NET 获取网站根目录
摘要:http://www.cnblogs.com/Leo_wl/archive/2010/06/12/1757148.html 阅读全文

posted @ 2012-05-23 13:23 imihiro 阅读(162) 评论(0) 推荐(0)

C# 类型取值范围
摘要:帮助-->如何实现 阅读全文

posted @ 2012-05-23 09:05 imihiro 阅读(231) 评论(0) 推荐(0)

Access 自动编号类型 范围
摘要:2,147,483,647 21.47亿 阅读全文

posted @ 2012-05-23 09:02 imihiro 阅读(158) 评论(0) 推荐(0)

Access数据库 升迁 SQLServer
摘要:http://wenku.baidu.com/view/d223d7ee19e8b8f67c1cb9ae.html 阅读全文

posted @ 2012-05-23 08:29 imihiro 阅读(158) 评论(0) 推荐(0)

Access 操作必须使用可更新查询
摘要:3个原因导致:(1) mdb文件被设置成只读 操作必须使用一个可更新的查询INSERT INTO TBDisease (ResidentID, DiseaseType, Health)VALUES (1, '感冒', '快好了')解决方式:将mdb文件只读的勾去掉.delete from tbdisease where residentid=1(2)update语句错误update tbdisease set DiseaseType=@DiseaseType ,Health=@Health ,Memo=@Memo where residentid=@reside 阅读全文

posted @ 2012-05-23 08:01 imihiro 阅读(271) 评论(0) 推荐(0)

Access外键 级联更新、删除
摘要:工具栏-->"关系"。 打开主表和从表。 将主表的字段拖动到从表的对应字段。 (两个字段要求类型相同。 如果主表是自动编号,那么从表用长整型.)Access添加外键约束(1)"实施完整性约束"(2)"左联接"(3)"实施完整性约束" 下的级联更新和级联删除勾选上,主表删除记录 阅读全文

posted @ 2012-05-23 07:56 imihiro 阅读(1412) 评论(0) 推荐(0)

SDE open rastercatalog,遍历rasterCatalog下的所有RasterDataset
摘要:IRasterWorkspaceEx pRasterWex=Utilities.OpenSDERasterWSEx();//访问SDE 中的 RasterCatalog//连接SDE 中的RasterCatalog public static IRasterWorkspaceEx OpenSDERasterWSEx() { ESRILicense();//LicenseProduce.Engine 此方法通过. //LicenseProduct.EngienGeoDB 此方法异常 ... 阅读全文

posted @ 2012-05-17 20:53 imihiro 阅读(1192) 评论(0) 推荐(0)

栅格数据 存放
摘要:查看Help中的 ArcGis Glossary可以知道RasterDataset 是: Esri Grid, Tiff, Erdas三种栅格数据之一.Esri Grid 的文件形式:一个目录,下游5~8个adf文件.在Catalog中,应该把多个空间参考相同的RasterDataset 放在同一个 RasterCatalog.在Sde中,右键-->New-->New RasterCatalog ,设置Raster Coordinate System和Geometry Coordinate System,就新建好了Raster Catalog.右键点击Raster Catalog, 阅读全文

posted @ 2012-05-14 22:30 imihiro 阅读(343) 评论(0) 推荐(0)

SDE9.3 for SqlServer 安装的两个要点
摘要:安装了三个小时sde,一直没成,提示:[Mon May 14 20:43:50 2012] SDE schema object install not completed.[Mon May 14 20:43:50 2012] ERROR installing/upgrading ArcSDE, Error = -51[Mon May 14 20:44:33 2012] Error creating VERSION table. (-51)[Mon May 14 20:44:33 2012] DBMS error code: 2760Microsoft SQL Native Client: 指定 阅读全文

posted @ 2012-05-14 21:48 imihiro 阅读(1684) 评论(0) 推荐(0)

CS-- WebService、 windowsService
摘要:一、WebServiceWebService就是Asp.NET Web服务在新建-->VisualC#-->Web-->Asp.NET Web服务应用程序http://www.cnblogs.com/denylau/archive/2010/07/23/1783530.htmlService端如何添加方法? [WebMethod] public string HelloWorld() { return "Hello World"; }Service端如何添加静态类?将静态类添加到App_Code目录下.即可在Service.cs中引用客户端如何调用方法?h 阅读全文

posted @ 2012-05-14 16:50 imihiro 阅读(834) 评论(0) 推荐(0)

ModelBuilder 入门
摘要:什么是Model? Model是 input data, tools, output构成的流程.蓝色 :输入数据绿色 :输出数据橙色 :ToolModel由这三类元件组成.Model是自自定义的工具项:在ToolBox 中,New一个toolbox,命名成MyTool.右键MyToolNew一个Model.编辑好之后可以保存.右键点击可以Edit. 阅读全文

posted @ 2012-05-11 20:50 imihiro 阅读(683) 评论(0) 推荐(0)

List 排序功能实现
摘要:public class ClippedRasterComparer : IComparer<ClippedRaster> { public int Compare(ClippedRaster clr1, ClippedRaster clr2) { //return clr1._absoluteVolume.CompareTo(clr2._absoluteVolume);//升序 return clr2._absoluteVolume.CompareTo(clr1._absoluteVolume);//降序 ... 阅读全文

posted @ 2012-05-11 16:10 imihiro 阅读(272) 评论(0) 推荐(0)

2012 -05 TIOBE排行 Objective-C进8%,
摘要:Obj-C是IPhone和IPad的唯一编程语言。语言本身从1986到2012并无变化.2011年6月,Obj-C的占有率是2.07%。2012-9 阅读全文

posted @ 2012-05-11 08:13 imihiro 阅读(188) 评论(0) 推荐(0)

.NET 文件夹拷贝
摘要:/// <summary> /// 文件夹拷贝 /// </summary> /// <param name="sPath"></param> /// <param name="dPath"></param> /// <returns></returns> public static string CopyTin(string sPath, string dPath) { string flag = "success"; try ... 阅读全文

posted @ 2012-05-10 14:41 imihiro 阅读(302) 评论(0) 推荐(0)

Static Class 存储配置信息
摘要:public static class Configuration { static string _shpFolder; static string _shpName; static Configuration() { _shpFolder = @"E:\CZShapes"; _shpName = "funPolygon"; } public static string ShpFolder { get { return _shpFolde... 阅读全文

posted @ 2012-05-10 14:22 imihiro 阅读(221) 评论(0) 推荐(0)

AE CreateFeatureClass 创建shp. 删除shp. 向shp中添加要素
摘要:/// <summary> /// 创建多边形shp /// </summary> /// <param name="pPolygon"></param> /// <param name="shpPath"></param> public static void CreatePolygonFeatureClass(IPolygon pPolygon, string shpfolder,string shpname) { IWorkspaceFactory pWorkSpaceFac. 阅读全文

posted @ 2012-05-10 13:02 imihiro 阅读(11110) 评论(0) 推荐(0)

AE ComException HRESULT, 空间分析语句不执行
摘要:解决方式: 添加licenseControlHRESULT:0x80040706 创建shp时,缺乏必需字段空间分析语句不执行:检查是否有AE分析模块的许可,是否已过期 阅读全文

posted @ 2012-05-10 11:36 imihiro 阅读(341) 评论(0) 推荐(0)

FileStream, 创建txt、xml文件
摘要:/// <summary> /// 创建python文件 /// </summary> /// <param name="shpparam"></param> /// <param name="tinworkspace"></param> /// <param name="tinname"></param> /// <param name="savepath"></param> public st 阅读全文

posted @ 2012-05-09 17:30 imihiro 阅读(490) 评论(0) 推荐(0)

Python featureClass clip Tin
摘要:# Purpose: Adding features to a TIN.# Create the Geoprocessor objectimport arcgisscriptinggp = arcgisscripting.create()#Check out the 3D Analyst extensiongp.CheckOutExtension ("3D")try: # Set the workspace (to avoid having to type in the full path to the data e # gp.workspace = "D:/Do 阅读全文

posted @ 2012-05-09 16:29 imihiro 阅读(434) 评论(0) 推荐(0)

AE TIN的切割
摘要:在ArcMap -->ToolBox-->TinCreation-->Edit Tin传入参数1:TIN传入参数2:FeatureClass选择好FeatureClass之后,有一个参数是SF_type SF_type的取值和产生TIN的效果:valueresult regioneffecthardclipPolygon regionIf polygon out cover, out part will also generate TinhardlinePolygon region Union Tin regionUnion region Tin 阅读全文

posted @ 2012-05-09 14:20 imihiro 阅读(374) 评论(0) 推荐(0)

ArcGIS GeoDataBase GeoDataset dataset
摘要:shp ,raster 对应 FeatrueClass多个空间参考相同的 feature class -->GeoDatasetGeodataset(Networkdataset) 必须存在于 GeoDataBase中。GeodataBase分为 Personal GDB 和 SDE。GDB是将实体文件存到mdb(access数据库中)。SDE则是将实体文件存到SQLServer或者Oracle中。 阅读全文

posted @ 2012-05-09 11:55 imihiro 阅读(779) 评论(0) 推荐(0)

AE Geoprocessor 实现 AnalysisTool Union功能
摘要:/// <summary> /// gp实现featureClass的 Analysis Union功能 /// </summary> /// <param name="shp1">featureclass</param> /// <param name="shp2">featureclass</param> public static void UnionShape(string shp1, string shp2) { Geoprocessor gp = new Geopro.. 阅读全文

posted @ 2012-05-09 11:17 imihiro 阅读(720) 评论(0) 推荐(0)

函数图象绘制 控件 ntgraph
摘要:http://wenku.baidu.com/view/c34e4507e87101f69e319509.html 阅读全文

posted @ 2012-05-08 21:19 imihiro 阅读(304) 评论(0) 推荐(0)

AE Raster数据 Clip并保存
摘要:http://hi.baidu.com/%C4%FE%CE%A8%CA%C7%C4%FE%CE%A8/blog/item/cefc891c39579aeb1bd576c9.html 阅读全文

posted @ 2012-05-08 09:35 imihiro 阅读(341) 评论(0) 推荐(0)

AE 各分析适用数据
摘要:3D Analysis(1)TIN (2)RasterCutFill分析 基于TIN和基于Raster,结果相差 万分之五。TIN上一个点包含哪些信息? 坐标信息(x,y) Elevation Slope AspectRaster上一个点包含哪些信息? 坐标信息(x,y) PixelValue (如果从TIN生成Raster,PixelValue可存储高程值)Raster数据进行3DAnalysis的原理? Raster上点的PixelValue存储了高程信息,即可进行3DAnalysis.分析名 适用数据 结果数据Contour Raster/TIN ShpSlope Raster/TIN 阅读全文

posted @ 2012-05-08 09:06 imihiro 阅读(344) 评论(0) 推荐(0)

AE SceneControl 滚轮实现缩放功能
摘要:private void axSceneControl_OnMouseWheel(object sender, MouseEventArgs e) { try { System.Drawing.Point pSceLoc = axSceneControl1.PointToScreen(this.axSceneControl1.Location); System.Drawing.Point Pt = this.PointToScreen(e.Location); ... 阅读全文

posted @ 2012-05-07 16:59 imihiro 阅读(944) 评论(0) 推荐(0)

AE MapControl、SceneControl的ToolBar 快速实现
摘要:ToolBar在AE已经被封装好,只需要拖动此控件并设置若干属性即可实现Desktop中的相应功能(1)在窗体上拖一个ArcEngine的 ToolBarControl(2)右键点击ToolBarControl -->属性 1>在Items下选项卡下选择要添加的工具。 可以看到Commands和ToolSet下不含了地图浏览、属性查询、空间分析的大部分功能。订制桌面软件,drag几步完成大部分。2>在General选项卡下,将Buddy设置成要关联的控件。 要关联的控件可以是下列5项之一。 The buddy control can be a MapControl, Page 阅读全文

posted @ 2012-05-07 16:39 imihiro 阅读(1879) 评论(1) 推荐(0)

AE intersect、clip的实现
摘要:/// <summary> /// rectangle/envelop 裁剪线 /// </summary> /// <param name="pPolyLine"></param> /// <param name="pEnvelop"></param> /// <returns></returns> public static IPolyline GetClippedPolyline(IPolyline pPolyLine,IEnvelope pEnvelo 阅读全文

posted @ 2012-05-06 21:57 imihiro 阅读(5002) 评论(0) 推荐(0)

C#画图闪烁
摘要:http://www.cnblogs.com/Cybean/archive/2012/01/12/2321014.html其他方式: 将图元控件中的内容分为经常刷新和很少刷新两部分。 在控件上添加picturebox,将很少刷新的部分写道内存中存为bitmap,然后显示在pictureBox中。 Bitmap bmp = ProfileBitmap(this._lilines, toltallength); this.pictureBox1.Image = bmp as Image; public Bitmap ProfileBitmap(List<... 阅读全文

posted @ 2012-05-06 17:13 imihiro 阅读(446) 评论(0) 推荐(0)

form常见操作
摘要:http://apps.hi.baidu.com/share/detail/16571831窗体首次显示 private void FrmProfile_Shown(object sender, System.EventArgs e) { this.DrawAll();//首次显示窗体 绘制剖面线 }窗体只能在指定区域内移动方法一:1> 父窗体和子窗体都继承了Form类 2>父窗体的IsMdiContainer属性设置成true 3>子窗体的MdiFather属性设置成父窗体效果: 子窗体无法出父窗体的范围消息,禁止窗体移动ht... 阅读全文

posted @ 2012-05-06 14:10 imihiro 阅读(168) 评论(0) 推荐(0)

AE 坐标转换_ 常见细节
摘要:http://hi.baidu.com/%D6%DC%B4%BA521/blog/item/16eb3902a54fcb6503088185.html /// <summary> /// 从经纬坐标串生成 投影坐标下的线 /// </summary> /// <param name="gcsStr"></param> /// <returns></returns> public static IPolyline GetLinePCSFromGCSStr(string gcsStr) { ... 阅读全文

posted @ 2012-05-04 11:47 imihiro 阅读(1785) 评论(0) 推荐(0)

AE 实现3DAnalysis Profile Graph功能 (基于TIN,基于Raster 得到线上所有点的高程)
摘要:/// <summary> /// 线与TIN相交,获取剖面样点的x,y,z /// </summary> /// <param name="pPolyLine">剖面线</param> /// <param name="pSurface">Tin表面</param> /// <param name="interpolatePtsCount">生成多少个插值点</param> public IPointCollection RunTinPr 阅读全文

posted @ 2012-05-04 09:01 imihiro 阅读(1872) 评论(0) 推荐(1)

AE 在MapConntrol上画多边形、面
摘要:/// <summary> /// 在MapControl上画多边形、面 /// </summary> /// <param name="activeView"></param> public void DrawPolygon(ESRI.ArcGIS.Carto.IActiveView activeView) { if (activeView == null) { return; } ESRI... 阅读全文

posted @ 2012-05-04 08:25 imihiro 阅读(2219) 评论(0) 推荐(0)