# OSGeo/gdal SLOC report

> OSGeo/gdal: 2,173,887 code lines at commit ccd38119ca19, counted with tokei-15.0.0 on 2026-11-14. Saved result 12e9e674bc63902422f8193eb9313f40a1a35c384aea111cc744b28abc90b268.

OSGeo/gdal has 2,173,887 source lines of code out of 2,990,279 total lines across 5,296 files, counted with tokei from the master ref at commit ccd38119ca19 on November 14, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving OSGeo/gdal to commit ccd38119ca19, downloading the repository source archive, and counting files selected by the effective rules with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options; an exact reproduction needs the same commit, engine version, and effective counting rules.

## Counting rules and retention

OSGeo/gdal: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.

Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.

## Repository size insights

This is a very large codebase by counted code lines. Code represents 72.7% of all lines, comments represent 14.6%, and the repository averages 410 code lines per file. C++ accounts for 56.6% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C++ | 1,621 | 1,647,684 | 1,230,297 | 233,782 | 183,605 |
| Python | 799 | 545,222 | 397,365 | 39,351 | 108,506 |
| C Header | 1,114 | 272,186 | 174,378 | 56,880 | 40,928 |
| C | 363 | 237,853 | 166,754 | 48,296 | 22,803 |
| XML | 371 | 96,804 | 95,084 | 613 | 1,107 |
| SWIG | 53 | 41,817 | 33,996 | 2,671 | 5,150 |
| CMake | 341 | 22,404 | 17,865 | 2,095 | 2,444 |
| C++ Header | 22 | 20,022 | 16,632 | 1,549 | 1,841 |
| JSON | 198 | 14,114 | 14,036 | 0 | 78 |
| Java | 32 | 19,544 | 6,139 | 10,971 | 2,434 |
| Shell | 74 | 6,985 | 5,659 | 424 | 902 |
| C# | 29 | 4,692 | 3,061 | 924 | 707 |
| Gml | 70 | 2,931 | 2,906 | 0 | 25 |
| Bitbake | 11 | 2,231 | 2,133 | 35 | 63 |
| Dockerfile | 5 | 1,643 | 1,376 | 125 | 142 |
| Happy | 2 | 1,531 | 1,340 | 0 | 191 |
| Autoconf | 16 | 2,283 | 934 | 823 | 526 |
| QML | 5 | 747 | 747 | 0 | 0 |
| D | 1 | 568 | 553 | 2 | 13 |
| HTML | 10 | 647 | 548 | 2 | 97 |
| Perl | 1 | 437 | 386 | 18 | 33 |
| SVG | 3 | 390 | 383 | 3 | 4 |
| INI | 4 | 533 | 361 | 128 | 44 |
| ReStructuredText | 6 | 416 | 285 | 0 | 131 |
| Forge Config | 1 | 1,161 | 161 | 660 | 340 |
| XSL | 3 | 161 | 138 | 7 | 16 |
| SQL | 7 | 103 | 92 | 11 | 0 |
| F* | 5 | 152 | 83 | 3 | 66 |
| Makefile | 7 | 80 | 60 | 0 | 20 |
| MSBuild | 4 | 55 | 55 | 0 | 0 |
| TOML | 1 | 60 | 55 | 0 | 5 |
| Lex | 1 | 11 | 10 | 0 | 1 |
| Batch | 1 | 11 | 7 | 2 | 2 |
| PowerShell | 1 | 11 | 7 | 2 | 2 |
| Module-Definition | 1 | 1 | 1 | 0 | 0 |
| Markdown | 19 | 24,525 | 0 | 19,877 | 4,648 |
| Plain Text | 94 | 20,264 | 0 | 17,592 | 2,672 |

Top language: C++ 56.6%. Generated on November 14, 2026. Canonical report: https://octocounts.com/github/OSGeo/gdal/commit/ccd38119ca19b6b656eed52fc5c83699d4ce89bf?reportId=12e9e674bc63902422f8193eb9313f40a1a35c384aea111cc744b28abc90b268&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/OSGeo/gdal/commit/ccd38119ca19b6b656eed52fc5c83699d4ce89bf?reportId=12e9e674bc63902422f8193eb9313f40a1a35c384aea111cc744b28abc90b268&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does OSGeo/gdal have?

OSGeo/gdal has 2,173,887 lines of code, plus 436,846 comment lines and 379,546 blank lines, for 2,990,279 total lines at commit ccd38119ca19 on November 14, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the OSGeo/gdal line count measured?

OctoCounts resolved the public GitHub repository to commit ccd38119ca19, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

### What commit was counted for OSGeo/gdal?

This OctoCounts report was generated from master at commit ccd38119ca19 on November 14, 2026.

## Similar repository reports

- [Open-Cascade-SAS/OCCT](https://octocounts.com/github/Open-Cascade-SAS/OCCT) — C++, 2,087,180 code lines
- [swiftlang/swift](https://octocounts.com/github/swiftlang/swift) — C++, 2,299,938 code lines
- [ceph/ceph](https://octocounts.com/github/ceph/ceph) — C++, 1,992,291 code lines
- [MariaDB/server](https://octocounts.com/github/MariaDB/server) — C++, 1,957,881 code lines
- [brave/brave-core](https://octocounts.com/github/brave/brave-core) — C++, 1,942,916 code lines
- [qt/qtbase](https://octocounts.com/github/qt/qtbase) — C++, 2,461,021 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [TensorFlow vs PyTorch](https://octocounts.com/compare/tensorflow-vs-pytorch)
- [Electron vs Tauri](https://octocounts.com/compare/electron-vs-tauri)
- [Godot vs Bevy](https://octocounts.com/compare/godot-vs-bevy)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
- [All OctoCounts guides](https://octocounts.com/docs)
