-
Notifications
You must be signed in to change notification settings - Fork 15
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
Valid -> Invalid polygons can occur #6
Comments
Very useful tool, however as mentioned above invalid polygons can be produced, where two points become identical due to the rounding / clipping process. MySQL's geometry calculations will report invalid polygons in these cases. An example is below:
After conversion to 5 decimal places, this produces:
The third and fourth points are now identical. A potentially valid solution would simply be to drop any additional points with the same coordinates when forming the final polygons, although this of course would require additional logic. |
reducing coordinate precision of all coordinates in a polygon can unwittingly create invalid polygons. I'm not sure if it's the place of this program to care about that but it would be nice if no invalid polygons were written out.
The text was updated successfully, but these errors were encountered: