Hi,

This command prints also 6 error lines, but at least the result does not have 
empty areas:

ogr2ogr -t_srs epsg:4626 -wrapdateline -datelineoffset 180 foo3.shp polys.shp

I do not know if the result is correct or not, just that it is different.

-Jukka Rahkonen-


________________________________________
Lähettäjä: gdal-dev <[email protected]> käyttäjän Andrey VI via 
gdal-dev <[email protected]> puolesta
Lähetetty: Tiistai 14. lokakuuta 2025 15.50
Vastaanottaja: [email protected] <[email protected]>
Aihe: [gdal-dev] [ogr2ogr] Anti-meridian issue when reprojecting from a Polar 
Stereographic projection to a geographic CRS

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
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 As a result some polygons are broken and also some polygons appears 
with artifacts.[X]The data used and the result (58 MB): 
https://drive.google.com/file/d/176jtROjjeTlAQTITAJ75tBT1GwiUzSUm/view?usp=sharing.
 How to reproject from a projection naturally crossing the anti-meridian to a 
geographic CRS without any errors using ogr2ogr?--Andrey
_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to