-
Notifications
You must be signed in to change notification settings - Fork 133
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
Calculate winding from ring. #343
Conversation
Signed-off-by: Adam Kater <[email protected]>
Indeed the suggested commit fixes the issue mention in #342 and permits creation of holes with 3 coordinates and suppress the thrown exception. |
Good question. But, assuming this is the correct Polygon class com.vividsolutions.jts.geom.Polygon the comments explicitly state that orientation of rings does not matter. There is also no guarantee that orientation is preserved. So, the winding direction should probably be treated as arbitrary. |
OK thanks for the clarification @akater320. |
@nprigour Is it possible to run all of the tests at once? Or is it necessary to run each test plugin individually? |
What do you mean by all the tests at once? If you refer to all udig tests in the various plugins then this can be accomplished by mvn by running the following command |
@nprigour |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@akater320 Were you able to run tests? Are you working on a test-case?
@@ -248,7 +248,7 @@ public static Polygon createPolygon( EditGeom currentGeom ) { | |||
} | |||
LinearRing hole = GeometryBuilder.create().safeCreateLinearRing(coordArray); | |||
// FIXME test when the hole has only one coordinate. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any chance to address the missing check for holes with only one coordinate?
Just testing a maven run with test profile, if I get no failures I'll merge it |
Correctly calculate the winding of triangles.
Fixes 342
Signed-off-by: Adam Kater [email protected]