i Want to add a point feature to my feature class. an i want to enter the coordinates manually.
here is what i am trying to do
pworkspaceedit = pFeatureWorkspace pworkspaceedit.StartEditing(True) pworkspaceedit.StartEditOperation() Dim point As IPoint = New Point Dim geometry As IGeometry point.X = 100 point.Y = 100 geometry = point pfeature = pFeatureClass.CreateFeature() pfeature.Shape = geometry MsgBox(pFeatureClass.FeatureCount(Nothing)) pworkspaceedit.StopEditOperation() pworkspaceedit.StopEditing(True)
i have searched and the results are for copying from one feature class to another using icursor, creating lines from points, but havent found one for creating a point feature. all suggestions are welcome
there is no error in the code, a new empty feature is also created, but it has no attributes, MsgBox(pFeatureClass.FeatureCount(Nothing)) this i am using to display the no. of features after its created