8000 Some "valid" polygons are treated as invalid by rgeo · Issue #212 · rgeo/rgeo · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Some "valid" polygons are treated as invalid by rgeo #212
Closed
@daesan

Description

@daesan

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0