<div dir="ltr">
<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif"><span>Javier,<span></span></span></p>
<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif"><span><span> </span></span></p>
<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif"><span lang="EN-US">The cause of the +’s dates
back to ancient times. When proj (the command line application) was originally created
everything in argv would have been treated as a parameter for the command. To distinguish
between regular parameters such as -f or -l and projection parameters such as +proj,
+a or +ellps the plusses were used. Internally the +’s would have been stripped
if I remember correctly. So that’s the explanation for the +-syntax. Today we
would just wrap the proj-string in quotes, as you suggest, but I assume that wasn’t
an option back in the day.<span></span></span></p>
<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif"><span lang="EN-US"><span> </span></span></p>
<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif"><span lang="EN-US">At some point init-files
were introduced and here it wasn’t necessary to include the plusses because it
was obvious that projection parameters were given, although the +’s were/are
allowed in init-files. I assume it just made sense to not use the +-syntax in
this context at the time.<span></span></span></p>
<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif"><span lang="EN-US"><span> </span></span></p>
<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif"><span lang="EN-US">Like you, I prefer the +-syntax
as it makes it very obvious that we're are dealing with proj-strings but I know some
people feel differently about that. One thing that is definitely clear is that mixing
the two different styles of notation confuses people. For this reason I have always
used the +-syntax in all documentation I have written. I encourage everyone
else to do the same.<span></span></span></p>
<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif"><span lang="EN-US"><span> </span></span></p>/<span lang="EN-US">Kristian<span></span></span>
</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 8 Feb 2024 at 10:44, Javier Jimenez Shaw via PROJ <<a href="mailto:proj@lists.osgeo.org">proj@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi</div><div><br></div><div>I wanted to know if I can combine a pipeline where some entries do have a "+" prefix and other doesn't (yes, it is ugly, I know it)<br></div><div>I found the method "pj_shrink" that, among other things, removes "+" preceded by a space. So I deduce that the answer was "yes".<br></div><div><br></div><div>That rises the question (actually the question was there before, but today I found pj_shrink): why the "+" before every entry? Is it just to make it clearer and easier in the command line, not needing quotes for the entire expression? Is there anything else I do not see?<br></div><div><br></div><div>I prefer (visually) the expression with "+"s. Somehow I find it nicer ;) But I have seen that old expressions don't have it, and I am curious to know the reason to change it.<br></div><div><br></div><div>Thanks<br></div><div><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div></div><div>.___ ._ ..._ .. . ._. .___ .. __ . _. . __.. ... .... ._ .__</div></div></div></div></div></div>
_______________________________________________<br>
PROJ mailing list<br>
<a href="mailto:PROJ@lists.osgeo.org" target="_blank">PROJ@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/proj" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/proj</a><br>
</blockquote></div>