<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Vorformatiert Zchn";
        margin:0cm;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLVorformatiertZchn
        {mso-style-name:"HTML Vorformatiert Zchn";
        mso-style-priority:99;
        mso-style-link:"HTML Vorformatiert";
        font-family:Consolas;}
span.E-MailFormatvorlage20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Hello Even,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">these are the SQL INSERT statements i used:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">INSERT INTO "main"."other_transformation"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">("auth_name", "code", "name", "method_auth_name", "method_code", "method_name", "source_crs_auth_name", "source_crs_code", "target_crs_auth_name", "target_crs_code", "accuracy", "deprecated")<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">VALUES ('PROJ', 'P0001', 'ETRS89 to VVJ', 'PROJ', 'PROJString', '+proj=pipeline
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">+step +type=proj4 +to=+proj=tmerc +lat_0=0 +lon_0=25 +k=1 +x_0=25500000 +y_0=0 +ellps=GRS80 +units=m +no_defs<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">+from=+proj=longlat +ellps=WGS84 +units=m +no_defs
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">+step +proj=helmert +convention=coordinate_frame +x=-6685321.2964 +y=-25439452.96812 +rx=1.00001130081 +ry=-0.00120233218', 'EPSG', '4258', 'EPSG', '36122', 1.0, 0);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">INSERT INTO "main"."usage" ("auth_name", "code", "object_table_name", "object_auth_name", "object_code", "extent_auth_name", "extent_code", "scope_auth_name", "scope_code")
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">VALUES ('PROJ', 'U0002', 'other_transformation', 'PROJ', 'P0001', 'EPSG', '3333', 'EPSG', '1024');<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-bottom:8.0pt;line-height:105%"><span style="font-size:10.0pt;line-height:105%;font-family:"Arial",sans-serif;color:black">Mit freundlichen Grüßen / Best regards<br>
<br>
Leon Schupp<br>
</span><span style="font-size:8.0pt;line-height:105%;font-family:"Arial",sans-serif;color:black">Student – Development Engineer<br>
</span><span style="font-size:10.0pt;line-height:105%;font-family:"Arial",sans-serif;color:black"><br>
<br>
</span><span style="mso-fareast-language:EN-US"><o:p></o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b>Von:</b> Even Rouault <even.rouault@spatialys.com> <br>
<b>Gesendet:</b> Donnerstag, 9. September 2021 11:56<br>
<b>An:</b> Schupp, Leon <LSchupp@moba.de>; proj@lists.osgeo.org<br>
<b>Betreff:</b> Re: [PROJ] 2D Helmert transformation after the map projection and PROJ won't use added transformation from the database<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Leon, <o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US">First question:</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US">Is it possible to add a 2D Helmert transformation to the proj.db database. I tried adding it to the helmert_transformation_table, but proj.db didn’t let me choose
 a projected crs as source transformation.</span><o:p></o:p></p>
</div>
</blockquote>
<p class="MsoNormal">Yes as designed currently it is limited to source and target CRS being geographic CRS<br>
<br>
<o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US">I want to add a helmert transformation which uses ETRS89/GK25 as source crs and transforms it into the finnish VVJ crs.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US">My second question is:
</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US">I tried adding the helmert transformation as a proj string to the other_transformation table, but proj won’t use it. I also added an entry into the usage table
 for the transformation. </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US">When I add a normal helmert transformation or a grid transformation, proj has no problem using them after they are added, but not when I add a transformation
 in other_transformation.</span><o:p></o:p></p>
</div>
</blockquote>
<p>Show your SQL INSERT statements<o:p></o:p></p>
<p class="MsoNormal">Even <o:p></o:p></p>
<pre>-- <o:p></o:p></pre>
<pre><a href="http://www.spatialys.com">http://www.spatialys.com</a><o:p></o:p></pre>
<pre>My software is free, but my time generally not.<o:p></o:p></pre>
</div>
</body>
</html>