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)
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 mails | Author | Date |
|---|---|---|
| Peter Schols | Oct 15, 18:21 | |
| Robert Tillyard | Oct 15, 18:39 | |
| John Stiles | Oct 15, 19:30 | |
| Ricky Sharp | Oct 15, 19:30 |






Cocoa mail archive

