Repository navigation
Generate the classes of the RASTER family from the catalog - #118
Merged
estebanzimanyi merged 3 commits intoNov 20, 2026
Merged
Conversation
estebanzimanyi
force-pushed
the
feat/raster-classes
branch
2 times, most recently
from
November 20, 2026 08:57
21f893e to
8f22a4a
Compare
The temporal points hash a point by its coordinates, so the four hashes of tgeompoint_test.py and tgeogpoint_test.py are the ones MEOS states, the same for a geometry and a geography point. A geography sequence drops a middle instant only where MEOS proves it on the great-circle path, so the normalization tests of tgeogpoint_test.py take their points on the equator, the great circle the doubles prove a middle instant on: [Point(0 0), Point(0.25 0), Point(1 0)] normalizes to its two ends. temporal_sample of a geography sequence every twelve hours keeps the instant it samples at noon. speed and cumulative_length of tgeompoint_test.py compare their derived doubles at 12 decimals, as MobilityDB's tests bound a derived float, since the GitHub runners state them a unit in the last place away from the value the expected text spells. Why: MobilityDB master hashes a point by its coordinates since c970ec2d1c, which moved the hashes of every temporal point, and decides the redundant instants of a geodetic sequence exactly since 23819c336f, which keeps an instant floating trigonometry only places near the arc, as the point a quarter of the way from Point(1 1) to Point(2 2) the tests used; 15 tests of tgeompoint_test.py and tgeogpoint_test.py failed against it. Measured: over libmeos and the catalog of MobilityDB master f11d71b43a, the suite passes, 5091 tests, and ruff check and ruff format report nothing.
estebanzimanyi
force-pushed
the
feat/raster-classes
branch
from
November 20, 2026 09:10
8f22a4a to
a31e1c5
Compare
MobilityDB supports one H3 release, H3_REQUIRED_VERSION of its top-level CMakeLists.txt, and its configure refuses any other. The macOS jobs build that release with the checkout's own .github/scripts/install-h3.sh into the prefix MEOS is installed into, as PyMEOS-CFFI's macOS job builds it, and state the library and its header directory to the MEOS configure; the library is not one of the Homebrew tools. Why: Homebrew's h3 is 4.5.0 and MobilityDB master requires 4.6.0, so both macOS jobs stopped at "CMake Error at CMakeLists.txt:357", the version check (run 44708317742).
tools/oo_codegen/classgen.py writes the classes of a MEOS family the PyMEOS core has no module for, read off the catalog as the sibling bindings' object layers read it: the Value companion nodes whose conditional names the family give the classes, Raster, RaQuet and BandStats; objectModel.classes gives each its methods and operators; and every aggregate of the catalog over a class's values is a static method threading the transition from a NULL state into the final function, the class read as MEOS.NET's #aggregate_class reads it. A method is named snake(ooName), PyMEOS's case of the object model's language-neutral name: as_hex_wkb, e_value, raster_union, summary_stats_agg. How each argument and answer crosses is read off the signature pymeos_cffi exports: a pointer of a class the module emits or the core defines crosses as that object's _inner, a list of them as a list of _inner, and an answer is wrapped in its class, a temporal value by _TemporalFactory; overloads of one name dispatch on the type of the argument where they differ, add taking a number or a Raster. pymeos/raster/raster.py is the generator's output, 125 members over three classes; the six members no rule reads, clip and the dumps answering raw arrays among them, are reported and left out. tests/raster/raster_test.py states the statistics and the union of two tiles, an operator's dispatch and a writer's options. Why: PyMEOS carried no raster class, while MobilityDuck, GoMEOS, MEOS.js and MEOS.NET carry the 79 raster functions. Measured: over the catalog of MobilityDB master 6a53d51054, with pymeos_cffi built from PyMEOS-CFFI MobilityDB#68, tests/raster passes 5 of 5 and the suite passes 5081 tests; its 15 failures, of tests/main/tgeogpoint_test.py and tgeompoint_test.py, fail alike on master 3371776 over the same library. ruff check and ruff format report nothing.
estebanzimanyi
force-pushed
the
feat/raster-classes
branch
from
November 20, 2026 09:25
a31e1c5 to
af717bc
Compare
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.
tools/oo_codegen/classgen.py writes the classes of a MEOS family the PyMEOS core has no module for, read off the catalog as the sibling bindings' object layers read it: the Value companion nodes whose conditional names the family give the classes, Raster, RaQuet and BandStats; objectModel.classes gives each its methods and operators; and every aggregate of the catalog over a class's values is a static method threading the transition from a NULL state into the final function, the class read as MEOS.NET's #aggregate_class reads it. A method is named snake(ooName), PyMEOS's case of the object model's language-neutral name: as_hex_wkb, e_value, raster_union, summary_stats_agg. How each argument and answer crosses is read off the signature pymeos_cffi exports: a pointer of a class the module emits or the core defines crosses as that object's _inner, a list of them as a list of _inner, and an answer is wrapped in its class, a temporal value by _TemporalFactory; overloads of one name dispatch on the type of the argument where they differ, add taking a number or a Raster. pymeos/raster/raster.py is the generator's output, 125 members over three classes; the six members no rule reads, clip and the dumps answering raw arrays among them, are reported and left out. tests/raster/raster_test.py states the statistics and the union of two tiles, an operator's dispatch and a writer's options.
Why: PyMEOS carried no raster class, while MobilityDuck, GoMEOS, MEOS.js and MEOS.NET carry the 79 raster functions.
Measured: over the catalog of MobilityDB master 6a53d51054, with pymeos_cffi built from PyMEOS-CFFI #68, tests/raster passes 5 of 5 and the suite passes 5081 tests; its 15 failures, of tests/main/tgeogpoint_test.py and tgeompoint_test.py, fail alike on master 3371776 over the same library. ruff check and ruff format report nothing.