Repository navigation
Return the hexadecimal WKB of every type as its string alone - #46
Merged
estebanzimanyi merged 1 commit intoNov 1, 2026
Merged
Conversation
A MEOS function returning a string whose length it writes through its one size_t output parameter returns the string alone: the hexadecimal WKB and EWKB writers of every type, 26 functions, among them temporal_as_hexwkb, tspatial_as_hexewkb, set_as_hexwkb and npoint_as_hexwkb. The length is the string's own, as GoMEOS's tools/objectgen.py and MEOS.NET's object layer drop it, so temporal_as_hexwkb(temp, variant) is a str, not a (str, int) pair. The generator reads the shape from the catalog, a char * return with a size_t * in shape.outParams, the string twin of the byte buffer returned as bytes. Witness: the 26 writers annotated tuple[str, size_t *] and answered the pair, so PyMEOS reads [0] at each of its twenty calls; each now annotates str and answers the string. Measured: generated from one catalog of MobilityDB aabe426a2e before and after, the surfaces differ in those 26 functions alone; the smoke test checks five annotations and that set_as_hexwkb answers the hexadecimal form of the bytes set_as_wkb answers, and passes on the wheel built against the libmeos of that commit, where PyMEOS on the branch of the same name passes 4855 tests.
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.
A MEOS function returning a string whose length it writes through its
one size_t output parameter returns the string alone: the hexadecimal
WKB and EWKB writers of every type, 26 functions, among them
temporal_as_hexwkb, tspatial_as_hexewkb, set_as_hexwkb and
npoint_as_hexwkb. The length is the string's own, as GoMEOS's
tools/objectgen.py and MEOS.NET's object layer drop it, so
temporal_as_hexwkb(temp, variant) is a str, not a (str, int) pair. The generator reads the shape from the catalog, a char * return
with a size_t * in shape.outParams, the string twin of the byte buffer
returned as bytes.
Witness: the 26 writers annotated tuple[str, size_t *] and answered the
pair, so PyMEOS reads [0] at each of its twenty calls; each now
annotates str and answers the string.
Measured: generated from one catalog of MobilityDB aabe426a2e before and
after, the surfaces differ in those 26 functions alone; the smoke test
checks five annotations and that set_as_hexwkb answers the hexadecimal
form of the bytes set_as_wkb answers, and passes on the wheel built
against the libmeos of that commit, where PyMEOS on the branch of the
same name passes 4855 tests.