Skip to content

Provide more grid fields #12

@fmigneault

Description

@fmigneault

Description

The readme (https://github.com/stac-extensions/grid?tab=readme-ov-file#additional-field-information) indicates many fields for each example (format string, example, components, products and reference).

Can those be added explicitly to the JSON schema?

Currently, the schema explicitly forbids grid:... beside grid:code, which forces adding these properties as general metadata fields without a relevant prefix. This makes it hard for clients to know what to parse to find relevant grid items.

Furthermore, grids often come with nesting considerations (coarser/finer representations). Could there be additional fields that reflect these references. For example, a grid:parents, grid:children and grid:neighbors that could reflect other STAC items that contains/are-contained-within/lives-next-to the current item being described.

Example result

Collection

{
  "grid:format": "custom-grid_L{level}.{id}",
  "grid:components": ["level", "id"],
  "grid:reference": "<uri-to-custom-grid>"
}

Item

note: each ./custom-grid_[...] could be an {"href": "...", "type": "..."} instead.

{
  "grid:code": "custom-grid_L2.5",
  "grid:components": {
    "level": 2,
    "id": 5
  },
  "grid:reference": "<uri-to-custom-grid>",
  "grid:parents": [
    "./custom-grid_L1.5.geojson"
  ],
  "grid:children": [
    "./custom-grid_L3.1.geojson",
    "./custom-grid_L3.2.geojson",
    "./custom-grid_L3.3.geojson",
    "./custom-grid_L3.4.geojson",
    "./custom-grid_L3.5.geojson"
  ],
  "grid:neighbors": [
    "./custom-grid_L2.1.geojson",
    "./custom-grid_L3.2.geojson",
    "./custom-grid_L3.3.geojson",
    "./custom-grid_L3.4.geojson"
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions