Closed
Description
Some polygons that are valid with MySQL or QGIS are causing error in rgeo.
Steps to reproduce
The following code results in exception.
RGeo::Geographic.spherical_factory.parse_wkt("POLYGON ((126.968027438107 37.5816708669373, 126.96804356077827 37.58168793850955, 126.96804348189114 37.5816870915542, 126.96804311029837 37.58168238826706, 126.96803990177084 37.581642824769546, 126.968027438107 37.5816708669373))")
Expected behavior
It should be parsed without problem.
Actual behavior
It throws the following exception.
RGeo::Error::InvalidGeometry (LinearRing failed ring test)
System configuration
Ruby version: 2.5.0p0
OS: Mac OS X 10.14.6