Adding function to produce a great circle between two points.

This commit is contained in:
Stuart Lynn
2015-10-14 11:36:48 -04:00
parent 913bfd72f8
commit eb475fe55f
5 changed files with 49 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
Based on Paul Ramsey's [blog post](http://blog.cartodb.com/jets-and-datelines/).
#### Using the function
Creates a great circle line.
```sql
SELECT CDB_GreatCircle(start_point, end_point) FROM table_name
-- Results a line reprsenting the great circle between the two points
```
#### Arguments
CDB_GreatCircle(start_point, end_point)
* **start_point** ST_Point indicating the start of the line.
* **end_point** ST_point indicating the end of the line.