[PROJ] strange output in cs2cs
Javier Jimenez Shaw
j1 at jimenezshaw.com
Wed Aug 17 09:31:04 PDT 2022
oh, the file has something at the beging (BOM) that was not shown by "cat"
or "vim"
$ xxd file.txt
00000000: efbb bf36 3431 3437 392e 3630 3430 2039 ...641479.6040 9
00000010: 3733 3132 382e 3530 3134 2031 3434 2e36 73128.5014 144.6
00000020: 3333 380d 0a36 3431 3533 342e 3734 3536 338..641534.7456
00000030: 2039 3733 3139 392e 3837 3137 2031 3338 973199.8717 138
00000040: 2e39 3833 330d 0a36 3432 3039 342e 3933 .9833..642094.93
00000050: 3235 2039 3733 3934 352e 3934 3739 2031 25 973945.9479 1
00000060: 3638 2e31 3334 330d 0a 68.1343..
.___ ._ ..._ .. . ._. .___ .. __ . _. . __.. ... .... ._ .__
Entre dos pensamientos racionales
hay infinitos pensamientos irracionales.
On Wed, 17 Aug 2022 at 18:21, Even Rouault <even.rouault at spatialys.com>
wrote:
> Javier,
>
> 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 ?
>
> 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):
>
> 38.82056164 -76.22733569 0.00000000
> 41.50355887 -73.95470151 144.63380000
> 41.50375380 -73.95449855 138.98330000
> 41.50579170 -73.95243612 168.13430000
>
> Even
> Le 17/08/2022 à 17:56, Javier Jimenez Shaw a écrit :
>
> Hi
>
> There is some strange behavior in "cs2cs"
>
> I have a file.txt with this content
>
> $ cat file.txt
> 641479.6040 973128.5014 144.6338
> 641534.7456 973199.8717 138.9833
> 642094.9325 973945.9479 168.1343
>
> and running this command produces this strange result
>
> $ cs2cs EPSG:6537 EPSG:6318 -d 8 file.txt
> 38.82056164 -76.22733569 0.00000000641479.6040 973128.5014 144.6338
> 41.50375380 -73.95449855 138.98330000
> 41.50579170 -73.95243612 168.13430000
>
> (the proper coordinates are the last 2 lines)
>
> Am I using cs2cs in a wrong way?
>
> Thanks
> .___ ._ ..._ .. . ._. .___ .. __ . _. . __.. ... .... ._ .__
> Entre dos pensamientos racionales
> hay infinitos pensamientos irracionales.
>
>
> _______________________________________________
> PROJ mailing listPROJ at lists.osgeo.orghttps://lists.osgeo.org/mailman/listinfo/proj
>
> -- http://www.spatialys.com
> My software is free, but my time generally not.
>
> _______________________________________________
> PROJ mailing list
> PROJ at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/proj
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/proj/attachments/20220817/4a743370/attachment-0001.htm>
-------------- next part --------------
641479.6040 973128.5014 144.6338
641534.7456 973199.8717 138.9833
642094.9325 973945.9479 168.1343
More information about the PROJ
mailing list