[gdal-dev] Spherical Mercator Projection mismatching major/minor axis
Andreas Roth
rothan at gmail.com
Thu Nov 5 07:47:31 PST 2020
Hi,
I call OSRImportFromProj4 with
"+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0
+k=1.0 +units=m +nadgrids=@null +towgs84=0,0,0,0,0,0,0 +wktext +no_defs"
and with the returned handle i get the major and minor axis (
OSRGetSemiMajor/OSRGetSemiMinor). I would expect the both axis to be equal,
but they aren't.
Instead i'm getting the following result:
semi_major_axis=6378137
semi_minor_axis=6356752.314
Build on Ubuntu 20.10 (groovy; amd64) with libgdal-dev,
version 3.1.3+dfsg-1ubuntu2) and libproj-dev:amd64 with version 7.1.0-1
The full example application code:
https://pastebin.com/xf8QpVhM
Regards,
Andreas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20201105/efcdc188/attachment.html>
More information about the gdal-dev
mailing list