[gdal-dev] Ellipsoidal length of a line
andrew.bell.ia at gmail.com
Sat Jun 15 03:51:00 PDT 2019
How is the line defined? If you have a function, there's calculus.
On Sat, Jun 15, 2019, 12:43 AM Nicolas Cadieux <nicolas.cadieux at archeotec.ca>
> Could work but I think this will be too slow. I wonder how QGIS does it? I
> guess they use code from Proj.4. If anyone has an other idea, shoot!
> Le 14 juin 2019 à 13:20, Patrick Young <patrick.mckendree.young at gmail.com>
> a écrit :
> Not exactly what you want, but you can do this with PostGIS by casting
> your geometry to the geography type:
> On Fri, Jun 14, 2019 at 10:26 AM Atle Frenvik Sveen <atle at frenviksveen.net>
>> Not sure if would want to use gdal for this task*, but take a look at
>> this blog post:
>> *or if it's doable, i guess not, since the scope of gdal is
>> reading/writing geospatial formats
>> Atle Frenvik Sveen
>> atle at frenviksveen.net
>> On Fri, Jun 14, 2019, at 17:32, Nicolas Cadieux wrote:
>> > 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
>> > _______________________________________________
>> > gdal-dev mailing list
>> > gdal-dev at lists.osgeo.org
>> > https://lists.osgeo.org/mailman/listinfo/gdal-dev
>> gdal-dev mailing list
>> gdal-dev at lists.osgeo.org
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gdal-dev