Skip to content
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

precision issue with very small spoly #13

Open
pdowler opened this issue Nov 14, 2019 · 0 comments
Open

precision issue with very small spoly #13

pdowler opened this issue Nov 14, 2019 · 0 comments

Comments

@pdowler
Copy link
Contributor

pdowler commented Nov 14, 2019

I am trying to insert very small polygons. I can insert a polygon with micro-radians (1e-6) coordinate values:

select '{(0.0,-0.000001),(6.283184,0.0),(0.0,0.000001),(0.000001,0.0)}'::spoly;
                         spoly                         
-------------------------------------------------------
 {(0 , -1e-06),(6.283184 , 0),(0 , 1e-06),(1e-06 , 0)}

When I try nano-radians (1e-9) the parser seems to consider some points as equal:

select '{(0.0,-0.000000001),(6.283185306,0.0),(0.0,0.000000001),(0.000000001,0.0)}'::spoly;
ERROR:  spherepoly_from_array: more than two points needed

Are the parser/internals using single-precision/float instead of double?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant