DEM grid data and interpolation
I would like to know how I can get access to the pointgrid data in a DEM layer.
Example. there may be elevations at 1201 by 1201 points used to generate the grid layer. I would like to get access to the 1201 by 1201 points and the elevation at each point.
i would also like to know what interpolation algorithm is used to generate the layer. say linear, non-linear etc.
Thanks
Example. there may be elevations at 1201 by 1201 points used to generate the grid layer. I would like to get access to the 1201 by 1201 points and the elevation at each point.
i would also like to know what interpolation algorithm is used to generate the layer. say linear, non-linear etc.
Thanks
Comments
-
With the SDK you can use the GM_GetPixelElevation function to query the elevation value for each pixel location. The GM_GetLocationElevation function allows you to query elevation values based on a ground rather than pixel coordinate.
If you access a location not on a grid cell center, by default bilinear interpolation is used to determine the value at the specified location.
Let me know if I can be of further assistance.
Thanks,
Mike
Global Mapper Support
support@globalmapper.com -
Thanks a lot for the initial response. However, I am still not clear on the GetPixelElevation thing. As in earlier example, if there are 1201 by 1201 points separated by 50m in both directions and the start point is (100,100),if I say GetPixelElevation(1,2), does that get me the elevation at the ground coordinate point [100 + (1*50),100 + (2*50)].
Is there a way for me to know the number of columns and rows. ie 1201 x 1201, the start point and the resolution? If I can get these, I can work out the rest myself.
Thanks in advance. -
Got it. Says at least 10 characters so...
Categories
- 12.8K All Categories
- 5.7K Features Discussion
- 345 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 637 GM Script Language
- 54 User Scripts
- 114 GPS Features
- 417 Projection Questions
- 826 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 178 Announcement and News
- 913 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 569 Other Discussion
- 131 GIS Data Sources
- 27 Global Mapper Showcase
- 238 How I use Global Mapper
- 107 Global Mapper Forum Website