This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- PostGIS functions which will create an pollygon representing an ellipse using the "Pins and String" method | |
-- | |
-- https://en.wikipedia.org/wiki/Ellipse#Pins-and-string_method | |
-- | |
-- Usage: ST_Ellipse(LINESTRING, DISTANCE, NUMBER OF NODES); | |
-- Usage: ST_Ellipse(LINESTRING, DISTANCE); -- defaults to 8 nodes | |
-- | |
-- Args: | |
-- LINESTRING -- A two point linestring. Use ST_MakeLine(p1,p2) if you have two points |