<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Javier,</p>
<p>I don't reproduce your issue, at least not exactly. I suspect
this might depend on the actual binary content of the file. Could
you attach it ?</p>
<p>If I include an empty line at the beginning of the file, I get
the following as output (the empty line is interpreted as 0 0 0. I
guess we should just ignore it instead):</p>
<p>38.82056164 -76.22733569 0.00000000<br>
41.50355887 -73.95470151 144.63380000<br>
41.50375380 -73.95449855 138.98330000<br>
41.50579170 -73.95243612 168.13430000</p>
<p>Even<br>
</p>
<div class="moz-cite-prefix">Le 17/08/2022 à 17:56, Javier Jimenez
Shaw a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CADRrdKuW2yhSC-hySJN=NBz+RNrUK9LQjNT6Pi+W5Bnhh4E5cw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div>Hi</div>
<div><br>
</div>
<div>There is some strange behavior in "cs2cs"</div>
<div><br>
</div>
<div>I have a file.txt with this content</div>
<div><span style="font-family:monospace"><br>
</span></div>
<div><span style="font-family:monospace">$ cat file.txt<br>
</span></div>
<div><span style="font-family:monospace">641479.6040 973128.5014
144.6338<br>
641534.7456 973199.8717 138.9833<br>
642094.9325 973945.9479 168.1343</span><br>
</div>
<div><br>
</div>
<div>and running this command produces this strange result</div>
<div><br>
</div>
<div><span style="font-family:monospace">$ cs2cs EPSG:6537
EPSG:6318 -d 8 file.txt</span></div>
<div><span style="font-family:monospace">38.82056164
-76.22733569 0.00000000641479.6040 973128.5014 144.6338<br>
41.50375380 -73.95449855 138.98330000<br>
41.50579170 -73.95243612 168.13430000</span></div>
<div><br>
</div>
<div>(the proper coordinates are the last 2 lines)<br>
</div>
<div><br>
</div>
<div>Am I using cs2cs in a wrong way?</div>
<div><br>
</div>
<div>Thanks<br>
</div>
<div>
<div>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">.___ ._ ..._ .. . ._.
.___ .. __ . _. . __.. ... .... ._ .__<br>
Entre dos pensamientos racionales <br>
hay infinitos pensamientos irracionales.<br>
<br>
</div>
</div>
</div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
PROJ mailing list
<a class="moz-txt-link-abbreviated" href="mailto:PROJ@lists.osgeo.org">PROJ@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/proj">https://lists.osgeo.org/mailman/listinfo/proj</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</body>
</html>