I was quite unsatisfied with Calculating Length of Linestrings in WGS84 in Miles. It kept me wondering if there is a more convenient, Pythonic way to calculate the length of a WKT linestring according to a given SRID.
I have in mind something like:
srid="WGS84" line="LINESTRING(3.0 4.0, 3.1 4.1)" print length(line, srid)
I'm looking for an accurate answer, not