Skip to content

Read a raster derived by arithmetic along a trip on the typed Spark surface - #82

Merged
estebanzimanyi merged 1 commit into
MobilityDB:mainfrom
estebanzimanyi:test/raster-arithmetic
Oct 15, 2026
Merged

estebanzimanyi merged 1 commit into
MobilityDB:mainfrom
estebanzimanyi:test/raster-arithmetic

Conversation

@estebanzimanyi

Copy link
Copy Markdown
Member

GeneratedSqlSurfaceTest.aRasterDerivedByArithmeticIsReadAlongATrip reads a 3x3 depth raster,
built from the hex WKB PostGIS writes for it, along a trip in the same reference system. The
depth less a draught of 8.5, rasterSub(depth, 8.5), reads along the trip as MobilityDB answers
rasterValue(trip, depth - 8.5) in its raster regression test, and the depth added to itself and
halved, rasterDiv(rasterAdd(depth, depth), 2.0), or multiplied by itself and divided by itself,
rasterDiv(rasterMul(depth, depth), depth), reads as the depth itself, so each of the four
arithmetic functions is called in its raster-number or raster-raster form.

…urface

GeneratedSqlSurfaceTest.aRasterDerivedByArithmeticIsReadAlongATrip reads a 3x3 depth raster,
built from the hex WKB PostGIS writes for it, along a trip in the same reference system. The
depth less a draught of 8.5, rasterSub(depth, 8.5), reads along the trip as MobilityDB answers
rasterValue(trip, depth - 8.5) in its raster regression test, and the depth added to itself and
halved, rasterDiv(rasterAdd(depth, depth), 2.0), or multiplied by itself and divided by itself,
rasterDiv(rasterMul(depth, depth), depth), reads as the depth itself, so each of the four
arithmetic functions is called in its raster-number or raster-raster form.
@estebanzimanyi
estebanzimanyi merged commit 67b5d77 into MobilityDB:main Oct 15, 2026
2 checks passed
@estebanzimanyi
estebanzimanyi deleted the test/raster-arithmetic branch October 15, 2026 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant