• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

OSGeo / gdal / 18476687500
72%

Build:
DEFAULT BRANCH: master
Ran 13 Oct 2025 09:15PM UTC
Jobs 1
Files 2005
Run time 39min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

13 Oct 2025 07:52PM UTC coverage: 71.292% (+0.03%) from 71.26%
18476687500

push

github

web-flow
Add gdal raster zonal-stats

Adds a zonal-stats algorithm to calculate raster and vector zonal statistics.

Covers most but not all of the functionality of https://github.com/isciences/exactextract - I'm trying to figure out the right balance of feature vs complexity. Some cases not handled:

- Stats requiring an argument (e.g., quantile)
- Optional stat arguments (min_coverage_frac, coverage_weight)
- Area-weighting (I think this is best handled by creating a cell area raster using VRT)
- Using weights from multiple bands
- Default values or weights (better handled using VRT, probably)

1124 of 1220 new or added lines in 10 files covered. (92.13%)

79 existing lines in 36 files now uncovered.

587443 of 823994 relevant lines covered (71.29%)

289684.42 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
76.85
0.15% gcore/gdal_misc.cpp
7
95.39
alg/raster_stats.h
7
92.39
apps/gdalalg_raster_zonal_stats.cpp
80
91.31
alg/zonal.cpp

Uncovered Existing Lines

Lines Coverage ∆ File
1
91.78
0.06% alg/gdalgrid.cpp
1
88.56
0.21% alg/viewshed/viewshed_executor.cpp
1
90.65
-0.06% frmts/gtiff/gt_wkt_srs.cpp
1
62.86
-0.27% frmts/gtiff/libtiff/tif_open.c
1
66.47
0.0% frmts/gtiff/libtiff/tif_read.c
1
87.21
-0.07% frmts/vrt/vrtsourcedrasterband.cpp
1
85.17
-0.13% frmts/zarr/zarr_v3_array.cpp
1
86.45
-0.08% gcore/gdaldriver.cpp
1
76.85
0.15% gcore/gdal_misc.cpp
1
82.38
0.03% gcore/gdalrasterband.cpp
1
87.81
-0.19% ogr/ogrsf_frmts/mitab/mitab_mapindexblock.cpp
1
78.34
-0.09% port/cpl_conv.cpp
1
71.12
0.88% port/cpl_error.cpp
1
79.55
-0.2% port/cpl_multiproc.cpp
1
75.25
-0.03% port/cpl_vsil_curl.cpp
1
90.31
-0.44% port/cpl_worker_thread_pool.cpp
1
88.73
-0.35% third_party/LercLib/BitStuffer2.cpp
1
88.64
-0.32% third_party/LercLib/Huffman.cpp
2
7.67
-0.01% build-coverage/swig/java/org/gdal/gdal/gdal_wrap.cpp
2
17.5
-1.67% frmts/gff/gff_dataset.cpp
2
53.45
-0.08% frmts/gtiff/libtiff/tif_dir.c
2
66.88
-1.27% frmts/gtiff/libtiff/tif_hash_set.c
2
87.88
0.1% gcore/overview.cpp
2
90.43
-0.05% ogr/ogrsf_frmts/gpkg/ogrgeopackagetablelayer.cpp
2
89.92
0.22% port/cpl_string.cpp
2
70.19
0.0% port/cpl_vsisimple.cpp
3
93.03
-0.1% apps/gdalalg_raster_tile.cpp
4
40.59
-0.91% frmts/gtiff/libtiff/tif_dirinfo.c
4
54.56
-0.06% frmts/gtiff/libtiff/tif_dirwrite.c
4
62.59
-0.98% frmts/gtiff/libtiff/tif_webp.c
4
55.94
-0.93% frmts/gtiff/libtiff/tif_write.c
4
92.52
-0.91% ogr/ogrsf_frmts/mvt/mvt_tile.cpp
4
86.66
-0.36% port/cpl_vsil_curl_streaming.cpp
5
91.79
-0.11% gcore/rasterio.cpp
5
71.97
0.19% third_party/LercLib/Lerc2.h
8
34.07
0.05% frmts/gtiff/libtiff/tif_dirread.c
Jobs
ID Job ID Ran Files Coverage
1 18476687500.1 13 Oct 2025 09:15PM UTC 2005
71.29
GitHub Action Run
Source Files on build 18476687500
  • Tree
  • List 2005
  • Changed 59
  • Source Changed 8
  • Coverage Changed 59
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #18476687500
  • 7f804d42 on github
  • Prev Build on master (#18447155258)
  • Next Build on master (#18494177910)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc