Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Ported turf measurement center function #120

Merged
merged 1 commit into from
Feb 12, 2024

Conversation

P72B
Copy link
Contributor

@P72B P72B commented Sep 27, 2023

issue#4 fix suggestion

I ported the JS turf center function into Measurement.kt class and added a simple test

Visually I confirmed the output here. Testfile GeoJson is on gist.
2023 09 27 turf center

@P72B P72B mentioned this pull request Sep 27, 2023
@P72B
Copy link
Contributor Author

P72B commented Sep 27, 2023

@dellisd can you move https://github.com/dellisd/spatial-k/projects/1#card-37013816 in progress please. Thank you.

@dellisd dellisd linked an issue Oct 2, 2023 that may be closed by this pull request
Copy link
Owner

@dellisd dellisd left a comment

Choose a reason for hiding this comment

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

Sorry for the delay in reviewing. This is great, thank you!

My only request is that you add another overload of the function to accept a Geometry object, similar to how the other functions have multiple overloads to accept the different types of geometry/features.

fun center(geometry: Geometry): Point

Thanks again!

@P72B P72B force-pushed the feature/issue4_measurement_center branch from 8339af2 to cecc420 Compare October 2, 2023 18:48
@P72B
Copy link
Contributor Author

P72B commented Oct 2, 2023

Hi, I provided the overload function to provide also the center from a plain geometry.

Thank you for the hint and this nice lib!

@P72B P72B requested a review from dellisd October 2, 2023 18:51
@P72B
Copy link
Contributor Author

P72B commented Feb 12, 2024

Hi @dellisd any updates here about the pending merge?

@dellisd
Copy link
Owner

dellisd commented Feb 12, 2024

Really sorry for the delay again! This is great, thank you so much

@dellisd dellisd merged commit 4c738e1 into dellisd:master Feb 12, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Measurement - center
2 participants