Skip to content

Accept only the interpolations the standard names - #60

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

Accept only the interpolations the standard names#60
estebanzimanyi merged 1 commit into
masterfrom
fix/interpolation-standard-only

Conversation

@estebanzimanyi

Copy link
Copy Markdown
Member

The interpolation a client may write is the set OGC API - Moving Features Part 1 names:

where admitted
a temporal geometry, through motionCurve Discrete, Step, Linear, Quadratic, Cubic
a temporal property value, through temporalPrimitiveValue Discrete, Step, Linear, Regression

Stepwise is the older MF-JSON encoding extension's word for the step function. Part 1 does not name it, so it is not a name a conformant client writes and the tier does not answer to it.

A name outside the set is refused where it is read, rather than carried into MobilityDB to fail there, and the two refusals are different answers a client can act on:

  • 501 for Quadratic, Cubic and Regression — the standard names them and MobilityDB does not carry them, so the request is understood and unserved;
  • 400 for anything the standard does not name at all, Stepwise among them.

The status travels with the error, so a temporal property POST reports the one its body earns. The output side is untouched — the tier writes Step — and the sample documents are identical, which the conformance job's freshness check confirms.

The interpolation a client may write is the set OGC API - Moving Features Part 1
names: a temporal geometry takes Discrete, Step, Linear, Quadratic or Cubic
through `motionCurve`, and a temporal property value takes Discrete, Step,
Linear or Regression through `temporalPrimitiveValue`. `Stepwise` is the older
MF-JSON encoding extension's word for the step function, Part 1 does not name
it, and the tier no longer answers to it.

A name outside the set is refused where it is read rather than carried into
MobilityDB to fail there, and the two refusals are different answers: a name the
standard admits and MobilityDB does not carry — Quadratic, Cubic, Regression —
is 501, because the request is understood and unserved, while a name the
standard does not admit at all is 400. The status travels with the error, so a
temporal property POST reports the one its body earns.
@estebanzimanyi
estebanzimanyi merged commit edd557e into master Aug 29, 2026
2 checks passed
@estebanzimanyi
estebanzimanyi deleted the fix/interpolation-standard-only branch August 29, 2026 21:42
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