Skip to content

Augment error with actionable instructions #427

@tylere

Description

@tylere

Description

The stac-map viewer can be used to map parquet files that include STAC information.

Use case

For example, the request
https://developmentseed.org/stac-map/?href=https://data.source.coop/maxar/maxar-opendata/maxar-opendata.parquet

displays

Image

Error
Binder Error: Cannot extract field 'xmin' from expression "bbox" because it is not a struct, union, map, or json

From this error, it is not clear to the user whether there is an error in the stac-map viewer or the dataset, and what the next action is for resolving the error. (And what is a "Binder" in this context?)

It would be helpful if the error message included actionable information such as:

To display the map data, update your file to GeoParquet v1.1

Additional context

Here is an example record from the file that demonstrates the issue:

# id datetime platform gsd quadkey bbox (lon/lat) clouds %
1 46/033111300111/1040010082988200 2023-03-13 21:30:22 -07 WV03 0.34 033111300111 91.839, 21.653 → 91.842, 21.666 0

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions