[gdal-dev] [ogr2ogr] Anti-meridian issue when reprojecting from a Polar Stereographic projection to a geographic CRS
Andrey VI
andrey_vi at list.ru
Thu Oct 23 02:47:04 PDT 2025
Hi Even,
thanks for the fix.
With ogr2ogr re-projection now works as expected, but when using gdal vector pipeline (reproject -d EPSG:4326) it works without any changes . Is this correct?
>Sunday, October 19, 2025 1:11 AM +03:00 from Even Rouault < even.rouault at spatialys.com >:
>
>Hi,
>this issue will be fixed per https://github.com/OSGeo/gdal/pull/13243
>Even
>Le 14/10/2025 à 14:50, Andrey VI via gdal-dev a écrit :
>>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.shp
>>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
>> As a result some polygons are broken and also some polygons appears with artifacts.
>>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
>>gdal-dev at lists.osgeo.org
>>https://lists.osgeo.org/mailman/listinfo/gdal-dev
>>
>--
>http://www.spatialys.com
>My software is free, but my time generally not.
--
Andrey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20251023/270d3a24/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ???????????.png
Type: image/png
Size: 59273 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20251023/270d3a24/attachment-0001.png>
More information about the gdal-dev
mailing list