Example #1
0
        public async override Task <ElevationData> GetDemXYZ(int x, int y, int z)
        {
            lock (_object) // thread safe bitmap lookup contention. Todo use thread safe readonly list
            {
                y = MapUtil.FlipY(y, z);
                // Get the lat lon boundary from xyz tile
                var rect = Geographic.TileXYToRectangleLL(x, y, z);

                // Make the DEM that will be used to make a quantized mesh
                return(MakeTileDEM(rect));
            }
        }