GeoLatte / geolatte-geom

A geometry model that conforms to the OGC Simple Features for SQL specification.
Other
134 stars 63 forks source link

{HHH-10410} Co-linear points are causing an exception #43

Closed IgnacioCalvo closed 8 years ago

IgnacioCalvo commented 8 years ago

https://hibernate.atlassian.net/browse/HHH-10410 http://stackoverflow.com/questions/34884955/hibernateexception-positions-are-collinear-in-2d When trying to create a polygon with co-linear latitudes hibernate spatial is throwing an exception. Instead of checking only the first three points, we'll iterate while points are collinear and find out whether the geometry is counter clockwise or not.