<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=utf-8"><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;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{mso-style-priority:99;
mso-style-link:"Plain Text Char";
margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
color:#2F5496;
mso-fareast-language:EN-US;}
span.PlainTextChar
{mso-style-name:"Plain Text Char";
mso-style-priority:99;
mso-style-link:"Plain Text";
font-family:"Calibri",sans-serif;
color:#2F5496;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
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=en-NL link="#0563C1" vlink="#954F72" style='word-wrap:break-word'><div class=WordSection1><p class=MsoPlainText><span lang=EN-US>Hi Even,<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US><o:p> </o:p></span></p><p class=MsoPlainText><span lang=EN-US>You mentioned that in order to have </span>ID["EPSG",9624]]<span lang=EN-US> included into the WKT2 string, you</span> need to add it to the PropertyMap with<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><span lang=EN-US style='color:#C00000'> </span><span style='color:#C00000'>.set(metadata::Identifier::CODESPACE_KEY, metadata::Identifier::EPSG)<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US style='color:#C00000'> </span><span style='color:#C00000'>.set(metadata::Identifier::CODE_KEY, 9624)<o:p></o:p></span></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><span lang=EN-US>I appreciate this, but the question is *where* do this.<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US><o:p> </o:p></span></p><p class=MsoPlainText><span lang=EN-US>I have done so in the creation of the DerivedProjCRS object as follows:<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US><o:p> </o:p></span></p><p class=MsoPlainText><span lang=EN-US><o:p> </o:p></span></p><div style='mso-element:para-border-div;border:solid windowtext 1.0pt;padding:1.0pt 4.0pt 1.0pt 4.0pt'><p class=MsoNormal style='text-autospace:none;border:none;padding:0cm'><span style='font-size:9.5pt;font-family:Consolas;color:black'> </span><span style='font-size:9.5pt;font-family:Consolas;color:#2B91AF'>PropertyMap</span><span style='font-size:9.5pt;font-family:Consolas;color:black'> properties;<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none;border:none;padding:0cm'><span style='font-size:9.5pt;font-family:Consolas;color:black'> properties<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none;border:none;padding:0cm'><span style='font-size:9.5pt;font-family:Consolas;color:black'> .set(</span><span style='font-size:9.5pt;font-family:Consolas;color:#2B91AF'>IdentifiedObject</span><span style='font-size:9.5pt;font-family:Consolas;color:black'>::NAME_KEY, </span><span style='font-size:9.5pt;font-family:Consolas;color:#A31515'>"Abtswoudsebrug"</span><span style='font-size:9.5pt;font-family:Consolas;color:black'>)<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none;border:none;padding:0cm'><span style='font-size:9.5pt;font-family:Consolas;color:black'> .set(</span><span style='font-size:9.5pt;font-family:Consolas;color:#2B91AF'>Identifier</span><span style='font-size:9.5pt;font-family:Consolas;color:black'>::CODESPACE_KEY, </span><span style='font-size:9.5pt;font-family:Consolas;color:#2B91AF'>Identifier</span><span style='font-size:9.5pt;font-family:Consolas;color:black'>::EPSG)<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none;border:none;padding:0cm'><span style='font-size:9.5pt;font-family:Consolas;color:black'> .set(</span><span style='font-size:9.5pt;font-family:Consolas;color:#2B91AF'>Identifier</span><span style='font-size:9.5pt;font-family:Consolas;color:black'>::CODE_KEY, 9624);<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none;border:none;padding:0cm'><span style='font-size:9.5pt;font-family:Consolas;color:black'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none;border:none;padding:0cm'><span style='font-size:9.5pt;font-family:Consolas;color:black'> </span><span style='font-size:9.5pt;font-family:Consolas;color:blue'>return</span><span style='font-size:9.5pt;font-family:Consolas;color:black'> </span><span style='font-size:9.5pt;font-family:Consolas;color:#2B91AF'>DerivedProjectedCRS</span><span style='font-size:9.5pt;font-family:Consolas;color:black'>::create(<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none;border:none;padding:0cm'><span style='font-size:9.5pt;font-family:Consolas;color:black'> properties,<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none;border:none;padding:0cm'><span style='font-size:9.5pt;font-family:Consolas;color:black'> createProjected_v2(), derivingConversion,<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none;border:none;padding:0cm'><span style='font-size:9.5pt;font-family:Consolas;color:black'> </span><span style='font-size:9.5pt;font-family:Consolas;color:#2B91AF'>CartesianCS</span><span style='font-size:9.5pt;font-family:Consolas;color:black'>::createEastingNorthing(</span><span style='font-size:9.5pt;font-family:Consolas;color:#2B91AF'>UnitOfMeasure</span><span style='font-size:9.5pt;font-family:Consolas;color:black'>::METRE));<o:p></o:p></span></p></div><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><span lang=EN-US>The original code was :<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:black'><o:p> </o:p></span></p><div style='mso-element:para-border-div;border:solid windowtext 1.0pt;padding:1.0pt 4.0pt 1.0pt 4.0pt'><p class=MsoNormal style='text-autospace:none;border:none;padding:0cm'><span style='font-size:9.5pt;font-family:Consolas;color:black'> </span><span style='font-size:9.5pt;font-family:Consolas;color:blue'>return</span><span style='font-size:9.5pt;font-family:Consolas;color:black'> </span><span style='font-size:9.5pt;font-family:Consolas;color:#2B91AF'>DerivedProjectedCRS</span><span style='font-size:9.5pt;font-family:Consolas;color:black'>::create(<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none;border:none;padding:0cm'><span style='font-size:9.5pt;font-family:Consolas;color:black'> </span><span style='font-size:9.5pt;font-family:Consolas;color:#2B91AF'>PropertyMap</span><span style='font-size:9.5pt;font-family:Consolas;color:black'>().set(</span><span style='font-size:9.5pt;font-family:Consolas;color:#2B91AF'>IdentifiedObject</span><span style='font-size:9.5pt;font-family:Consolas;color:black'>::NAME_KEY, </span><span style='font-size:9.5pt;font-family:Consolas;color:#A31515'>"Abtswoudsebrug"</span><span style='font-size:9.5pt;font-family:Consolas;color:black'>),<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none;border:none;padding:0cm'><span style='font-size:9.5pt;font-family:Consolas;color:black'> createProjected_v2(), derivingConversion,<o:p></o:p></span></p><p class=MsoPlainText style='border:none;padding:0cm'><span style='font-size:9.5pt;font-family:Consolas;color:black'> </span><span style='font-size:9.5pt;font-family:Consolas;color:#2B91AF'>CartesianCS</span><span style='font-size:9.5pt;font-family:Consolas;color:black'>::createEastingNorthing(</span><span style='font-size:9.5pt;font-family:Consolas;color:#2B91AF'>UnitOfMeasure</span><span style='font-size:9.5pt;font-family:Consolas;color:black'>::METRE));</span><span lang=EN-US><o:p></o:p></span></p></div><p class=MsoPlainText><span lang=EN-US><o:p> </o:p></span></p><p class=MsoPlainText><span lang=EN-US style='color:black'>But the net result is that ID[\"EPSG\",9624]] gets <b>appended</b> to the very <b>end</b> of the WKT2-string, which is incorrect. <o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US style='color:black'>So, I struggle with this topic.<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US style='color:black'><o:p> </o:p></span></p><p class=MsoPlainText><span lang=EN-US style='color:black'>It’s a pity that an example WKT2 string is given in test_crs <a href="https://github.com/OSGeo/PROJ/blob/a390c57ab5998154535d7ffbc7de04aad2a73910/test/unit/test_crs.cpp#L5340">here</a>, but the string hasn’t been derived from code…<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US style='color:black'><o:p> </o:p></span></p><p class=MsoPlainText><span lang=EN-US style='color:black'>Obviously, I have similar problems with the Affine transformation parameters: 8623, 8624, 8625, 8639, 8640 and 8641.<o:p></o:p></span></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><span lang=EN-US style='color:black'>Kind regards,<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US style='color:black'><o:p> </o:p></span></p><p class=MsoPlainText><span lang=EN-US style='color:black'>Bart<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US style='color:black'><o:p> </o:p></span></p></div></body></html>