SetPixelElevation to save time updating Elevation Grids
Hi.
My elevation grid is quite big and I want to update only a few points in the elevation grid. At the moment, this means I have to close the previous layer and then recreate a new one with the updated points in them. I was thinking if a method existed that allowed me to set the elevation of individual grid points (say SetPixelElevation), then I could easily just change the elevation of grid points which will give the application a faster user response time during editing.
Is there such a method? In your view, what would be a quick way to edit elevation grids?
Thanks in advance.
My elevation grid is quite big and I want to update only a few points in the elevation grid. At the moment, this means I have to close the previous layer and then recreate a new one with the updated points in them. I was thinking if a method existed that allowed me to set the elevation of individual grid points (say SetPixelElevation), then I could easily just change the elevation of grid points which will give the application a faster user response time during editing.
Is there such a method? In your view, what would be a quick way to edit elevation grids?
Thanks in advance.
Comments
-
There's not currently an edit method like that, so for now you would have to stick with what you are doing, or maybe break your large grid into a bunch of smaller tiles, that way you don't have so much to reload when you make a change. A simple SetPixelElevation is not possible for most elevation formats as the grids aren't all stored in memory but instead read from the original file on demand.
However, if you use GM_CreateCustomElevGridLayer then you provide the memory buffer with the elevation values, so you can directly edit the values for the layer, then call GM_FlushLayerCache to clear any cached elements and have the raw memory buffer be checked again. This would work for what you want.
Let me know if I can be of further assistance.
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.globalmapper.com
Categories
- 12.7K All Categories
- 5.6K Features Discussion
- 342 Downloading Imagery
- 1.3K Elevation Data
- 380 Georeferencing Imagery Discussion
- 628 GM Script Language
- 53 User Scripts
- 113 GPS Features
- 414 Projection Questions
- 819 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 177 Announcement and News
- 908 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 562 Other Discussion
- 129 GIS Data Sources
- 27 Global Mapper Showcase
- 233 How I use Global Mapper
- 107 Global Mapper Forum Website