Repository navigation
Give the statistics of a raster band a class - #280
Merged
estebanzimanyi merged 1 commit intoNov 19, 2026
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.