-
-
Notifications
You must be signed in to change notification settings - Fork 247
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
LinearRing failed ring test #312
Comments
This is potentially a duplicate of rgeo/rgeo#218 |
Depending on the factory you're using, the given geometry might fail the linear ring test (it does on the |
same here: Location:
I create isochrones then I create the polygan Isochrone Polygan:
basically I'm just trying to do this
This is part of the migration (isochrone column type)
|
any updates? |
@shqear93 16 days is not much in the OSS world, please consider NOT asking for updates, while notifying 4 persons that have already been notified by your previous message... Keith is not available right now, and since he's the main maintainer on activerecord-postgis-adapter, I'll let him dig into that issue within next months. If you do find any update on this issue, or find a way to fix it, feel free to open a PR or discuss the new elements here. FYI, the known issue keith is referencing is rgeo/rgeo#213, this might be helpful. |
@BuonOmo thanks, no harm but as you know it's been more than a year since the issue has been reported! it looks no body have found any workaround or solutions for this yet! I'll check the references you provided thanks! I'll also try to fix it within the next two weeks and I will create a PR if I made it |
Hi @shqear93 due to the high point density of your polygon and the fact that you're using the spherical factory which is susceptible to floating-point issues it is most likely due to that. You have a few options:
|
@keithdoggett thanks it worked! |
I have a large Linestring (more 5600 pts), when I create my object, all work fine.
On update (without any change), I get an exception : !! #<RGeo::Error::InvalidGeometry: LinearRing failed ring test>
If I update my Linestring field with only 2 pts like : 'LINESTRING(2.2539200 43.6032020 ,
2.2538810 43.6032180), I always have the same problem.
I have this problem only with some objects in the same table.
rails 6.0.2.1
ruby 2.6.5
rgeo (2.1.1)
rgeo-activerecord (6.2.1)
test.txt
The text was updated successfully, but these errors were encountered: