yushff

code the world。

导航

上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 17 下一页

2012年11月2日

摘要: QueryFilter pQueryFilter = new QueryFilter();String whereclause = "UPPER(/"NAME/") like UPPER('%jack%')";pQueryFilter.setWhereClause(whereclause);在条件语句上的前后都加上UPPER转换,这样就不区分大小写了。以下有VB的IQueryFilter.WhereClause Property文档:http://edndoc.esri.com/arcobjects/9.2/ComponentHelp/e 阅读全文

posted @ 2012-11-02 12:36 yushff 阅读(631) 评论(0) 推荐(0) 编辑

摘要: 1.Feature的基本渲染方法Feature的常用的绘制方法包括:1.简单绘制2.唯一值绘制/多字段唯一值绘制3.点密度/多字段点密度绘制4.数据分级绘制5.质量图(饼图/直方图)6.按比例尺渲染7.比例符号渲染1.简单渲染 简单渲染是ArcEngine的默认渲染,我们打开一个FeatureClass,建立一个FeatureLayer的时候,如果没有给FeatureLayer设置Renderer那么使用的就是简单渲染。简单渲染对整个图层中的所有Feature使用同一种方式显示。简单渲染在ArcEngine中用ISimpleRenderer来表示。ISimpleRenderer的使用方式如下: 阅读全文

posted @ 2012-11-02 12:35 yushff 阅读(386) 评论(0) 推荐(0) 编辑

摘要: ILayer pLayer = pAxMapControl.get_Layer(this.cmbLayer.SelectedIndex);IRasterLayer pRasterLayer = pLayer as IRasterLayer;IWorkspaceFactory2 pWorkspaceFactory2 = new RasterWorkspaceFactoryClass();IRasterWorkspace pRasterWorkspace;int Index = pRasterLayer.FilePath.LastIndexOf("\\");string fil 阅读全文

posted @ 2012-11-02 12:34 yushff 阅读(894) 评论(0) 推荐(0) 编辑

摘要: 转自:http://blog.csdn.net/qinyilang/article/details/6321079属性查询是在当前map的layer中获取符合条件的feature的集合,实现过程是获取featurelayer的featureclass。然后定义过滤条件。在featureclass中执行search函数。获取查询结果。主要代码:ILayer layer = axMapControl1.get_Layer(0); IFeatureLayer featureLayer = layer as IFeatureLayer; //获取featureLayer的featureClass IF 阅读全文

posted @ 2012-11-02 12:32 yushff 阅读(697) 评论(0) 推荐(0) 编辑

摘要: 深入理解游标Cursors,实现数据的快速查找,插入,删除,更新1、 查找数据Search Cursors //by yl landgis@126.com yanleigis@21cn.com 2008.7.7[C#] //Create an envelope for the lower right portion of dataIEnvelope envelope = new EnvelopeClass();envelope.PutCoords(508786, 681196, 513033, 684341);// create a spatial query filterISpatialFi 阅读全文

posted @ 2012-11-02 12:31 yushff 阅读(436) 评论(1) 推荐(0) 编辑

2012年10月22日

摘要: the Geodatabase editor license has expiredGo to the following location: 找到arcgis的安装目录,修改以下设置即可。"C:\Program Files\ArcGIS\Utilities" Open "AdvancedArcMapSettings.exe" Go to Miscellaneous tab and turn off the "License Timeout Warning" That should prevent the warning from b 阅读全文

posted @ 2012-10-22 11:28 yushff 阅读(1845) 评论(0) 推荐(0) 编辑

2012年8月7日

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data;using System.Data.OleDb;using System.Windows.Forms;using Microsoft.Office.Interop.Excel;namespace WinExcelOperate{ class ExcelOperate { //加载Excel public static DataSet LoadDataFromExcel(string filePa. 阅读全文

posted @ 2012-08-07 10:56 yushff 阅读(606) 评论(0) 推荐(0) 编辑

2012年8月3日

摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 /* * Created by BpLoveGcy.cnblogs.com * Gump Yin * Date: 2010-3-29 * Time: 22:13 * * Version: * CopyRight:http://BpLoveGcy.cnblogs.com/ */using System;namespace CheckLeapYear{ /// <summary> 阅读全文

posted @ 2012-08-03 17:57 yushff 阅读(3507) 评论(0) 推荐(0) 编辑

2012年6月4日

摘要: using system; using system.collections; using system.configuration; using system.data; using system.web; using system.web.security; using system.web.ui; using system.web.ui.htmlcontrols; using system.web.ui.webcontrols; using system.web.ui.webcontrols.webparts; using microsoft.win32; public partial 阅读全文

posted @ 2012-06-04 10:34 yushff 阅读(247) 评论(0) 推荐(0) 编辑

2012年5月30日

摘要: 一.按角度 (转帖:hustcyb,yhy0611。特此感谢)1.将多边形的N个顶点与待判断点相连组成一条直线,根据直线的倾斜角将这个N个顶点按照顺时针(或逆时针)的顺序排序.2.求相邻两个顶点与待判断点边线的两条直线的顺时针方向的夹角,如果对握有的顶点,这个夹角小于180度,则这个点位于多边形内部.这个问题与求平面点集的凸包类似。(此方法不太适合凹多边形)先写一个辅助类:[c-sharp]view plaincopy publicclassLine:IComparable<Line>{#regionMembersprivatePointFstart;privatePointFen 阅读全文

posted @ 2012-05-30 17:09 yushff 阅读(557) 评论(0) 推荐(0) 编辑

上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 17 下一页