[gdal-dev] +lon_wrap difference between cs2cs and OGRCoordinateTransformation

Heiskanen Mika (FMI) Mika.Heiskanen at fmi.fi
Sun Apr 19 03:10:24 PDT 2020


Hi again,


By studying the source code I found out the following modification works:


  OGRCoordinateTransformationOptions opts;
  opts.SetTargetCenterLong(180);
  auto* trans = OGRCreateCoordinateTransformation(&source, &target, opts);


However, the SetTargetCenterLong API is clearly unsupported/undocumented, and is not quite the

same thing anyway as being able to specify the central longitude in the projection string. Git blame

shows the hidden API has been created to solve what seems to be a completely different issue.


Regards,


Mika Heiskanen

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20200419/022ec84d/attachment.html>


More information about the gdal-dev mailing list