[gdal-dev] Buffer in geodetic space

Javier Jimenez Shaw j1 at jimenezshaw.com
Fri Jun 20 03:06:36 PDT 2025


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20250620/d341575b/attachment.htm>


More information about the gdal-dev mailing list