选择 GDAL 驱动程序以从 TIFF 写入 KML 文件

问题描述 投票:0回答:1

enter image description here

我有一些来自 USGS 的 DEM 数据,我正在尝试将其作为等高线图写入 KML 文件。我正在使用 GDAL 3.4.1。 ,我使用 Anaconda 安装的

$ gdal_contour Downloads/USGS_13_n47w090_20240625.tif contours.kml -i 10
Warning 1: Several drivers matching kml extension. Using LIBKML
0...10...20...30...40...50...60...70...80...90...100 - done.
^C

当我运行此程序时,程序挂起并且不生成任何文件。

当我尝试时:

$ gdal_contour /Downloads/USGS_13_n47w090_20240625.tif /contour.shp -i 10.0

立即生成文件。

我想知道更改 KML 驱动程序是否可以解决此问题(驱动程序列于 https://gdal.org/drivers/vector/index.html )。

如何将驱动程序从 LIBKML 更改为 KML?

gis kml tiff gdal
1个回答
0
投票

此问题通常已在最新版本的 gdal(版本 3.9.1)中得到修复:issue

您可以通过

conda-forge
conda 频道安装此最新版本。

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.