Hi,

See this example on how I do that in Julia. At the bottom it’s GDAL functions 
that are being used.

https://www.generic-mapping-tools.org/GMTjl_doc/examples/misc/buffer/#example_2628794262856115982

Joaquim

From: gdal-dev <gdal-dev-boun...@lists.osgeo.org> On Behalf Of Schumacher, Mia 
via gdal-dev
Sent: Friday, June 20, 2025 11:31 AM
To: gdal-dev@lists.osgeo.org
Subject: Re: [gdal-dev] Buffer in geodetic space


Hi Javier,

there is a QGIS plugin called 'Beeline' that measures great circle distances: 
https://plugins.qgis.org/plugins/Beeline/

Hope that helps?

Cheers,
Mia
On 20.06.25 12:06, Javier Jimenez Shaw via gdal-dev wrote:
Hi

Yesterday I read an article in a newspaper with an image showing distances from 
a country that was not considering that the Earth is spheric. It is not the 
first time; it will not be the last one. As we all (should) know, measuring 
large distances (thousands of kilometers) in projected coordinates is wrong.

Is there any way to do it properly in GDAL or QGIS? What I mean is that the 
distance (in meters) for a buffer (or parallel line) is measured along greatest 
circles perpendicular to the source geometry.

If not, should we implement it somewhere? (GDAL, QGIS, somewhere else)
I guess that we need PROJ for that algorithm to compute the distance along a 
great circle.

Thanks
Javier

PS trying in QGIS, I see it uses ST_Buffer from an sqlite query. But it is not 
what I am talking about. That is the "wrong" solution for large distances.




_______________________________________________

gdal-dev mailing list

gdal-dev@lists.osgeo.org<mailto:gdal-dev@lists.osgeo.org>

https://lists.osgeo.org/mailman/listinfo/gdal-dev
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to