-
Notifications
You must be signed in to change notification settings - Fork 92
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
Avoid call to deprecated ST_Distance_Sphere #69
Conversation
Switch to using ST_DistanceSphere instead. This avoids frequent warnings in the postgresql server log.
Just noticed that this PR already exists ;-) |
@mkrogemann I can accept this PR over that one if you do the following:
The reason for keeping the old one is for anyone using a version of postgis that doesn't have the new function (for instance, doesn't look like travis ci's version of postgis has it). Since the other one throws a postgresql warning, I don't think we will have to make any warnings here. But maybe add a doc on |
Sounds good. I will look into it |
Looks like Postgis 2.2 has been a requirement from PostgreSQL 9.5 onwards and that 2.1. is no longer supported with PostgreSQL >= 9.5. |
This reverts commit a04aa96.
This avoids deprecation warnings for users of Postgis 2.2 and newer.
All tests are green now that I switched to postgresql 9.6 which also required switching to the 'trusty' build environment which is (I believe) becoming the next default environment in Travis CI. |
Looks good! Thanks! |
Switch to using ST_DistanceSphere instead. This avoids frequent warnings
in the postgresql server log.