[gdal-dev] Replacement for +init when using +lon_wrap

Heiskanen Mika (FMI) Mika.Heiskanen at fmi.fi
Wed Apr 22 09:45:48 PDT 2020


Hello,


GDAL now warns that the +init syntax is deprecated. The documentation explains that for example

instead of +init=epsg:4326 one should just use epsg:4326. However, it does not seem to explain what

do to if one wants to modify the crs as in the following example:


> echo "25w 60n" | /usr/proj70/bin/cs2cs -f "%.8f" +from +init=epsg:4326 +to +init=epsg:4326 +lon_wrap=180
335.00000000 60.00000000 0.00000000
> echo "60n 25w" | /usr/proj70/bin/cs2cs -f "%.8f" +from epsg:4326 +to +init=epsg:4326 +lon_wrap=180
335.00000000 60.00000000 0.00000000
> echo "60n 25w" | /usr/proj70/bin/cs2cs -f "%.8f" +from epsg:4326 +to epsg:4326 +lon_wrap=180
proj_create: crs not found

It seems like one would have to replace epsg:4326 on the right hand side with the respective PROJ-string,
which is quite inconvenient. Is this the only solution once the +init syntax has been removed?
?
Regards,

Mika Heiskanen



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20200422/53223d0a/attachment.html>


More information about the gdal-dev mailing list