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

remove bg::correct to stay compatible with older boost.geometry versions #3218

Merged
merged 6 commits into from
Jul 20, 2021

Conversation

nilsnolde
Copy link
Member

@nilsnolde nilsnolde commented Jul 19, 2021

fixes #3217

eft a TODO to fix winding for counterclockwise rings done:)

@nilsnolde nilsnolde requested a review from kevinkreiser July 19, 2021 15:18
@@ -32,13 +32,23 @@ static const auto Haversine = [] {
return bg::strategy::distance::haversine<float>(vm::kRadEarthMeters);
};

void correct_ring(ring_bg_t& ring) {
Copy link
Member Author

Choose a reason for hiding this comment

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

reminds me what I always wanted to ask: what's the convention in this repo for function names? pascalcase for public API, snake for internal? couldn't really make sense of it yet but was also never complained about :)

Copy link
Member

Choose a reason for hiding this comment

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

once upon a time we made the huge mistake of using googles coding guidelines. they basically look like a java developer figured c++ was close enough to use the same style. i assume their motivation was minimal friction between moving around projects for developers inside of google.

i personally hated this style and whenever someone else hadn't already had tons of established google-style code i used my preferred STL-like underscores and lower case. basically a lot of it is my fault and i've caught a lot of flack for it over the years 😜

@nilsnolde
Copy link
Member Author

windedness is now corrected for as well @kevinkreiser

@nilsnolde
Copy link
Member Author

good to go from my side:)

@kevinkreiser kevinkreiser merged commit 5ec6f65 into master Jul 20, 2021
@nilsnolde nilsnolde deleted the nn-remove-bg-correct branch August 25, 2021 08:49
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.

Remove "bg::correct" again
2 participants