Skip to content

Write the interpolation the standard names - #58

Merged
estebanzimanyi merged 1 commit into
masterfrom
fix/interpolation-token
Aug 29, 2026
Merged

Write the interpolation the standard names#58
estebanzimanyi merged 1 commit into
masterfrom
fix/interpolation-token

Conversation

@estebanzimanyi

Copy link
Copy Markdown
Member

A temporal geometry and a temporal property value carry Step for the step function, which is what OGC API - Moving Features Part 1 names in each of the two places it constrains an interpolation:

schema node admitted values
motionCurve, which temporalPrimitiveGeometry.interpolation takes through a $ref Discrete, Step, Linear, Quadratic, Cubic (or a URI)
temporalPrimitiveValue.interpolation Discrete, Step, Linear, Regression

Stepwise belongs to the older MF-JSON encoding extension and occurs 0 times in Part 1, against 7 for Step; the standard's own examples write "discharge": "Step". The response therefore carries MobilityDB's own Step, which is already that token, rather than rewriting it. A client that writes Stepwise is still understood, alongside Step.

A test reads both admitted sets out of the vendored schema — they are not the same list, and the geometry one is reachable only through the $ref — and checks the token each document carries. TestATSSchemaMotionCurveIsInverted already quotes that same enum, so the rewrite contradicted a test in the tree.

The two sample documents holding a step interpolation carry Step.

A temporal geometry and a temporal property value carry `Step` for the step
function, which is what OGC API - Moving Features Part 1 names in each of the
two places it constrains an interpolation: `motionCurve`, which a temporal
geometry takes through a `$ref`, enumerates Discrete/Step/Linear/Quadratic/Cubic,
and `temporalPrimitiveValue` enumerates Discrete/Step/Linear/Regression. The
word `Stepwise` belongs to the older MF-JSON encoding extension and appears
nowhere in Part 1, so the response carries MobilityDB's own `Step` rather than
rewriting it; a client that writes `Stepwise` is still understood, alongside
`Step`. A test reads both admitted sets out of the vendored schema and checks
the token each document carries, and the two samples holding a step
interpolation carry `Step`.
@estebanzimanyi
estebanzimanyi merged commit ae9e226 into master Aug 29, 2026
2 checks passed
@estebanzimanyi
estebanzimanyi deleted the fix/interpolation-token branch August 29, 2026 21:29
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