<div dir="ltr"><div>Hi Andrey,</div><div><br></div><div>I am aware that this is not ogr2ogr solution, but you can watch my lecture on this kind of problem and procedure to avoid this problem in QGIS - and then maybe you can apply the same procedure/logic using only ogr2ogr.</div><div><br></div><div>See this video, you can skip to around 45 minutes.</div><div><a href="https://www.youtube.com/watch?v=5M-Q0AinuiY&t=2702s">https://www.youtube.com/watch?v=5M-Q0AinuiY&t=2702s</a></div><div><br></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">uto, 14. lis 2025. u 22:02 Andrey VI via gdal-dev <<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>> napisao je:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div><div><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" target="_blank">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><blockquote style="border-left:1px solid rgb(8,87,166);margin:10px;padding:0px 0px 0px 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" target="_blank">jukka.rahkonen@maanmittauslaitos.fi</a>>:</span><br> <div><div id="m_8826303847537462843"><div><div><div id="m_8826303847537462843style_17604496941747178434_mr_css_attr"><div id="m_8826303847537462843style_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="http:///compose?To=gdal%2ddev%2dbounces@lists.osgeo.org" target="_blank">gdal-dev-bounces@lists.osgeo.org</a>> käyttäjän Andrey VI via gdal-dev <<a href="http:///compose?To=gdal%2ddev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a>> puolesta<br>Lähetetty: Tiistai 14. lokakuuta 2025 15.50<br>Vastaanottaja: <a href="http:///compose?To=gdal%2ddev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a> <<a href="http:///compose?To=gdal%2ddev@lists.osgeo.org" target="_blank">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" target="_blank">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><div><div>--<br>Andrey VI<br>Sent from <a href="https://trk.mail.ru/c/zzm979" target="_blank">Mail</a></div></div></div></div></div>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</blockquote></div><div><br clear="all"></div><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr">Srdačan pozdrav / Kind regards,<div>Vedran Stojnović.</div></div></div>