<div dir="ltr">Hello,<div><br></div><div>I've been having some weird issues with GDAL and Alpine linux recently, and hope ya'll can help me resolve it.</div><div><br></div><div>The example below illustrates the issue in a reproducible manner - basically, a simple call to Transform results in a wierd error coming back from SWIG/OGR.<br><br>As a side (but perhaps unrelated note) I also find some weird issues with OGR (python) reading shapefiles - it sometimes gets the wrong projection info (even though OGRinfo returns the correct data):</div><div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><br></div><div><font face="monospace">$ docker pull alpine:3.14</font></div><div><font face="monospace">$ docker run -it alpine:3.14 ash</font></div><div><font face="monospace">/ # apk update; apk add py3-gdal python3</font></div><div><font face="monospace">/ # <b>python3 -c "from osgeo import ogr, osr; epsg4326=osr.SpatialReference(); epsg3857=osr.SpatialReference(); epsg4326.ImportFromEPSG(4326); eps<br>g3857.ImportFromEPSG(3857); c=ogr.CreateGeometryFromWkt('POLYGON((-161.9696 10.6918,-161.9696 60.6943,145.719 60.6943,145.719 10.6918,-161.9696 <br>10.6918))'); c.Transform(epsg4326,epsg3857)"</b></font></div><div><font face="monospace"><b>g3857.ImportFromEPSG(3857); c=ogr.CreateGeometryFromWkt('POLYGON((-161.9696 10.6918,-161.9696 60.6943,145.719 60.6943,145.719 10.6918,-161.9696 </b></font></div><div><font face="monospace"><b>10.6918))'); c.Transform(epsg4326,epsg3857)"</b></font></div><div><font face="monospace">Traceback (most recent call last):</font></div><div><font face="monospace">  File "<string>", line 1, in <module></font></div><div><font face="monospace">  File "/usr/lib/python3.9/site-packages/osgeo/ogr.py", line 7796, in Transform</font></div><div><font face="monospace">    return _ogr.Geometry_Transform(self, *args)</font></div><div><font face="monospace">NotImplementedError: Wrong number or type of arguments for overloaded function 'Geometry_Transform'.</font></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">  Possible C/C++ prototypes are:</font></div><div><font face="monospace">    OGRGeometryShadow::Transform(OSRCoordinateTransformationShadow *)</font></div></blockquote></div><div><font face="monospace"><br></font></div><div><font face="monospace"><br></font></div><div><font face="arial, sans-serif">Thanks!</font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">Chander<br></font><font face="monospace">    OGRGeometryShadow::Transform(OGRGeomTransformerShadow *)</font><br><br><font face="monospace">/ # </font><br></div></div>