Comparing resampling methods in massivegeopackage: Difference between revisions

From Maria GDK Wiki
Jump to navigation Jump to search
()
()
Line 17: Line 17:


== Result ==
== Result ==
In massivegeopackage, the default resampling method is <code>average</code>, so we use that as a baseline. The column "Fraction" denotes the percentage difference between average and each other resampling method.
In massivegeopackage, the default resampling method is <code>average</code>, so we use that as a baseline. For each method, we compare execution time relative to the baseline. Negative values indicate faster execution; positive values indicate slower execution.
{| class="wikitable"
{| class="wikitable"
|+Resampling methods benchmark
|+Resampling methods benchmark
!Method
!Method
!Average time
!Average time (seconds)
!Fraction
!Difference vs. baseline
|-
|-
|average
|average
|42.45
|42.45
|100%
|0%
|-
|-
|nearest
|nearest
|38.50
|38.50
|91%
| -9%
|-
|-
|bilinear
|bilinear
|57.66
|57.66
|136%
|36%
|-
|-
|cubic
|cubic
|61.80
|61.80
|146%
|46%
|-
|-
|cubicspling
|cubicspling
|60.64
|60.64
|143%
|43%
|-
|-
|lanczos
|lanczos
|66.82
|66.82
|157%
|57%
|-
|-
|gauss
|gauss
|54.28
|54.28
|128%
|28%
|}
|}

Revision as of 15:14, 8 September 2026

There are a number of different resampling methods available in massivegeopackage. This article describes a benchmark to compare the processing time for each method when used on a typical dataset.

Method

Benchmark dataset
Resolution 12.5m
File size 713 MB
File count 76

The benchmark was performed by running massivegeopackage on a typical topographical dataset covering Norway (N250). The test was run 6 times for each resampling method. The first run for each method was discarded to control for any OS level caching.

Result

In massivegeopackage, the default resampling method is average, so we use that as a baseline. For each method, we compare execution time relative to the baseline. Negative values indicate faster execution; positive values indicate slower execution.

Resampling methods benchmark
Method Average time (seconds) Difference vs. baseline
average 42.45 0%
nearest 38.50 -9%
bilinear 57.66 36%
cubic 61.80 46%
cubicspling 60.64 43%
lanczos 66.82 57%
gauss 54.28 28%