<HTML><BODY><div class="cl-a81men5ufz"><div class="cl-nosyhfo193"><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:3zkp@MtgKW41A.b0aDwMgI"></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">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></BODY></HTML>