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

OSGeo / gdal / 12772620384
72%

Build:
DEFAULT BRANCH: master
Ran 14 Jan 2025 07:48PM UTC
Jobs 1
Files 1876
Run time 8min
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.094%. Remained the same
12772620384

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%)

341 existing lines in 35 files now uncovered.

563705 of 804210 relevant lines covered (70.09%)

223160.08 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
80.56
0.0% frmts/gtiff/libtiff/tif_predict.c
1
94.07
-0.14% gcore/gdalpamdataset.cpp
1
87.45
-0.43% third_party/LercLib/Lerc2.cpp
1
82.07
0.24% frmts/vrt/vrtprocesseddataset.cpp
1
84.09
-0.17% frmts/gtiff/libtiff/tif_lzw.c
1
84.65
-0.5% frmts/ctg/ctgdataset.cpp
1
88.11
0.13% port/cpl_minixml.cpp
1
88.76
-0.15% gcore/gdalpamrasterband.cpp
1
86.64
0.48% port/cpl_vsil_curl_streaming.cpp
1
70.96
-0.1% port/cpl_compressor.cpp
1
91.11
-0.04% ogr/ogrgeometryfactory.cpp
1
46.49
-0.88% third_party/LercLib/Lerc_c_api_impl.cpp
1
77.08
0.0% gcore/gdal_misc.cpp
2
78.54
-0.14% frmts/jpegxl/jpegxl.cpp
2
86.82
0.0% gcore/overview.cpp
2
82.05
-5.13% third_party/LercLib/BitStuffer2.h
2
92.97
0.0% ogr/ogrsf_frmts/mvt/mvt_tile.cpp
2
56.71
-0.24% frmts/gtiff/libtiff/tif_write.c
2
86.55
-0.45% third_party/libertiff/libertiff.hpp
2
41.5
-0.45% frmts/gtiff/libtiff/tif_dirinfo.c
2
83.87
-3.23% frmts/jpeg/jpegdrivercore.cpp
2
88.38
-0.7% third_party/LercLib/BitStuffer2.cpp
3
82.65
-0.04% frmts/jpeg/jpgdataset.cpp
3
73.72
-2.19% frmts/raw/nsidcbindataset.cpp
3
79.2
-0.03% gcore/gdalrasterband.cpp
3
91.55
-0.04% gcore/rasterio.cpp
3
88.35
0.02% frmts/mrf/LERCV1/Lerc1Image.cpp
3
53.89
-0.08% frmts/gtiff/libtiff/tif_dir.c
4
69.14
-0.9% port/cpl_error.cpp
6
54.24
-0.31% frmts/gtiff/libtiff/tif_dirwrite.c
6
49.16
-3.35% third_party/LercLib/Lerc.cpp
7
71.12
-0.67% third_party/LercLib/Lerc2.h
7
92.01
-0.5% gcore/gdaljp2metadata.cpp
8
33.79
-0.15% frmts/gtiff/libtiff/tif_dirread.c
254
83.14
-0.07% gcore/gdaldataset.cpp
Jobs
ID Job ID Ran Files Coverage
1 12772620384.1 14 Jan 2025 07:48PM UTC 1876
70.09
GitHub Action Run
Source Files on build 12772620384
  • Tree
  • List 1876
  • Changed 508
  • Source Changed 8
  • Coverage Changed 56
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #12772620384
  • a12a5f6c on github
  • Prev Build on master (#12769142474)
  • Next Build on master (#12779113643)
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

© 2025 Coveralls, Inc