Skip to content

Type mapping for Collections bbox  #319

Open
@ccancellieri

Description

@ccancellieri

I'm proceeding into the development of the collections search and I encountered the following schema definition:

"extent.spatial.bbox": {"type": "long"},
 "extent.temporal.interval": {"type": "date"},

This is preventing me to apply any spatial filter on this field, so I was wondering if we can consider to change this schema.

The standard says:
https://github.com/radiantearth/stac-spec/blob/master/collection-spec/collection-spec.md#spatial-extent-object

So it should be a [[number]] which may be mapped to a long or double rater than a long, don't you think so?
https://www.elastic.co/guide/en/elasticsearch/reference/current/number.html

Moreover the standard talks about interval as [[string|null]] ( https://github.com/radiantearth/stac-spec/blob/master/collection-spec/collection-spec.md#temporal-extent-object )
and this has been mapped as 'date' instead.

This is great so we can search and filter by date not using generic strings.

But so, why don't we map the spatial extent with a geo_shape?

"extent.spatial.bbox": {"type": "geo_shape"},

so we can start properly search collections with s_intersection filters?

Thanks

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