EnumFeatureGeometry の使用方法

投稿日:2016/9/1 (木) 更新日:

Sub test()
    '基本レイヤ中の
    Dim pFeatureSelectionB As IFeatureSelection
    Set pFeatureSelectionB = pFeatureLayerB
 
    Dim pSelectionSet As ISelectionSet
    Set pSelectionSet = pFeatureSelectionB.SelectionSet
     
    Dim pEnumGeometryBind As IEnumGeometryBind
    Set pEnumGeometryBind = New EnumFeatureGeometry
     
    pEnumGeometryBind.BindGeometrySource Nothing, pSelectionSet
 
    Dim pGeomeFactory As IGeometryFactory
    Set pGeomeFactory = New GeometryEnvironment
 
    Dim pSelectedGeometry As IGeometry
    Set pSelectedGeometry = pGeomeFactory.CreateGeometryFromEnumerator(pEnumGeometryBind)
 
End Sub

関連記事

-プログラミング, ArcGIS
-, ,

Copyright© WINGFIELD since1981 , 2018 All Rights Reserved.