Skip to content

Give the statistics of a raster band a class - #280

Merged
estebanzimanyi merged 1 commit into
MobilityDB:masterfrom
estebanzimanyi:om/bandstats-class
Nov 19, 2026
Merged

estebanzimanyi merged 1 commit into
MobilityDB:masterfrom
estebanzimanyi:om/bandstats-class

Conversation

@estebanzimanyi

Copy link
Copy Markdown
Member

raster_summary_stats answers a BandStats, the record PostGIS's ST_SummaryStats states, and the object model held no class over it, so its six accessors, bandstats_count, _sum, _mean, _stddev, _min and _max, belonged to none and a binding projecting the model carried none of them. meta/object-model.json declares BandStats a leaf of Value with the prefix bandstats, beside Raster, naming no MeosType as Raster names none; the accessors are its members count, sum, mean, stddev, min and max.

Witness: test_the_statistics_of_a_band_are_a_class_of_their_own classifies bandstats_count and bandstats_mean into BandStats as count and mean; it fails without the node. test_a_type_meos_registers_in_no_enum_still_gets_a_class lists BandStats among the classes naming no MeosType.

Measured: over the catalog derived from MobilityDB master 2880c4adee the object model of this branch and of master differ in the six accessors alone, joining BandStats, whose cType is BandStats; every other key of the catalog is equal; the suite passes, 702 passed and 31 skipped.

Why: the summary statistics of a band are part of the raster surface every binding carries (MobilityDB #3775), and a binding generated from the object model reaches them only through a class.

raster_summary_stats answers a BandStats, the record PostGIS's ST_SummaryStats states, and the object model held no class over it, so its six accessors, bandstats_count, _sum, _mean, _stddev, _min and _max, belonged to none and a binding projecting the model carried none of them. meta/object-model.json declares BandStats a leaf of Value with the prefix bandstats, beside Raster, naming no MeosType as Raster names none; the accessors are its members count, sum, mean, stddev, min and max.

Witness: test_the_statistics_of_a_band_are_a_class_of_their_own classifies bandstats_count and bandstats_mean into BandStats as count and mean; it fails without the node. test_a_type_meos_registers_in_no_enum_still_gets_a_class lists BandStats among the classes naming no MeosType.

Measured: over the catalog derived from MobilityDB master 2880c4adee the object model of this branch and of master differ in the six accessors alone, joining BandStats, whose cType is BandStats; every other key of the catalog is equal; the suite passes, 702 passed and 31 skipped.

Why: the summary statistics of a band are part of the raster surface every binding carries (MobilityDB #3775), and a binding generated from the object model reaches them only through a class.
@estebanzimanyi
estebanzimanyi merged commit 8b09824 into MobilityDB:master Nov 19, 2026
3 checks passed
@estebanzimanyi
estebanzimanyi deleted the om/bandstats-class branch November 19, 2026 18:16
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