Skip to content

How to get the list of feature dataset from a FileGDB file using python #1261

Answered by sgillies
kavyajeetbora asked this question in Q&A
Discussion options

You must be logged in to vote

@kavyajeetbora fiona.listdir is what you're looking for. I'll update the documentation to make that more clear.

Correction: fiona doesn't support multiple datasets within a geodatabase file. The GDAL library has some support since version 3.4 https://gdal.org/drivers/vector/openfilegdb.html#hiearchical-organization but we haven't implemented it for fiona yet. fiona.listdir is only useful for finding datasets within a filesystem directory.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kavyajeetbora
Comment options

Answer selected by sgillies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1260 on May 08, 2023 14:49.