[gdal-dev] A 2D translation of a polygon

Roberto Marzocchi roberto.marzocchi at gmail.com
Mon Oct 10 07:36:13 PDT 2016


Dear all,

I am searching a C function which do a 2D translation (or shift) of a
geometry. Apparently it is very simple question, but I do not found any
function to do this simple operation.

The only way is to export all the vertices and translate them?

Perhaps OGR_G_Transform (OGRGeometryH, OGRCoordinateTransformationH) can be
the correct function, but I do not understand OGRCoordinateTransformationH
I need to do only a shift of my OGRGeometryH.

Thanks in advanced for your help.

All the best,
R
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20161010/30be0ebd/attachment.html>


More information about the gdal-dev mailing list