Dim pSelected As IEnumFeature = m_Map.FeatureSelection Dim pFeature As IFeature = pSelected.Next() Dim pGeom As IGeometry = pFeature.Shape Dim pHitTest As IHitTest = pGeom Dim pHitPoint As IPoint = New Point pHitTest.HitTest(pPoint, tolerance, esriGeometryHitPartType.esriGeometryPartBoundary, pHitPoint, hitDist, partIndex, vertexIndex, bTrue) ...... Dim pPoints As IPointCollection = pGeom Dim Missing As Object = Type.Missing Dim val As Object If vertexIndex = 0 Then val = 1 pPoints.AddPoint(pHitPoint, val, Missing) Else val = vertexIndex pPoints.AddPoint(pHitPoint, Missing, val) End If pFeature.Shape = CType(pPoints, IGeometry) pFeature.Store()
public static Function Clone(IPoint point) as IPoint[INDENT]Dim IClone cloner cloner = point As IClone; Set Clone = cloner.Clone as IPoint; [/INDENT]Function End
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.