Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenFileGDB: add read-only support for raster datasets #7389

Merged
merged 6 commits into from
Mar 11, 2023

Conversation

rouault
Copy link
Member

@rouault rouault commented Mar 9, 2023

The OpenFileGDB driver provides read access to rster layers of File
Geodatabases (.gdb directories) created by ArcGIS 10 and above. The
dataset name must be the directory/folder name, and it must end with the
.gdb extension.

It can also read directly zipped .gdb directories (with .gdb.zip
extension), provided they contain a .gdb directory at their first level.

The driver supports:

  • reading CRS information
  • reading geotransform
  • exposing overviews
  • exposing nodata mask band or nodata value
  • uncompressed, LZ77, JPEG and JPEG2000 compression methods.
  • exposing value attribute tables as GDAL Raster attribute tables.

@rouault rouault added this to the 3.7.0 milestone Mar 9, 2023
@rouault rouault force-pushed the openfilegdb_raster branch 2 times, most recently from 1eece15 to 7235cfb Compare March 9, 2023 11:53
@rouault
Copy link
Member Author

rouault commented Mar 9, 2023

FYI @r-barnes

…sues with some FileGDB raster

Ported from libjpeg-turbo commit a113506d175d03ae0e40965c3d3d21a5d561e119
The OpenFileGDB driver provides read access to rster layers of File
Geodatabases (.gdb directories) created by ArcGIS 10 and above. The
dataset name must be the directory/folder name, and it must end with the
.gdb extension.

It can also read directly zipped .gdb directories (with .gdb.zip
extension), provided they contain a .gdb directory at their first level.

The driver supports:

- reading CRS information
- reading geotransform
- exposing overviews
- exposing nodata mask band or nodata value
- uncompressed, LZ77, JPEG and JPEG2000 compression methods.
- exposing value attribute tables as GDAL Raster attribute tables.
Copy link
Collaborator

@nyalldawson nyalldawson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've already extensively tested and reviewed this branch prior to PR submission, and it's all looking/working great 🥳

doc/source/drivers/raster/openfilegdb.rst Outdated Show resolved Hide resolved
Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
Co-authored-by: Marc Jansen <jansen@terrestris.de>
@AlexanderJuestel
Copy link

@rouault, thanks for implementing that. Could you point me to an example where raster data is accessed via gdal? I am quite new to gdal....I have installed gdal 3.7.1 and also have a .gdb file but cannot seem to get the raster layers. I can, however, list them using the fiona package.

Thanks for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants