GDB format

Hi Alexander,

Regarding the GDB format can you verify this code:

Console.WriteLine(" Gdb:");
** Console.WriteLine(" Purpose:a folder-based database format from Esri storing multiple feature classes and tables.“);**
** Console.WriteLine(” Files needed: FileGdb can be represent as a dataset or just as one table.“);**
** Console.WriteLine(” In case of dataset - the entire .gdb folder as a single file.“);**
** Console.WriteLine(” In case of one table - .gdbtable and .gdbtablx as an archive file.");**
** Console.WriteLine();**

General:

Structure of a File Geodatabase (.gdb)

  • A .gdb appears as a folder on your computer. Inside, there are many files with different extensions (e.g., .gdbtable, .gdbtablx, .gdbindexes), but you never interact with them directly—ArcGIS handles them internally.
  • The user-visible “mandatory” part is simply the folder itself with the .gdb extension.

Mandatory component

  • The folder ending in .gdb
    • Without the folder, there’s no geodatabase.
    • Everything inside is managed by ArcGIS; you don’t need to worry about individual internal files.

Optional or internal files

  • .gdbtable, .gdbtablx, .gdbindexes, .gdbp, etc.
    • These are created automatically by ArcGIS for storing feature classes, tables, spatial indexes, etc.
    • You don’t manually create them.

Thanks in advance,

@danies8

• Is the user seeking verification of the technical accuracy of the GDB format description provided?

• Does the user need clarification on whether FileGDB can indeed be represented as either a dataset folder or individual table files?

• Are there specific concerns about the file extensions mentioned (.gdbtable, .gdbtablx, .gdbindexes) and their relationship to the overall GDB structure?

• Should the user be informed about the difference between a File Geodatabase folder and its internal file components?

• Is the user requesting confirmation that ArcGIS manages all internal GDB files automatically without manual intervention?

• Would the user benefit from understanding the distinction between mandatory folder structure and optional internal files?

Hi Alexander,
Can you please answer?
Thanks,

Hi, @danies8
Yes, this is correct.

OK.
For both inputs: the entire .gdb folder as a single file or .gdbtable and .gdbtablx as an archive file.
What are the mandatories files: .gdbtable and .gdbtablx
Your quick answer will be appreciated.
Thanks,

Hi Alexander,
Can you please give an answer for this question, I’m running the new tests ?
Your quick answer will be appreciated.
Thanks in advance,

Hi Alexander,
1.For both inputs:
The entire .gdb folder as a single file or .gdbtable and .gdbtablx as an archive file .
What are the mandatories files: .gdbtable and .gdbtablx ?

  1. In case of .gdbtable and .gdbtablx as an archive file , what should be extension of archive file ?
    It should be . gdb or an archive suffix like .zip .7z …?

Your quick answer will be appreciated.

Hi, @danies8
yes, gdbtable and gdbtablx

It’s up to you. In your code you use archive file! For our API to use VectorLayer.Convert you need to set path to gdbtable.

Can i set in your api Path to .gdb folder also?
Or i need to find the .gdbtable file from gdb and verify that also gdtablx exists there?

Your quick answer will be appreciated.

Yes, you can. In case of dataset

Hi Alexander,

I’m working on last format Gdb.

This my instruction to user:
Console.WriteLine(" Gdb:“);
Console.WriteLine(” Purpose:a folder-based database format from Esri storing multiple feature classes and tables.“);
Console.WriteLine(” Files needed: FileGdb can be represent as a dataset or just as one table.“);
Console.WriteLine(” In case of dataset - the entire .gdb folder as a single file.“);
Console.WriteLine(” In case of one table - .gdbtable and .gdbtablx as an archive file.");
Console.WriteLine();

In case of .gdb which what is the mandatories files in it ?
In case of one table - .gdbtable and .gdbtablx as an archive file, what are the mandatories files? both ?

Your quick answer will be appreciated?

Hi, @danies8
.gdbtable and .gdbtablx are the mandatories files!

Note that you can convert only file, not dataset

The file will .gdbtable and .gdbtablx will be in same folder or
.gdb with .gdbtable and .gdbtablx insides?
Is it ?

files .gdbtable and .gdbtablx will be in the same folder

II’m writtem code for Gdb format and test it now.

I try to convert gdb => gdb and got this exception:

Aspose.Gis.GisException
HResult=0x80131500
Message=Failed to open FileGDB Dataset. GDB_SystemCatalog table “D:\GisConverter\Tests\Gdb\Input\gdb1.gdb\a00000001.gdbtable” does not exist.
Source=Aspose.GIS
StackTrace:

This exception was originally thrown at this call stack:
[External Code]
GisConverter.Lib.Converters.UniversalGisConverter.Convert(string, string, string, string, string) in UniversalGisConverter.cs

Please see:

This the data source.
Extract it before you test it.
gdb1.gdb.zip (2.4 MB)

I need to check.
I’ll be back with an answer on monday

When the input is .gdb folder when using ConvetLayer I give the path of .gdb folder as first parameter ? Is it write