Skip to content

Build a raster from its pixels and its grid on the Flink SQL surface - #92

Merged
estebanzimanyi merged 1 commit into
MobilityDB:mainfrom
estebanzimanyi:test/raster-from-pixels-round-trip
Oct 25, 2026
Merged

estebanzimanyi merged 1 commit into
MobilityDB:mainfrom
estebanzimanyi:test/raster-from-pixels-round-trip

Conversation

@estebanzimanyi

Copy link
Copy Markdown
Member

GeneratedSqlSurfaceTest.aRasterIsBuiltFromItsPixelsAndItsGrid builds a 2x2 16BSI raster with raster(pixels, width, height, upperleftx, upperlefty, scalex, scaley, skewx, skewy, srid, pixeltype, nodataval) and reads back its pixels, its pixel type int16, its nodata value and its SRID, and the raster rebuilt from those reads, its nodata value included, has its WKB.It rebuilds the depth raster of aRasterDerivedByArithmeticIsReadAlongATrip, which states no nodata value, from rasterPixels and its other accessors, and its WKB is the depth raster's. A 4BUI band, which stores a byte per pixel, reads as uint8 and is rebuilt as an 8BUI band of the same bytes.makeEmptyRaster followed by addBand of an initial value answers a band of that value, addBand of another raster's band answers a raster of two bands, and addBand with a nodata value states it.

Witness: MobilityDB master dd8679e776 and MEOS-API master 71c23da with JMEOS main a0dc2a06, whose generator registers raster and addBand with and without the nodata value since JMEOS #192.

GeneratedSqlSurfaceTest.aRasterIsBuiltFromItsPixelsAndItsGrid builds a 2x2 16BSI raster with raster(pixels, width, height, upperleftx, upperlefty, scalex, scaley, skewx, skewy, srid, pixeltype, nodataval) and reads back its pixels, its pixel type int16, its nodata value and its SRID, and the raster rebuilt from those reads, its nodata value included, has its WKB.It rebuilds the depth raster of aRasterDerivedByArithmeticIsReadAlongATrip, which states no nodata value, from rasterPixels and its other accessors, and its WKB is the depth raster's. A 4BUI band, which stores a byte per pixel, reads as uint8 and is rebuilt as an 8BUI band of the same bytes.makeEmptyRaster followed by addBand of an initial value answers a band of that value, addBand of another raster's band answers a raster of two bands, and addBand with a nodata value states it.

Witness: MobilityDB master dd8679e776 and MEOS-API master 71c23da with JMEOS main a0dc2a06, whose generator registers raster and addBand with and without the nodata value since JMEOS #192.
@estebanzimanyi
estebanzimanyi merged commit 8d8763a into MobilityDB:main Oct 25, 2026
2 checks passed
@estebanzimanyi
estebanzimanyi deleted the test/raster-from-pixels-round-trip branch October 25, 2026 19:54
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