Problem with GM_DeleteFeature?
Hi
I read in help that GM_DeleteFeature changes the delete status of feature. How can i really delete and free the feature?
In my Application, i have a layer and i should add and delete features in it, but after programs runs for a long time, memory usage increases too much! I guess that i should delete and free features to prevent this problem!
Is there any opinion?
thanks
I read in help that GM_DeleteFeature changes the delete status of feature. How can i really delete and free the feature?
In my Application, i have a layer and i should add and delete features in it, but after programs runs for a long time, memory usage increases too much! I guess that i should delete and free features to prevent this problem!
Is there any opinion?
thanks
Comments
-
You need to close the layer that the feature is in to truly delete it and free the memory. If you have a mix of deleted and active features in a layer this wouldn't be practical, but what you could do is perhaps export the layer to a new Global Mapper Package file (GM_ExportPackage), then close the layer and load it back in. This should get rid of the deleted features.
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.globalmapper.com
Categories
- 12.8K All Categories
- 5.7K Features Discussion
- 346 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 639 GM Script Language
- 54 User Scripts
- 115 GPS Features
- 417 Projection Questions
- 829 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 179 Announcement and News
- 922 Bug Report
- 559 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 573 Other Discussion
- 131 GIS Data Sources
- 27 Global Mapper Showcase
- 241 How I use Global Mapper
- 108 Global Mapper Forum Website