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

geo/geomfn: implement ST_Centroid for Geometry and string #49613

Merged
merged 1 commit into from May 28, 2020

Conversation

otan
Copy link
Contributor

@otan otan commented May 27, 2020

Also had to add hacks in to handle POINT EMPTY decoding -- this is
currently a problem with both GEOS and twpayne/go-geom, which I have
circumvented for now. An issue has been filed to track this.

Resolves #48893.
Resolves #48805.

Release note (sql change): Implement the ST_Centroid builtin which works
for Geometry and string arguments.

@otan otan requested review from sumeerbhola and a team May 27, 2020 21:30
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Also had to add hacks in to handle `POINT EMPTY` decoding -- this is
currently a problem with both GEOS and twpayne/go-geom, which I have
circumvented for now. An issue has been filed to track this.

Release note (sql change): Implement the ST_Centroid builtin which works
for Geometry and string arguments.
Copy link
Collaborator

@sumeerbhola sumeerbhola left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 9 of 9 files at r1.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained

@otan
Copy link
Contributor Author

otan commented May 28, 2020

TFTR!

bors r=sumeerbhola

@craig
Copy link
Contributor

craig bot commented May 28, 2020

Build failed (retrying...)

@craig
Copy link
Contributor

craig bot commented May 28, 2020

Build succeeded

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.

geo/geomfn: implement ST_Centroid({geometry}) geo: implement ST_Centroid({text}) -> geometry
3 participants