<html><head></head><body><div class="ydpd401d828yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div></div>
        <div dir="ltr" data-setdir="false">Hi, Thx!, now is a lot more clear!, I have a shape with this CRS:</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><div>Coordinate Reference System:<br>  User input: WGS 84 / UTM zone 19S <br>  wkt:<br>PROJCRS["WGS 84 / UTM zone 19S",<br>    BASEGEOGCRS["WGS 84",<br>        DATUM["World Geodetic System 1984",<br>            ELLIPSOID["WGS 84",6378137,298.257223563,<br>                LENGTHUNIT["metre",1]]],<br>        PRIMEM["Greenwich",0,<br>            ANGLEUNIT["degree",0.0174532925199433]],<br>        ID["EPSG",4326]],<br>    CONVERSION["UTM zone 19S",<br>        METHOD["Transverse Mercator",<br>            ID["EPSG",9807]],<br>        PARAMETER["Latitude of natural origin",0,<br>            ANGLEUNIT["Degree",0.0174532925199433],<br>            ID["EPSG",8801]],<br>        PARAMETER["Longitude of natural origin",-69,<br>            ANGLEUNIT["Degree",0.0174532925199433],<br>            ID["EPSG",8802]],<br>        PARAMETER["Scale factor at natural origin",0.9996,<br>            SCALEUNIT["unity",1],<br>            ID["EPSG",8805]],<br>        PARAMETER["False easting",500000,<br>            LENGTHUNIT["metre",1],<br>            ID["EPSG",8806]],<br>        PARAMETER["False northing",10000000,<br>            LENGTHUNIT["metre",1],<br>            ID["EPSG",8807]]],<br>    CS[Cartesian,2],<br>        AXIS["(E)",east,<br>            ORDER[1],<br>            LENGTHUNIT["metre",1]],<br>        AXIS["(N)",north,<br>            ORDER[2],<br>            LENGTHUNIT["metre",1]],<br>    ID["EPSG",32719]]</div><div><br></div><div dir="ltr" data-setdir="false">This CRS is a tranformation from WGS84 to <span> <span> UTM zone 19S</span>?, If is a transfomation, I don't know, if the data of the file is already transformed, or, the data will be transformed to <span> UTM zone 19S.</span></span></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Because, in case it is already transform, to recover the original, I should rollback the transformation and set the WGS84 as the CRS to can use WKT2 in the right way. (skipping the WGS84 pivot)<br></div></div><div><br></div><div dir="ltr" data-setdir="false">Thx.<br></div>
        
        </div><div id="yahoo_quoted_4075207808" class="yahoo_quoted">
            <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                
                <div>
                    El martes, 11 de enero de 2022 12:15:14 a. m. GMT-3, Rahkonen Jukka (MML) <jukka.rahkonen@maanmittauslaitos.fi> escribió:
                </div>
                <div><br></div>
                <div><br></div>
                <div><div id="yiv1746375856"><style><!--
#yiv1746375856  
 _filtered {}
 _filtered {}
 _filtered {}
 _filtered {}
#yiv1746375856  
#yiv1746375856 p.yiv1746375856MsoNormal, #yiv1746375856 li.yiv1746375856MsoNormal, #yiv1746375856 div.yiv1746375856MsoNormal
        {margin:0cm;font-size:11.0pt;font-family:"Calibri", sans-serif;}
#yiv1746375856 code
        {font-family:"Courier New";}
#yiv1746375856 pre
        {margin:0cm;margin-bottom:.0001pt;font-size:10.0pt;font-family:"Courier New";}
#yiv1746375856 span.yiv1746375856HTML-esimuotoiltuChar
        {font-family:Consolas;}
#yiv1746375856 span.yiv1746375856Shkpostityyli21
        {font-family:"Calibri", sans-serif;color:windowtext;}
#yiv1746375856 .yiv1746375856MsoChpDefault
        {font-size:10.0pt;}
 _filtered {}
#yiv1746375856 div.yiv1746375856WordSection1
        {}
--></style><div>
<div class="yiv1746375856WordSection1">
<p class="yiv1746375856MsoNormal"><span style="">Hi,</span></p> 
<p class="yiv1746375856MsoNormal"><span style="">  </span></p> 
<p class="yiv1746375856MsoNormal"><span style="" lang="EN-US">The more or less same question seems to be asked some time ago in gis.stackexchange https://gis.stackexchange.com/questions/420378/can-we-construct-wkt2-from-proj4string-correctly.</span></p> 
<p class="yiv1746375856MsoNormal"><span style="" lang="EN-US">  </span></p> 
<p class="yiv1746375856MsoNormal"><span style="" lang="EN-US">-Jukka Rahkonen-</span></p> 
<p class="yiv1746375856MsoNormal"><span style="" lang="EN-US">  </span></p> 
<p class="yiv1746375856MsoNormal"><span style="" lang="EN-US">  </span></p> 
<div id="yiv1746375856yqt83119" class="yiv1746375856yqt8361761550"><div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm;">
<p class="yiv1746375856MsoNormal"><b>Lähettäjä:</b> gdal-dev <gdal-dev-bounces@lists.osgeo.org>
<b>Puolesta </b>Felipe Matas via gdal-dev<br clear="none">
<b>Lähetetty:</b> maanantai 10. tammikuuta 2022 22.07<br clear="none">
<b>Vastaanottaja:</b> gdal-dev@lists.osgeo.org<br clear="none">
<b>Aihe:</b> [gdal-dev] [Question] PROJ4String to WKT2 Transformations</p> 
</div>
</div>
<p class="yiv1746375856MsoNormal">  </p> 
<div>
<div>
<div>
<div>
<p class="yiv1746375856MsoNormal"><span style="font-size:12.0pt;font-family:sans-serif;">Hi hi, I was looking for someplace to ask about this, and I was in doubt is was here or in PROJ, but lets do a try.</span></p> 
</div>
<div>
<p class="yiv1746375856MsoNormal"><span style="font-size:12.0pt;font-family:sans-serif;">  </span></p> 
</div>
<div>
<p class="yiv1746375856MsoNormal"><span style="font-size:12.0pt;font-family:sans-serif;">Actually, probably I'm not the only one, I have some questions about how WKT2 and PROJ4Strings are transformed.</span></p> 
</div>
<div>
<p class="yiv1746375856MsoNormal"><span style="font-size:12.0pt;font-family:sans-serif;">  </span></p> 
</div>
<div>
<p class="yiv1746375856MsoNormal"><span style="font-size:12.0pt;font-family:sans-serif;">From what I read, a PROJ4String don't have enough info to construct a precise WKT2, so, actually how PROJ4String is deprecated my main question is how to construct the right
 WKT2, there is a lot o data stored in the old format, there is usually no more information, and even the software/hardware that get the data in some way save all of it with all the errors.</span></p> 
</div>
<div>
<p class="yiv1746375856MsoNormal"><span style="font-size:12.0pt;font-family:sans-serif;">  </span></p> 
</div>
<div>
<p class="yiv1746375856MsoNormal"><span style="font-size:12.0pt;font-family:sans-serif;">Actually, we can transform a old CRS to a WKT2:</span></p> 
</div>
<div>
<p class="yiv1746375856MsoNormal"><span style="font-size:12.0pt;font-family:sans-serif;">  </span></p> 
</div>
<div>
<pre><code>> st_crs("+type=crs +proj=utm +zone=19 +south +datum=WGS84 +units=m +no_defs +ellps=WGS84 +towgs84=0,0,0"</code></pre> 
<pre><code>+ )</code></pre> 
<pre><code>Coordinate Reference System:</code></pre> 
<pre><code>  User input: +type=crs +proj=utm +zone=19 +south +datum=WGS84 +units=m +no_defs +ellps=WGS84 +towgs84=0,0,0 </code></pre> 
<pre><code>  wkt:</code></pre> 
<pre><code>BOUNDCRS[</code></pre> 
<pre><code>    SOURCECRS[</code></pre> 
<pre><code>        PROJCRS["unknown",</code></pre> 
<pre><code>            BASEGEOGCRS["unknown",</code></pre> 
<pre><code>                DATUM["World Geodetic System 1984",</code></pre> 
<pre><code>                    ELLIPSOID["WGS 84",6378137,298.257223563,</code></pre> 
<pre><code>                        LENGTHUNIT["metre",1]],</code></pre> 
<pre><code>                    ID["EPSG",6326]],</code></pre> 
<pre><code>                PRIMEM["Greenwich",0,</code></pre> 
<pre><code>                    ANGLEUNIT["degree",0.0174532925199433],</code></pre> 
<pre><code>                    ID["EPSG",8901]]],</code></pre> 
<pre><code>            CONVERSION["UTM zone 19S",</code></pre> 
<pre><code>                METHOD["Transverse Mercator",</code></pre> 
<pre><code>                    ID["EPSG",9807]],</code></pre> 
<pre><code>                PARAMETER["Latitude of natural origin",0,</code></pre> 
<pre><code>                    ANGLEUNIT["degree",0.0174532925199433],</code></pre> 
<pre><code>                    ID["EPSG",8801]],</code></pre> 
<pre><code>                PARAMETER["Longitude of natural origin",-69,</code></pre> 
<pre><code>                    ANGLEUNIT["degree",0.0174532925199433],</code></pre> 
<pre><code>                    ID["EPSG",8802]],</code></pre> 
<pre><code>                PARAMETER["Scale factor at natural origin",0.9996,</code></pre> 
<pre><code>                    SCALEUNIT["unity",1],</code></pre> 
<pre><code>                    ID["EPSG",8805]],</code></pre> 
<pre><code>                PARAMETER["False easting",500000,</code></pre> 
<pre><code>                    LENGTHUNIT["metre",1],</code></pre> 
<pre><code>                    ID["EPSG",8806]],</code></pre> 
<pre><code>                PARAMETER["False northing",10000000,</code></pre> 
<pre><code>                    LENGTHUNIT["metre",1],</code></pre> 
<pre><code>                    ID["EPSG",8807]],</code></pre> 
<pre><code>                ID["EPSG",17019]],</code></pre> 
<pre><code>            CS[Cartesian,2],</code></pre> 
<pre><code>                AXIS["(E)",east,</code></pre> 
<pre><code>                    ORDER[1],</code></pre> 
<pre><code>                    LENGTHUNIT["metre",1,</code></pre> 
<pre><code>                        ID["EPSG",9001]]],</code></pre> 
<pre><code>                AXIS["(N)",north,</code></pre> 
<pre><code>                    ORDER[2],</code></pre> 
<pre><code>                    LENGTHUNIT["metre",1,</code></pre> 
<pre><code>                        ID["EPSG",9001]]]]],</code></pre> 
<pre><code>    TARGETCRS[</code></pre> 
<pre><code>        GEOGCRS["WGS 84",</code></pre> 
<pre><code>            DATUM["World Geodetic System 1984",</code></pre> 
<pre><code>                ELLIPSOID["WGS 84",6378137,298.257223563,</code></pre> 
<pre><code>                    LENGTHUNIT["metre",1]]],</code></pre> 
<pre><code>            PRIMEM["Greenwich",0,</code></pre> 
<pre><code>                ANGLEUNIT["degree",0.0174532925199433]],</code></pre> 
<pre><code>            CS[ellipsoidal,2],</code></pre> 
<pre><code>                AXIS["latitude",north,</code></pre> 
<pre><code>                    ORDER[1],</code></pre> 
<pre><code>                    ANGLEUNIT["degree",0.0174532925199433]],</code></pre> 
<pre><code>                AXIS["longitude",east,</code></pre> 
<pre><code>                    ORDER[2],</code></pre> 
<pre><code>                    ANGLEUNIT["degree",0.0174532925199433]],</code></pre> 
<pre><code>            ID["EPSG",4326]]],</code></pre> 
<pre><code>    ABRIDGEDTRANSFORMATION["Transformation from unknown to WGS84",</code></pre> 
<pre><code>        METHOD["Geocentric translations (geog2D domain)",</code></pre> 
<pre><code>            ID["EPSG",9603]],</code></pre> 
<pre><code>        PARAMETER["X-axis translation",0,</code></pre> 
<pre><code>            ID["EPSG",8605]],</code></pre> 
<pre><code>        PARAMETER["Y-axis translation",0,</code></pre> 
<pre><code>            ID["EPSG",8606]],</code></pre> 
<pre><code>        PARAMETER["Z-axis translation",0,</code></pre> 
<pre><code>            ID["EPSG",8607]]]]</code></pre> 
</div>
<div>
<p class="yiv1746375856MsoNormal"><span style="font-size:12.0pt;font-family:sans-serif;">  </span></p> 
</div>
<div>
<p class="yiv1746375856MsoNormal"><span style="font-size:12.0pt;font-family:sans-serif;">So, in some way, GDAL is able to cover this "breach" of information betwen PROJ4String and WKT2, but is not like the breach does not exist, it was just handled in some way,
 so, the lack of info, also means, there can be othe aproximations to that CRS.</span></p> 
</div>
<div>
<p class="yiv1746375856MsoNormal"><span style="font-size:12.0pt;font-family:sans-serif;">  </span></p> 
</div>
<div>
<p class="yiv1746375856MsoNormal"><span style="font-size:12.0pt;font-family:sans-serif;">Maybe I'm just confused, and mixing things the things I read, I'm just trying to figure it out, what and how would be the right transformation from proj4string to wkt2.</span></p> 
</div>
<div>
<p class="yiv1746375856MsoNormal"><span style="font-size:12.0pt;font-family:sans-serif;">  </span></p> 
</div>
<p class="yiv1746375856MsoNormal"><span style="font-size:12.0pt;font-family:sans-serif;">Thx.</span></p> 
</div>
<div>
<p class="yiv1746375856MsoNormal"><span style="font-size:12.0pt;font-family:sans-serif;">  </span></p> 
</div>
</div>
</div></div>
</div>
</div></div><div class="yqt8361761550" id="yqt67016">_______________________________________________<br clear="none">gdal-dev mailing list<br clear="none"><a shape="rect" ymailto="mailto:gdal-dev@lists.osgeo.org" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br clear="none"><a shape="rect" href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br clear="none"></div></div>
            </div>
        </div></body></html>