<HTML><BODY><div class="cl-q0kbnsx2ki"><div>Unfortunately, the result is still incorrect.<br>The empty areas are still here around 88-89°N and some polygons are still broken (for example at -67°W, 76°N):</div><div><a href="https://i.ibb.co/CpQGWdpk/Example.png">Example</a>.</div><div>These polygons turned out to be hidden under others, although in the original data all polygons are adjacent but not overlapping. Not sure if this is a result of reported errors or a separate issue.</div> <div class="mail-quote-collapse"><blockquote style="border-left:1px solid #0857A6;margin:10px;padding:0 0 0 10px"><span>Tuesday, October 14, 2025 4:48 PM +03:00 from Rahkonen Jukka <<a href="https://e.mail.ru/compose/?mailto=mailto%3Ajukka.rahkonen%40maanmittauslaitos.fi">jukka.rahkonen@maanmittauslaitos.fi</a>>:</span><br> <div><div id=""><div class="cl-pk3v75rddo"><div class="js-helper_mr_css_attr js-readmsg-msg_mr_css_attr"><div id="style_17604496941747178434_mr_css_attr"><div id="style_17604496941747178434_BODY_mr_css_attr">Hi,<br><br>This command prints also 6 error lines, but at least the result does not have empty areas:<br><br>ogr2ogr -t_srs epsg:4626 -wrapdateline -datelineoffset 180 foo3.shp polys.shp<br><br>I do not know if the result is correct or not, just that it is different.<br><br>-Jukka Rahkonen-<br><br><br>________________________________________<br>Lähettäjä: gdal-dev <<a href="/compose?To=gdal%2ddev%2dbounces@lists.osgeo.org">gdal-dev-bounces@lists.osgeo.org</a>> käyttäjän Andrey VI via gdal-dev <<a href="/compose?To=gdal%2ddev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>> puolesta<br>Lähetetty: Tiistai 14. lokakuuta 2025 15.50<br>Vastaanottaja: <a href="/compose?To=gdal%2ddev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a> <<a href="/compose?To=gdal%2ddev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>><br>Aihe: [gdal-dev] [ogr2ogr] Anti-meridian issue when reprojecting from a Polar Stereographic projection to a geographic CRS<br><br>Hello. I can't reproject data from a Polar Stereographic projection (EPSG:3996) to a geographic projection (EPSG:4326) correctly using ogr2ogr. Command:ogr2ogr -t_srs EPSG:4326 -wrapdateline polys_4326.shp polys.shpERROR 1: IllegalArgumentException: Points of LinearRing do not form a closed linestring<br>ERROR 1: IllegalArgumentException: Points of LinearRing do not form a closed linestring<br>ERROR 1: IllegalArgumentException: Points of LinearRing do not form a closed linestring<br>ERROR 1: IllegalArgumentException: Points of LinearRing do not form a closed linestring<br>ERROR 1: IllegalArgumentException: Points of LinearRing do not form a closed linestring<br>ERROR 1: IllegalArgumentException: Points of LinearRing do not form a closed linestring As a result some polygons are broken and also some polygons appears with artifacts.[X]The data used and the result (58 MB): <a href="https://drive.google.com/file/d/176jtROjjeTlAQTITAJ75tBT1GwiUzSUm/view?usp=sharing">https://drive.google.com/file/d/176jtROjjeTlAQTITAJ75tBT1GwiUzSUm/view?usp=sharing</a>. How to reproject from a projection naturally crossing the anti-meridian to a geographic CRS without any errors using ogr2ogr?--Andrey</div></div></div></div></div></div></blockquote></div><br><div data-signature-widget="container"><div data-signature-widget="content"><div>--<br>Andrey VI<br>Sent from <a href="https://trk.mail.ru/c/zzm979">Mail</a></div></div></div></div></BODY></HTML>