在传单地图上显示大型GeoTiff的最佳方法是什么

在传单地图上显示大型GeoTiff的最佳方法是什么

本文介绍了在传单地图上显示大型GeoTiff的最佳方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为了可视化某些地理数据,我们设置了一个运行小型Web服务器的传单.所有工作正常,标记和多边形均按预期显示.现在,我们还希望在地图上将大型栅格文件(存储为GeoTiff)显示为RGB.我们对tif文件具有完全控制权,我们可以自己托管它们,并且可以使用任何所需的方式存储/处理它们.尽管如此,由于它们的尺寸会变得非常大(最大30.000x20.000像素,三个波段),我们想知道这样做的最佳方法是什么.

For visualizing some geodata, we set up a small webserver running leaflet. All works fine, markers and polygons are shown as expected. Now we also want to show large raster files (stored as GeoTiff) as RGB on our map. We have full control over the tif files, we host them ourselves and we can store/process them in any way we want. Still, as they can get rather big in size (up to 30.000x20.000 pixels, three bands) , we are wondering what the best way to do that is.

我们研究的选项:

  1. 仅使用插件显示它们,可能会因为大小而失败
  2. >
  3. 将它们存储为 Cloud Optimized GeoTIFF :如果传单支持此功能,我不清楚
  4. 使用 gdal2tiles.py的修改版本
  5. 设置常规"磁贴服务器(尚不知道该怎么做)
  1. Just display them using this plugin, will probably fail because of the size
  2. Store them as Cloud Optimized GeoTIFF: Its not clear to me if leaflet supports this
  3. Use this modified version of gdal2tiles.py
  4. Set up a "regular" tile server (didn't figure out how to do that yet)

就目前而言,我们仅对可视化感兴趣,尽管如果可以提取特定位置的像素值将是一个不错的选择.如今如何完成?

As for now, we are only interested in visualization, although it would be a nice bonus if we could extract pixel values a specific location. How is this done nowadays?

编辑:如果这一点很重要,则图像仅覆盖较小的区域,而我们一次只希望显示一个区域,因此我们并未构建地图或其他内容,我们希望将其绘制在上面底图的顶部

edit: if that is important, the images only cover small areas and we only want to show one at a time, so we are not building a map or something, we want to draw them on top of a basemap

推荐答案

我为我的案例找到了完美的解决方案: Terracotta ,一个开源的轻量级Tile Server!图像不需要存储在平铺的PNG中,但是Terracotta服务器通过读取经过云优化的Geotiffs 进行平铺.就像魅力一样!

I found a perfect solution for my case: Terracotta, an open source lightweight Tile Server! Images do not need to be stored in tiled PNGs, but Terracotta servers tiles by reading from cloud-optimized geotiffs. Works like a charm!

这篇关于在传单地图上显示大型GeoTiff的最佳方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-30 06:40