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

Feature/check counter clockwise footprints #88

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from

Conversation

sliu008
Copy link
Contributor

@sliu008 sliu008 commented Feb 20, 2025

  • add a check to make sure there is more than 3 points in coordinates for a ring. Needs be greater than 3 as the first and last point is the same in a ring coordinates.

@@ -323,8 +323,10 @@ public List<PointType> getPointArray(Geometry geometry) {
}

// Check if coordinates are in clockwise order and reverse if needed
if (!CGAlgorithms.isCCW(coordinates)) {
coordinates = reverseCoordinates(coordinates);
if(coordinates.length > 3){
Copy link
Contributor

Choose a reason for hiding this comment

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

can you add a space after the if to be consistent?

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.

2 participants