<div dir="ltr"><div>oh, the file has something at the beging (BOM) that was not shown by "cat" or "vim"</div><div></div><div><br></div><div><span style="font-family:monospace">$ xxd file.txt <br>00000000: efbb bf36 3431 3437 392e 3630 3430 2039 ...641479.6040 9<br>00000010: 3733 3132 382e 3530 3134 2031 3434 2e36 73128.5014 144.6<br>00000020: 3333 380d 0a36 3431 3533 342e 3734 3536 338..641534.7456<br>00000030: 2039 3733 3139 392e 3837 3137 2031 3338 973199.8717 138<br>00000040: 2e39 3833 330d 0a36 3432 3039 342e 3933 .9833..642094.93<br>00000050: 3235 2039 3733 3934 352e 3934 3739 2031 25 973945.9479 1<br>00000060: 3638 2e31 3334 330d 0a 68.1343..</span></div><div><br></div><div><br></div><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><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 17 Aug 2022 at 18:21, Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</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>
<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>Le 17/08/2022 à 17:56, Javier Jimenez
Shaw a écrit :<br>
</div>
<blockquote type="cite">
<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">.___ ._ ..._ .. . ._.
.___ .. __ . _. . __.. ... .... ._ .__<br>
Entre dos pensamientos racionales <br>
hay infinitos pensamientos irracionales.<br>
<br>
</div>
</div>
</div>
</div>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
PROJ mailing list
<a href="mailto:PROJ@lists.osgeo.org" target="_blank">PROJ@lists.osgeo.org</a>
<a href="https://lists.osgeo.org/mailman/listinfo/proj" target="_blank">https://lists.osgeo.org/mailman/listinfo/proj</a>
</pre>
</blockquote>
<pre cols="72">--
<a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</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>