feat(bindings): tgeompoint round-trip I/O — Binary/EWKB/HexWKB/HexEWKB/MFJSON#83
Closed
estebanzimanyi wants to merge 1 commit into
Closed
feat(bindings): tgeompoint round-trip I/O — Binary/EWKB/HexWKB/HexEWKB/MFJSON#83estebanzimanyi wants to merge 1 commit into
estebanzimanyi wants to merge 1 commit into
Conversation
…B/MFJSON
Closes the user-facing round-trip I/O surface for tgeompoint so that
users can serialise temporal points across formats and reconstruct
them.
New SQL surface (16 registrations):
Producers:
- asBinary(tgeompoint) -> bytea (temporal_as_wkb, base WKB)
- asEWKB(tgeompoint) -> bytea (temporal_as_wkb, WKB_EXTENDED with SRID)
- asHexWKB(tgeompoint) -> text (temporal_as_hexwkb, base)
- asHexEWKB(tgeompoint) -> text (temporal_as_hexwkb, WKB_EXTENDED)
- asMFJSON(tgeompoint[, with_bbox[, flags[, precision[, srs]]]])
-> text (temporal_as_mfjson, 5 overloads)
Consumers:
- tgeompointFromText(text) (tgeompoint_in)
- tgeompointFromEWKT(text) (tgeompoint_in — auto-detects EWKT prefix)
- tgeompointFromBinary(bytea) (temporal_from_wkb)
- tgeompointFromEWKB(bytea) (temporal_from_wkb — auto-detects)
- tgeompointFromHexWKB(text) (temporal_from_hexwkb)
- tgeompointFromHexEWKB(text) (temporal_from_hexwkb — auto-detects)
- tgeompointFromMFJSON(text) (tgeompoint_from_mfjson)
Hooked into LoadInternal via a new RegisterRoundtripIO method on
TgeompointType.
Test: test/sql/parity/053_tgeompoint_io.test (14 assertions covering
producer non-empty output, all 7 round-trip pairs, asMFJSON with
optional bbox/flags/precision/srs args).
Full suite: 766 / 14 cases under TZ=UTC.
This was referenced May 1, 2026
Closed
Member
Author
|
Superseded by the consolidated PR branch |
2 tasks
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.
Closes the user-facing round-trip I/O surface for tgeompoint so users can serialise temporal points across formats and reconstruct them.
New SQL surface (16 scalar registrations)
Producers
Consumers
The `From*` aliases that share an underlying handler (e.g. FromBinary / FromEWKB) work because MEOS's WKB / hex-WKB readers auto-detect the format byte; the dual registrations are for SQL-name parity with MobilityDB.
Hooked into `LoadInternal` via a new `RegisterRoundtripIO` method on `TgeompointType`.
Tests
Coverage delta
Per the audit in PR #66:
Test plan