gdb-visualizer
Interactive geodatabase schema visualization — extract, explore, and share your ArcGIS geodatabase structure as interactive graphs, Mermaid diagrams, PlantUML, or Graphviz DOT.
Why?
Every GIS team has this problem: someone joins, gets access to 15 geodatabases, and asks "what's actually in these?"
The existing tools fall short:
- Generate Schema Report → flat CSV, no relationships
- ArcGIS Diagrammer → deprecated, crashes on complex schemas
- Schema Viewer → static text only
gdb-visualizer gives you an interactive graph: feature classes, tables, fields, domains, relationship classes, topology rules, subtypes — all connected. See the forest and the trees.
Features
- 🔷 Full extraction — feature classes, tables, fields, domains, relationship classes, topology, subtypes
- 📊 Multiple output formats — JSON, Mermaid, PlantUML, Graphviz DOT, Markdown
- 🖥️ CLI-first — works in any terminal, CI/CD pipeline, or automation script
- 🔌 No ArcGIS required (basic mode) — GDAL/OGR fallback for feature classes + fields
- 📦 Zero config —
pip installand go - 🧪 Tested — unit tests for models and exporters
- 🌐 Interactive visualization — D3.js force-directed graph with dark theme, filtering, drill-down details
- 📋 Esri Schema Report — Generate HTML/Excel schema reports via ArcGIS Pro, served in-app for large schemas
- ⚡ Large schema detection — Automatic warnings for schemas >150 nodes, integrated report viewer for >400 nodes
Installation
# Clone
git clone https://github.com/Asem-D/gdb-visualizer.git
cd gdb-visualizer
# Install
pip install -e .
# With dev tools
pip install -e ".[dev]"
Requirements
| Feature | Requirement |
|---|---|
| CLI + Exporters | Python 3.10+ (no ArcGIS needed) |
| Full extraction (domains, relationships, topology) | ArcGIS Pro |
| Basic extraction (feature classes + fields only) | GDAL/OGR with OpenFileGDB driver |
Quick Start
Extract a schema (JSON)
gdbviz extract --path ./MyProject.gdb --format json
Export as Mermaid diagram
gdbviz extract --path ./MyProject.gdb --format mermaid --output schema.mmd
Paste into mermaid.live for instant visualization.
Export as PlantUML
gdbviz extract --path ./MyProject.gdb --format plantuml --output schema.puml
Render at plantuml.com or in VS Code with the PlantUML extension.
Export as Graphviz DOT
gdbviz extract --path ./MyProject.gdb --format dot --output schema.dot
dot -Tpng schema.dot -o schema.png
Run the demo (no .gdb needed)
gdbviz demo --format json
gdbviz demo --format mermaid
CLI Reference
gdbviz extract
| Option | Short | Description |
|---|---|---|
--path |
-p |
Path to the .gdb (required) |
--format |
-f |
Output format: json, mermaid, plantuml, dot, markdown |
--output |
-o |
Output file path |
--extractor |
-e |
Backend: auto, arcpy, ogr |
--schema-report |
-r |
Also generate Esri HTML Schema Report alongside output |
--report-only |
Only generate report, skip normal extraction/export | |
--report-format |
Schema report format: html (default) or excel |
|
--report-output |
Custom output path for the schema report | |
--no-color |
Disable colored output |
# Generate a schema report alongside extraction
gdbviz extract --path ./MyProject.gdb --format json --schema-report
# Generate only the Esri HTML report
gdbviz extract --path ./MyProject.gdb --report-only
# Generate Excel report to custom location
gdbviz extract -p ./MyProject.gdb --report-only --report-format excel --report-output report.xlsx
gdbviz visualize
Serve the D3.js interactive visualization in a browser.
| Option | Short | Description |
|---|---|---|
--schema |
-s |
Path to schema JSON file (required) |
--port |
HTTP server port (default: 8080) | |
--no-open |
Don't auto-open browser |
# Extract then visualize
gdbviz extract --path ./MyProject.gdb --format json -o schema.json
gdbviz visualize --schema schema.json
# Quick demo
gdbviz demo --format json -o schema.json
gdbviz visualize --schema schema.json
gdbviz demo
Run with a sample schema to see what gdbviz can do.
gdbviz formats
List available export formats.
gdbviz extractors
List available extraction backends and their status.
Output Formats
| Format | Extension | Use Case |
|---|---|---|
| JSON | .json |
D3.js visualization, API consumption, programmatic access |
| Mermaid | .mmd |
GitHub READMEs, documentation, quick diagrams |
| PlantUML | .puml |
Detailed class/relationship diagrams, enterprise docs |
| Graphviz DOT | .dot |
High-quality renderings, publication diagrams |
| Markdown | .md |
Issue trackers, documentation, human-readable summaries |
Architecture
┌──────────────┐ ┌──────────────┐ ┌─────────────┐
│ Geodatabase │────▶ Extractor │────▶ Graph │
│ (.gdb) │ │ (arcpy/ogr) │ │ (Model) │
└──────────────┘ └──────────────┘ └──────┬──────┘
│
┌──────────────┐ ┌───────▼───────┐
│ JSON file │◀────│ Exporter │
│ .mmd file │◀────│ (json/mmd/ │
│ .puml file │◀────│ puml/dot/ │
│ .dot file │◀────│ md) │
│ .md file │◀────│ │
└──────────────┘ └───────────────┘
Key design decisions:
- Graph model as intermediate representation — extractors produce a Graph, exporters consume it. New backends on either side don't affect the other.
- CLI-first — no GUI dependency. Works in headless environments, CI/CD, remote servers.
- Dual extraction — ArcGIS for full extraction, GDAL for basic extraction. The tool works even without ArcGIS installed.
Schema Graph Model
Node Types
| Type | Description |
|---|---|
feature_dataset |
Spatial container for feature classes |
feature_class |
Spatial or non-spatial class with geometry |
table |
Standalone attribute table |
domain |
Coded value or range domain |
topology |
Spatial topology with rules |
network |
Network dataset |
relationship_class |
Defines relationships between classes |
attribute_rule |
Calculation/constraint/validation rule |
Edge Types
| Type | Description |
|---|---|
contains |
FeatureDataset → FeatureClass/Table |
relationship |
FC/Table ↔ FC/Table via RelationshipClass |
uses_domain |
Field → Domain |
topology_rule |
Topology → FeatureClass |
has_subtypes |
FeatureClass → Subtype codes |
controller |
FeatureDataset → Topology/Network |
Contributing
Contributions welcome! See CONTRIBUTING.md for guidelines.
- Fork the repo
- Create a feature branch
- Add tests for new functionality
- Run
pytestto verify - Submit a pull request
Roadmap
- v0.1.0 — CLI extraction + multi-format export + D3.js visualization + Esri Schema Report
- v0.2.0 — Schema diff (compare two GDB snapshots, show added/removed/changed nodes and edges)
- v0.3.0 — Edge confidence scoring + dataset/relationship filtering
- v0.4.0 — Jupyter widget integration
- v0.5.0 — Annotations/bookmarks + export as report
License
MIT License — see LICENSE for details.
Acknowledgments
- Built for the GIS community that deserved better tooling
- Inspired by SchemaSpy (database schema visualization)
- D3.js force-directed graph pattern from Obsidian Graph View
Metadata
Release files for gdb-visualizer 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gdb_visualizer-0.2.0.tar.gz | 36.4 kB | Without provenance | Details for gdb_visualizer-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gdb_visualizer-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for gdb_visualizer-0.2.0-py3-none-any.whl |
Total release size: 70.8 kB
Release files / gdb_visualizer-0.2.0.tar.gz
| Download URL | gdb_visualizer-0.2.0.tar.gz |
|---|---|
| Size | 36.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
63e3c44916a50a785c03d64df632f3cad6d5414e42d40d19bb3eb05bb5548237
|
|
BLAKE2b-256 checksum How to use checksums |
2be8d675bbabfb0d95264f59663dfd907515aa7e6943dc7eb53f46db1ec58e9c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / gdb_visualizer-0.2.0-py3-none-any.whl
| Download URL | gdb_visualizer-0.2.0-py3-none-any.whl |
|---|---|
| Size | 34.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2a61140d291783c7cf5d07318e3ba058ee70f5953e40ddefd028e2789cf6f68e
|
|
BLAKE2b-256 checksum How to use checksums |
216d54f045b5fd898de58a9df172f76fc65723b81b2baa6f85083ba4b7ec687a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for gdb-visualizer 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.