<html style="direction: ltr;">
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
<style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
</head>
<body style="direction: ltr;"
bidimailui-detected-decoding-type="latin-charset" text="#000000"
bgcolor="#FFFFFF">
<div class="moz-cite-prefix">The issue turned out to be MATLAB
setting LD_LIBRARY_PATH to it's directories.<br>
Resetting it made cs2cs work okay.<br>
<br>
Thanks for the help,<br>
Shimi.<br>
<br>
On 11/05/2014 02:05 PM, Charles Karney wrote:<br>
</div>
<blockquote cite="mid:545A1291.5010802@sri.com" type="cite">
<pre wrap="">This works OK for me (Matlab 2013a on Linux). Perhaps make sure that
1.tmp really has only the 1 number in it and doesn't contains carriage
returns that cause later numbers to overwrite earlier ones. Failing
that, switch to Octave!
On 11/05/2014 04:47 AM, Shimi Chen wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hello,
I realize that MATLAB is proprietary software and thus not very
reproducible.
However I would appreciate if someone could think if he has an idea why
this could happen.
I will explain the issue with a simple example.
I made a file 0.tmp with the contents:
35.049 31.728
Running this command:
cs2cs +init=epsg:4326 +to +init=epsg:2039 <0.tmp >1.tmp
Produces this correct 1.tmp file:
204718.31 626160.79 -20.79
However, when calling the exact same command from the matlab shell:
system(['cs2cs +init=epsg:4326 +to +init=epsg:2039 <0.tmp >1.tmp'])
The resulting file 1.tmp only has these contents:
-20.787
So, clearly, cs2cs is getting all of the input, since otherwise it could
not get the -20.79 right. The question is why would it not also write
204718.31 626160.79 to the file?
What weird thing could MATLAB be doing with the input that would make
cs2cs produce this partial output?
Note: do not try to reproduce in Octave. It works fine in Octave.
Thanks,
Shimi.
_______________________________________________
Proj mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Proj@lists.maptools.org">Proj@lists.maptools.org</a>
<a class="moz-txt-link-freetext" href="http://lists.maptools.org/mailman/listinfo/proj">http://lists.maptools.org/mailman/listinfo/proj</a>
</pre>
</blockquote>
<pre wrap="">
_______________________________________________
Proj mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Proj@lists.maptools.org">Proj@lists.maptools.org</a>
<a class="moz-txt-link-freetext" href="http://lists.maptools.org/mailman/listinfo/proj">http://lists.maptools.org/mailman/listinfo/proj</a>
</pre>
</blockquote>
<br>
</body>
</html>