Created
March 24, 2015 13:31
-
-
Save sanderpick/3d2c33e9e99a061d1a7c to your computer and use it in GitHub Desktop.
ST_Length + ST_MakeLine: connect the dots and measure distance
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
SELECT | |
ST_Length(ST_MakeLine(the_geom_webmercator ORDER BY created_at ASC)) AS sum | |
FROM sf_muni | |
WHERE id = '2' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment