Skip to content

Expose min_distance on TPoint#83

Draft
estebanzimanyi wants to merge 1 commit into
bump/meos-1.4from
feat/mindistance-bindings
Draft

Expose min_distance on TPoint#83
estebanzimanyi wants to merge 1 commit into
bump/meos-1.4from
feat/mindistance-bindings

Conversation

@estebanzimanyi
Copy link
Copy Markdown
Member

Adds a TPoint.min_distance(other) instance method that returns the minimum spatial distance between the temporal point and other, ignoring time. For static geometry it dispatches to nad_tgeo_geo since the spatial-min and time-synchronous nearest-approach coincide when one side has no time dimension; for TPoint arguments it dispatches to mindistance_tgeo_tgeo with threshold = inf so the kernel returns the exact min without short-circuit. Mirrors the MobilityDB SQL surface added in #1007 where minDistance(tgeompoint, geometry) aliases to NAD_tgeo_geo and minDistance(tgeompoint, tgeompoint) is the 2-ary aggregate that degenerates to the per-pair value on a one-row group. Stacked on the MEOS 1.4 bump and on PyMEOS-CFFI feat/mindistance-bindings which the test workflow auto-discovers via the matching head-ref name.

Adds a TPoint.min_distance(other) instance method that returns the
minimum spatial distance between the temporal point and other,
ignoring time.  For static geometry it dispatches to nad_tgeo_geo
since the spatial-min and time-synchronous nearest-approach coincide
when one side has no time dimension; for TPoint arguments it dispatches
to mindistance_tgeo_tgeo with threshold = inf so the kernel returns
the exact min without short-circuit.  Mirrors the MobilityDB SQL
surface added in #1007 where minDistance(tgeompoint, geometry) aliases
to NAD_tgeo_geo and minDistance(tgeompoint, tgeompoint) is the 2-ary
aggregate that degenerates to the per-pair value on a one-row group.
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