使用GDAL处理文件地理数据库(.gdb)中的栅格 [英] Working with rasters in file geodatabase (.gdb) with GDAL

查看:531
本文介绍了使用GDAL处理文件地理数据库(.gdb)中的栅格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用一个工具将栅格图层转换为数组以进行NumPy处理,并且理想情况下,我希望能够处理打包在.gdb中的栅格而不导出所有栅格(特别是如果需要将它们导出的话) ArcGIS或ArcPy).

I'm working on a tool that converts raster layers to arrays for processing with NumPy, and ideally I would like to be able to work with rasters that come packaged in a .gdb without exporting them all (especially if this requires engaging ArcGIS or ArcPy).

OpenFileGDB驱动程序是否可能?据我所知,该驱动程序似乎将栅格图层与矢量图层相同,这使您可以访问有关该图层的一些数据,但不具有ReadAsArray功能.

Is this possible with the OpenFileGDB driver? From what I can tell this driver seems to treat raster layers the same as vector layers, which gives you access to some data about the layer but doesn't give you the ReadAsArray functionality.

推荐答案

当前,FileGDB和OpenFileGDB驱动程序仅处理矢量数据集.栅格支持不是Esri的FGDB API的一部分.

Currently both FileGDB and OpenFileGDB drivers handle only vector datasets. Raster support is not part of Esri's FGDB API.

您将需要使用Esri工具将​​栅格导出为其他格式,例如GeoTIFF.

You will need to use Esri tools to export the rasters to another format, such as GeoTIFF.

这篇关于使用GDAL处理文件地理数据库(.gdb)中的栅格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆