Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON-FG Draft Standard #44

Open
docuracy opened this issue Mar 5, 2022 · 0 comments
Open

JSON-FG Draft Standard #44

docuracy opened this issue Mar 5, 2022 · 0 comments
Labels
enhancement New feature or request JSON Schema

Comments

@docuracy
Copy link
Collaborator

docuracy commented Mar 5, 2022

@kgeographer has drawn our attention to the OGC draft standard for JSON-FG (features and geometry) here, which proposes adding a simple time element to GeoJSON (among other things).

The proposals are defined here in JSON Schema format.

Observations

  1. JSON-FG features are required to have ALL of ["type", "time", "place", "geometry", "properties"], which seems to me unnecessarily verbose.
  2. The time object is limited to a more restricted set of ISO 8601 expressions than is permitted in the current LPF (though these are not defined/enforced by any regex patterns in the JSON Schema).
  3. The time object neatly uses ISO 8601-2 '..' notation to express unbounded intervals, but offers no means to represent after/before or earliest/latest.
  4. The link object described here is quite different from an LPF link. It uses href instead of identifier, and includes optional properties that might be considered useful for LPF.
  5. The representation of intervals as strings was rejected because a JSON structure 'is easier to parse' (see here), which seems to me a lazy and unnecessary concession to programmers at the expense of non-technical users. Parsing a string and splitting it on a '/' is trivial.

Suggestions

  1. LPF should adopt the OGC restricted set of ISO 8601 expressions for date and datetime.
  2. LPF links should conform to the OGC standard.
  3. LPF should keep its when property to avoid confusion with the OGC time property (which is both inadequate and over-prescriptive for LPF purposes).
@docuracy docuracy added enhancement New feature or request JSON Schema labels Mar 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request JSON Schema
Projects
None yet
Development

No branches or pull requests

1 participant