-
Notifications
You must be signed in to change notification settings - Fork 260
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
Add function to compute centroid #167
Comments
@stolstov Sergey, how would you feel about adding centroid function to the library? |
@mbasmanova Would like to contribute? The following signature would be preferable:
|
Verification
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I cannot find an API to compute centroid of a geometry and I noticed that ST_Centroid function in spatial-framework-for-hadoop returns centroid of the bounding box and not of the geometry itself.
https://github.com/Esri/spatial-framework-for-hadoop/wiki/UDF-Accessors#st_centroid
I implemented ST_Centroid function in Presto using formulas from https://en.wikipedia.org/wiki/Centroid and now wondering if it makes sense to add the same to this library.
https://github.com/mbasmanova/presto/blob/master/presto-geospatial/src/main/java/com/facebook/presto/plugin/geospatial/GeoFunctions.java#L160
The text was updated successfully, but these errors were encountered: