Closed (fixed)
Project:
Geo
Component:
Geo API
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
9 Apr 2009 at 19:09 UTC
Updated:
28 Sep 2009 at 14:18 UTC
Jump to comment: Most recent file
When dealing with WKB, Geo checks the byte order but never references it--the unpack() operations use the byte order of the machine running the code.
Probably the only time this will ever "byte" anyone is if they're moving data between web servers and some trusty old PPC Mac... er, like me. This patch makes sure that Geo uses the byte order specified by the WKB, and reverses binary double data if the encoding byte order is different from the byte order of the machine the code is running on.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | geo_byte_order_1.patch | 2.89 KB | becw |
| #1 | geo_byte_order.patch | 2.72 KB | becw |
| geo_byte_order.patch | 2.72 KB | becw |
Comments
Comment #1
becw commentedUpdated the patch to reflect recent Geo development.
Comment #2
becw commentedFixed a bug in the patch where two binary doubles were treated as one string rather than two.
A version of Geo with this patch and others applied is available here:
http://hg.invisibleinstitute.com/drupal/geo_patched/
Comment #3
allie mickaCommitted - thanks becw!
Comment #4
becw commentedThank YOU, Allie!!
Comment #6
zazzu commentedthe link to http://hg.invisibleinstitute.com/drupal/geo_patched/ is broken...
Comment #7
becw commentedthe patch has been committed, so my patched branch is no longer necessary :)