Skip to content

Proposal: front/back COG images for scanned maps #66

@kgjenkins

Description

@kgjenkins

We are in the process of adding a large collection of scanned maps to our GBL instance. We would like to distribute the images as COGs, and allow users to preview/zoom/pan the images using the COG viewer in GBL. However, many of these maps have a front and a back (two separate COG images).

Currently, the COG key https://github.com/cogeotiff/cog-spec in dct_references_s only supports a single string value. We propose allowing it to optionally hold an array, similar to multiple downloads:

\"https://github.com/cogeotiff/cog-spec\":
[
  {\"label\":\"Front\", \"url\":\"https://example.com/front.tif\"},
  {\"label\":\"Back\", \"url\":\"https://example.com/back.tif\"}
]

We currently have some code working locally that will handle such a structure, presenting the COG map preview with tabs at the top for selecting the "Front" or "Back" image:

Image

In cases where the COG key points to a single URL string, the COG viewer would retain the current behavior. It would only show the tabs when the value is an array of objects with a "label" key (and a "url" key pointing to the COG). So no changes would be necessary to existing Aardvark records.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    Status

    In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions