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

kp-forks / gdal / 12774764653
72%

Build:
DEFAULT BRANCH: master
Ran 14 Jan 2025 09:21PM UTC
Jobs 1
Files 1876
Run time 7min
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

14 Jan 2025 05:00PM UTC coverage: 70.082% (-0.007%) from 70.089%
12774764653

push

github

web-flow
VRT Pixel Functions: Add function to evaluate arbitrary expression (#11209)

Adds a C++ pixel function called "expression" that can evaluate an arbitrary expression (or indeed, a mini-program) using either:
- the [exprtk library](https://www.partow.net/programming/exprtk/index.html). This is a single MIT-licensed header, that appears to be quite widely used. But which causes a significant increase in size of libgdal (8 MB)
- or [muparser](https://github.com/beltoforion/muparser), that supports a reasonable variety of functions including a ternary conditional operator

muparser is the deault when the "dialect" is not specified.

An example VRT that is allowed is:

```
<VRTDataset rasterXSize="1" rasterYSize="1">
  <VRTRasterBand dataType="Float64" band="1" subClass="VRTDerivedRasterBand">
    <PixelFunctionType>expression</PixelFunctionType>
    <PixelFunctionArguments expression="(NIR-R)/(NIR+R)" />
    <SimpleSource name="NIR">
      <SourceFilename relativeToVRT="0">source_0.tif</SourceFilename>
      <SourceBand>1</SourceBand>
    </SimpleSource>
    <SimpleSource name="R">
      <SourceFilename relativeToVRT="0">source_1.tif</SourceFilename>
      <SourceBand>1</SourceBand>
    </SimpleSource>
  </VRTRasterBand>
</VRTDataset>
```

199 of 227 new or added lines in 8 files covered. (87.67%)

418 existing lines in 28 files now uncovered.

563607 of 804210 relevant lines covered (70.08%)

222793.83 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
87.5
frmts/vrt/vrtexpression.h
1
82.07
0.24% frmts/vrt/vrtprocesseddataset.cpp
4
90.44
-0.07% frmts/vrt/pixelfunctions.cpp
10
84.13
frmts/vrt/vrtexpression_muparser.cpp
12
90.16
-0.28% frmts/vrt/vrtprocesseddatasetfunctions.cpp

Uncovered Existing Lines

Lines Coverage ∆ File
1
66.47
0.0% frmts/gtiff/libtiff/tif_read.c
1
90.3
-0.02% ogr/ogrsf_frmts/gpkg/ogrgeopackagetablelayer.cpp
1
95.0
-1.0% frmts/nitf/nitfdrivercore.cpp
1
90.58
-0.06% frmts/gtiff/gt_wkt_srs.cpp
1
82.07
0.24% frmts/vrt/vrtprocesseddataset.cpp
1
87.5
-4.17% alg/viewshed/combiner.cpp
1
69.08
-0.38% port/cpl_vsisimple.cpp
1
97.74
-0.03% autotest/cpp/test_cpl.cpp
1
89.15
-0.23% port/cpl_path.cpp
1
86.93
-0.07% frmts/vrt/vrtsourcedrasterband.cpp
1
84.37
-0.13% frmts/zarr/zarr_v3_array.cpp
2
54.24
0.13% frmts/gtiff/libtiff/tif_dirwrite.c
2
79.3
0.0% gcore/gdalrasterband.cpp
2
92.97
-0.45% ogr/ogrsf_frmts/mvt/mvt_tile.cpp
2
86.43
-0.08% port/cpl_vsil_s3.cpp
2
56.47
-0.47% frmts/gtiff/libtiff/tif_write.c
2
91.55
-0.04% gcore/rasterio.cpp
2
89.5
-0.11% alg/gdalgrid.cpp
3
86.78
-0.11% gcore/overview.cpp
3
88.35
0.02% frmts/mrf/LERCV1/Lerc1Image.cpp
3
53.97
-0.16% frmts/gtiff/libtiff/tif_dir.c
3
81.2
-0.53% frmts/nitf/nitfrasterband.cpp
4
86.28
-0.36% port/cpl_vsil_curl_streaming.cpp
4
33.84
0.07% frmts/gtiff/libtiff/tif_dirread.c
5
40.82
-0.91% frmts/gtiff/libtiff/tif_dirinfo.c
6
94.35
-4.84% port/cpl_sha1.cpp
107
83.25
-9.44% port/cpl_aws.cpp
255
83.14
-0.11% gcore/gdaldataset.cpp
Jobs
ID Job ID Ran Files Coverage
1 12774764653.1 14 Jan 2025 09:21PM UTC 1876
70.08
GitHub Action Run
Source Files on build 12774764653
  • Tree
  • List 1876
  • Changed 511
  • Source Changed 8
  • Coverage Changed 55
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #12774764653
  • a12a5f6c on github
  • Prev Build on master (#12760541068)
  • Next Build on master (#12780810986)
  • Delete
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