[gdal-dev] Ellipsoidal length of a line

Nicolas Cadieux nicolas.cadieux at archeotec.ca
Fri Jun 14 08:32:14 PDT 2019


Hi,

I am trying to get the length of a line in python. (Not just the straight length between the first and last nodes).  Using geopandas, (therefore the Shapely lib) I am getting the euclidien distance even though the dataframe holdings the line geometries has a CRS (WGS84, zone UTM 18 S).  Obviously, the WGS84 Ellipsoid is not taken into account.  

Can I do this with gdal/ogr? 

Thanks for the help
Nicolas


More information about the gdal-dev mailing list