<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.2.5">
</HEAD>
<BODY>
One point I didn't think of on the first email: is your binary data in radians???<BR>
proj/lproj does not do deg-to-radian conversion with binary data.<BR>
<BR>
Otherwise, your following usage looks OK.<BR>
<BR>
On Fri, 2005-08-19 at 14:55 -0700, pw wrote:        <BR>
...
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">My test file is a double precision binary file with </FONT>
<FONT COLOR="#000000">lonlatlonlat...(113000 times)</FONT>
<FONT COLOR="#000000">/*binary file -> [proj] -> binary -> [invproj] -> text*/</FONT>
<FONT COLOR="#000000">proj +proj=utm +zone=17 +ellps=WGS84 -b binary_file.bin | \</FONT>
<FONT COLOR="#000000">proj -I -i +proj=utm +zone=17 +ellps=WGS84</FONT>
<FONT COLOR="#000000">OR:</FONT>
<FONT COLOR="#000000">/*binary to text*/</FONT>
<FONT COLOR="#000000">proj +proj=utm +zone=17 +ellps=WGS84 -i binary_file.bin</FONT>
<FONT COLOR="#000000">Both of these give me poor output under MS Windows.</FONT>
<FONT COLOR="#000000">I haven't tried this under linux yet. That would tell me</FONT>
<FONT COLOR="#000000">if the problem is with my VC 5 build under MS windows, although</FONT>
<FONT COLOR="#000000">the default struct alignment/packing is 8 bytes which should</FONT>
<FONT COLOR="#000000">be totally copacetic with the struct UV anyway since doubles are</FONT>
<FONT COLOR="#000000">8 bytes.</FONT>
<FONT COLOR="#000000">I was curious as to whether binary files were currently</FONT>
<FONT COLOR="#000000">supported (tested?) since this is treated in only a passing</FONT>
<FONT COLOR="#000000">manner in the docs.</FONT>
<FONT COLOR="#000000">If my command line is correct above, then my build must be wrong.</FONT>
<FONT COLOR="#000000">I will check my linux build to see if it responds in the same</FONT>
<FONT COLOR="#000000">manner.</FONT>
</PRE>
</BLOCKQUOTE>
        ...<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<PRE>
--
_____________________________________________________________
Jerry and the Low Riders: Daisy Mae and Joshua
"The most certain test by which we judge whether a country is
really free is the amount of security enjoyed by minorities"
---Lord Acton, 1907
</PRE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>