<HTML><BODY><div class="cl-ryo0c4lz28"><div>Hi Even,<br> </div><div>thanks for the fix.</div><div>With ogr2ogr re-projection now works as expected, but when using gdal vector pipeline (reproject -d EPSG:4326) it<span lang="en"><span><span> works without any changes</span></span></span>. Is this correct?</div><div> </div><div class="mail-quote-collapse"><blockquote style="border-left:1px solid #0857A6;margin:10px;padding:0 0 0 10px"><span>Sunday, October 19, 2025 1:11 AM +03:00 from Even Rouault <<a href="https://e.mail.ru/compose/?mailto=mailto%3Aeven.rouault%40spatialys.com">even.rouault@spatialys.com</a>>:</span><br> <div><div id=""><div class="cl-om130d1ty5"><div class="js-helper_mr_css_attr js-readmsg-msg_mr_css_attr"><div id="style_17608254660683666231_mr_css_attr"><div id="style_17608254660683666231_BODY_mr_css_attr"><p>Hi,</p><p>this issue will be fixed per <a href="https://github.com/OSGeo/gdal/pull/13243" class="moz-txt-link-freetext_mr_css_attr">https://github.com/OSGeo/gdal/pull/13243</a></p><p>Even</p><div class="moz-cite-prefix_mr_css_attr">Le 14/10/2025 à 14:50, Andrey VI via gdal-dev a écrit :</div><blockquote type="cite"><div class="cl-a81men5ufz_mr_css_attr"><div class="cl-nosyhfo193_mr_css_attr"><div class="js-helper_mr_css_attr js-readmsg-msg_mr_css_attr"><div id="style_17603886261714766290_mr_css_attr"><div id="style_17603886261714766290_BODY_mr_css_attr"><div>Hello.</div><div> </div><div><span lang="en"><span><span>I can't reproject data from a </span></span></span>Polar Stereographic projection (EPSG:3996)<span lang="en"><span><span> to a geographic projection (EPSG:4326) correctly using ogr2ogr. Command:</span></span></span></div><div><div><div><div><div>ogr2ogr -t_srs EPSG:4326 -wrapdateline polys_4326.shp polys.shp</div><div><div><div><div><pre style="background-color:#ebecef;border-radius:4px;display:inline-block;font-family:"Andale mono","Lucida Console",Monaco,monospace;font-size:15px;font-style:normal;font-weight:normal;line-height:22px;margin-bottom:0;margin-left:0;margin-right:0;margin-top:0;min-height:22px;min-width:12px;padding:12px"><span style="font-size:13px;line-height:20px">ERROR 1: IllegalArgumentException: Points of LinearRing do not form a closed linestring
ERROR 1: IllegalArgumentException: Points of LinearRing do not form a closed linestring
ERROR 1: IllegalArgumentException: Points of LinearRing do not form a closed linestring
ERROR 1: IllegalArgumentException: Points of LinearRing do not form a closed linestring
ERROR 1: IllegalArgumentException: Points of LinearRing do not form a closed linestring
ERROR 1: IllegalArgumentException: Points of LinearRing do not form a closed linestring</span></pre><div> </div></div>As a result some polygons are broken and also some polygons appears with artifacts.</div><div><img style="width:922px" src="cid:part1.ZqDN2QEO.0JECxh0c@spatialys.com"></div></div></div></div></div></div></div><div><span lang="en"><span><span>The data used and the result (58 MB): </span></span></span><a href="https://drive.google.com/file/d/176jtROjjeTlAQTITAJ75tBT1GwiUzSUm/view?usp=sharing" class="moz-txt-link-freetext_mr_css_attr">https://drive.google.com/file/d/176jtROjjeTlAQTITAJ75tBT1GwiUzSUm/view?usp=sharing</a><span lang="en"><span><span>.</span></span></span></div><div> </div><div><span lang="en"><span><span>How to reproject from a </span></span></span>projection naturally crossing the anti-meridian to a geographic CRS<span lang="en"><span><span> without any errors using ogr2ogr?</span></span></span></div><div>--<br>Andrey</div></div></div></div></div></div> <pre class="moz-quote-pre_mr_css_attr">_______________________________________________
gdal-dev mailing list
<a href="https://e.mail.ru/compose/?mailto=mailto%3Agdal-dev%40lists.osgeo.org" class="moz-txt-link-abbreviated_mr_css_attr">gdal-dev@lists.osgeo.org</a>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" class="moz-txt-link-freetext_mr_css_attr">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre></blockquote><pre class="moz-signature_mr_css_attr">-- 
<a href="http://www.spatialys.com" class="moz-txt-link-freetext_mr_css_attr">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre></div></div></div></div></div></div></blockquote></div><br><div>--<br>Andrey</div></div></BODY></HTML>