Skip navigation.
 
mlRe: Reading binary files
FROM : Ricky Sharp
DATE : Fri Oct 15 19:30:32 2004

On Friday, October 15, 2004, at 11:22AM, Peter Schols <peter.<email_removed>> wrote:

>I'm trying to read the header of a shape (.shp) file (containing 
>geographical information). This works as expected for reading an 
>integer, but it does not work for reading a double. The data is in 
>little endian format. Any ideas what's going on here?


As was hinted to in another reply, there is indeed a special function for working with doubles:

double NSSwapLittleDoubleToHost(NSSwappedDouble x);

--
Rick Sharp
Instant Interactive(tm)

Related mailsAuthorDate
mlReading binary files Peter Schols Oct 15, 18:21
mlRe: Reading binary files Robert Tillyard Oct 15, 18:39
mlRe: Reading binary files John Stiles Oct 15, 19:30
mlRe: Reading binary files Ricky Sharp Oct 15, 19:30