OSGeo/gdal

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.

As of 2026-11-14 (commit ccd38119ca19), OSGeo/gdal contains 2,990,279 total lines: 2,173,887 code, 436,846 comments, 379,546 blank, across 5,296 files in 37 languages (top language: C++ 56.6%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

As of 2026-11-14 (commit ccd38119ca19), OSGeo/gdal contains 2,990,279 total lines: 2,173,887 code, 436,846 comments, 379,546 blank, across 5,296 files in 37 languages (top language: C++ 56.6%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

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.

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.

LanguageFilesLinesCodeCommentsBlanks
C++162116476841230297233782183605
Python79954522239736539351108506
C Header11142721861743785688040928
C3632378531667544829622803
XML37196804950846131107
SWIG53418173399626715150
CMake341224041786520952444
C++ Header22200221663215491841
JSON1981411414036078
Java32195446139109712434
Shell7469855659424902
C#2946923061924707

Top language: C++ 56.6%. Generated on .

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.

Reproduce this report

Reproduce this exact report and configuration.

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

Other public repositories with an OctoCounts report, ranked by top language and code size similarity:

Play the growth animation for OSGeo/gdal on this page — 2,173,887 code lines across 37 languages, counted by tokei.