ThinkGeo.com    |     Documentation    |     Premium Support

Delete the Feature

I found the Delete(string id) method in the EditTools class but I have no idea where can I find the “string id”. I add the feature by:

 inMemoryFeatureLayer.Open();
 inMemoryFeatureLayer.EditTools.BeginTransaction();
 inMemoryFeatureLayer.EditTools.Update(pointShape);
 inMemoryFeatureLayer.EditTools.CommitTransaction();
 inMemoryFeatureLayer.Close();

Where the pointShape has no columns - this is just a bitmp. The Feature nad the pointShape (Feature.GetShape() that’s what I want to remove) is know to me by keeping its reference in my collection. What is this “string id” in my case?

I’ve got it. I have to set Id property by myself to the PointShape if I want to delete it later.

:+1: Very glad to hear it works for you.

Thanks,
Peter