上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 43 下一页
摘要: public void IWorkspaceEdit_Example(IWorkspace workspace, string nameOfFeatureClass) { IFeatureWorkspace featureWorkspace = (IFeatureWorkspace)workspace; IFeatureClass featureClass = featureWorkspace.OpenFeatureClass(nameOfFeatureClass); IWorkspaceEdit workspaceEdit = (IWorkspaceEdit)workspace; //sta 阅读全文
posted @ 2010-12-17 22:34 醉意人间 阅读(476) 评论(0) 推荐(0) 编辑
摘要: // Create new workspace name objects. IWorkspaceName sourceWorkspaceName = new WorkspaceNameClass();IWorkspaceName targetWorkspaceName = new WorkspaceNameClass();IName targetName = (IName)targetWorkspaceName;// Set the workspace name properties.sourceWorkspaceName.PathName = @ "C:\arcgis\ArcTutor\Bu 阅读全文
posted @ 2010-12-17 22:28 醉意人间 阅读(624) 评论(0) 推荐(0) 编辑
摘要: public void VersionEdit(IFeatureWorkspace featureWorkspace){ IFeatureClass featureClass = featureWorkspace.OpenFeatureClass("Feature_Class_Name"); IVersion2 version = (IVersion2)featureWorkspace; //... 阅读全文
posted @ 2010-12-17 17:51 醉意人间 阅读(413) 评论(0) 推荐(0) 编辑
摘要: 从Net+Engine,本来以为不是很难,但是我却错了,我们知道AE开发也就意味着接口编程,而AE中的东西也就是AO,这个是构建在com之上的,当我们用Net开发,那么就存在net和com的交互,这些都有相应的互操集(ESRI provides primary interop assemblies for all the ArcObjects type libraries that are implemented with COM)。一个类可以实现多个接口,每一个接口负责管理属于自己的方法,那么接口编程也必然存在着从一个接口到另一个接口的访问,也就是QI,在C#中,这种很容易做,直接做一个类型 阅读全文
posted @ 2010-12-12 20:49 醉意人间 阅读(451) 评论(0) 推荐(0) 编辑
摘要: public void CreateRoutesUsing2Fields(string sAccessWS, string sLineFC, string sOutRouteFC, string sWhereClause, string sRouteIDField, string sFromMeasureField, string sToMeasureField) { try { // VARIA... 阅读全文
posted @ 2010-12-07 13:55 醉意人间 阅读(574) 评论(0) 推荐(1) 编辑
摘要: IClipFilter clipRaster = new ClipFilterClass(); //Add the polygons from the shapefile to the clip filer IGeometry clipGeometry; IFeature feature; for (int i = 0; i = featureClass.FeatureCount(null) - 1; i++) { feature = featureClass.GetFeature(i); clipGeometry = (IGeometry)feature.Shape; clipRaster 阅读全文
posted @ 2010-12-06 08:14 醉意人间 阅读(661) 评论(0) 推荐(0) 编辑
摘要: 二次开发就是搭积木,但是这种积木在AO中可以成为接口,那么我们二次开发就要想实现我们功能的相关接口组合起来,ArcGIS中有两种网络,无向网络和有向网络,我在这里讨论是无向网络,网络是用来模拟现实世界中的如交通道路等,这也是GIS中的一个精华,ArcGIS中用一组要素对现实世界中的网络进行抽象,比如用线要素来模拟边,用点要素模拟交汇点等,而网络不是要素,是又相关的要素构建而成的“逻辑图“,所有的分析都是在这个逻辑图上进行的,也可以说这个逻辑图是由相互关联的要素结合一定的规则,派生出来的。而在ArcGIS中无向网络可以有shpfile创建也可以由geodatabase中的数据集创建,而有向网络智 阅读全文
posted @ 2010-12-05 16:13 醉意人间 阅读(1106) 评论(0) 推荐(0) 编辑
摘要: 我们知道Geodatabase的分布式数据库可以在线也可以离线,而在线和离线的接口是不同的,这是因为两者的操作过程不一样,我们看一下两者的区别: 在线 离线通过这4张图很清楚的说明了原理(其中每一种方式又分为局域网和互联网)重要的接口:GeoDataServer 代表了一个数据库的连接,这句话可能不好理解,但是通过代码,也许会明白:public IGeoDataServer InitGeoDataServerFromFile(String path){ // Create the GeoDataServer and cast to the the IGeoDataServerInit int 阅读全文
posted @ 2010-12-04 23:56 醉意人间 阅读(991) 评论(0) 推荐(0) 编辑
摘要: //This example creates a raster dataset with a specified dimension, populates pixel values, and set a NoData value.public static IRasterDataset CreateRasterDataset(string Path, string FileName){ try {... 阅读全文
posted @ 2010-12-02 13:51 醉意人间 阅读(456) 评论(0) 推荐(0) 编辑
摘要: public static void CustomConvolutionFilter(IRaster raster){ //The following code sample sets up a horizontal line detection filter and applies it on a raster //to create a convolution filter using a c... 阅读全文
posted @ 2010-12-02 13:49 醉意人间 阅读(320) 评论(0) 推荐(0) 编辑
上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 43 下一页