摘要:
The following code example demonstrates how to compare two spatial references. It uses the ISpatialReference2 interface to compare the XY precision in addition to the coordinate system. This is the ... 阅读全文
摘要:
高亮顯示被選中feature,并可控制非選擇feature顯示或隱藏... 使用IQueryFilter過濾選擇集,利用IFeatureSelection.SelectionSymbol設置被選擇要素的外觀。 IFeatureLayerDefinition.DefinitionExpression用于控制圖層上的要素顯示狀態。 Code highlighting produced by ... 阅读全文
摘要:
Union geometries using ITopologicalOperator2.ConstructUnion Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->Private Sub ConstructUnion()Sub Const... 阅读全文
摘要:
将input featureclass里的选择集feature插入到output featureclass里 使用IFeatureClass.createfeature和feature.store方法來逐個添加新要素,適用于簡單的少量的插入操作。 數據量較大時,其效率過低。 Code highlighting produced by Actipro CodeHighlighter (... 阅读全文
摘要:
將CAD內的Anno Text轉到sde里的Annotation featureclass.對于CAD Text, 它的geometrytype 為Point, 而sde里Annotation featureclass的geometrytype為Polygon,因此IObjectLoader.LoadObjects不適用于轉CAD Text, 只能用IFDOGLFactory.DoAddEleme... 阅读全文
摘要:
Insert new Feature not using default built-in function..ESRI放出的例子 Completely show how to correctly insert features from InputFeatureclass to OutputFeatureClass Code highlighting produced by Act... 阅读全文
摘要:
1.批量刪除feature ----ITable.DeleteSearchedRows method 對于一般的featureClass(不包括Anno FeatureClass),ITable.DeleteSearchedRows能快速有效的刪除Features. 尤其是大數據量情況下,其效率遠比逐個要素刪除要快得多。 Code highlighting produced by Ac... 阅读全文
摘要:
Loads an object into an existing object class. 有幾點要注意的是: 1)該方法有返回值pEnumInvalidObject,如果applyValidation變量是false,將返回空值,如果為True,將返回 invalid features. 2) IQueryFilter::SubFields必須與IObjectLoader::OutputF... 阅读全文
摘要:
Converts a featureClass to a new created Personal Geodatabase/Geodatabase featureClass. 該方法適用于簡單的要素類 (point, line, polygon),不支持復雜的要素類(geometric network feature classes, SDE 3.x annotation, Geodatab... 阅读全文
摘要:
在featureDataset里创建新的featureclass Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->Public Function createDatasetFeatureClass()Function createDatase... 阅读全文
摘要:
打开SDE工作区间 Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->Public Function getSDEWorkSpace()Function getSDEWorkSpace(Server As String, Instance As... 阅读全文