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

do not index proj:geometry and proj:centroid as geo fields #155

Merged
merged 5 commits into from
Oct 25, 2023

Conversation

StijnCaerts
Copy link
Collaborator

Related Issue(s):

Description:
Do not index proj:geometry and proj:centroid as geo fields.

PR Checklist:

  • Code is formatted and linted (run pre-commit run --all-files)
  • Tests pass (run make test)
  • Documentation has been updated to reflect changes, if applicable
  • Changes are added to the changelog

Copy link
Collaborator

@jonhealy1 jonhealy1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks

Copy link
Collaborator

@philvarner philvarner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you describe more why this is a problem? We're doing this same thing in stac-server (where this was copied from) and it's working fine.

@jonhealy1
Copy link
Collaborator

Could you describe more why this is a problem? We're doing this same thing in stac-server (where this was copied from) and it's working fine.

It could be better if fewer fields were being indexed.

@philvarner
Copy link
Collaborator

That might be the case, but for these, eventually implementing the Aggregation Extension will allow geoaggregations like geohex to be done over proj:centroid and bucket aggregation over grid;code.

@jonhealy1
Copy link
Collaborator

It makes sense to keep the indexing if it will be used. How do you feel about the point that was made saying that only WGS-84 is supported by es?

@philvarner
Copy link
Collaborator

ah, good point. proj:geometry should not be indexed like this for that reason -- I'll fix that in stac-server also. However, proj:centroid is supposed to be WGS84 lat/lon, though neither the Projection Extension nor the Elasticsearch geo_point documentation state that it must be WGS84 :(

@StijnCaerts
Copy link
Collaborator Author

I restored the mapping of the proj:centroid field to geo_point according to your feedback.

CHANGELOG.md Outdated Show resolved Hide resolved
Co-authored-by: Phil Varner <pvarner@element84.com>
@jonhealy1 jonhealy1 merged commit 8fc2d0d into stac-utils:main Oct 25, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants