[postgis-users] AsBinary not honouring the endianess parameter

david.garnier at etudier-online.com david.garnier at etudier-online.com
Tue Sep 30 10:07:01 PDT 2003


Richard,


The answer is: Yes. See my website (http://wkb4j.sourceforge.net/), third news item.

Long story short, it is a bug, and it is fixed in the CVS version of PostGIS.
For the current version, I provided a patch.

Best Regards,
David Garnier

Quoting Richard Taylor <r.taylor at bcs.org.uk>:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi
> 
> Are there any know issues with AsBinary() sometimes not honouring the 
> endianess parameter?
> 
> I am using a binary cursor in the following way:
> 
> DECLARE zot BINARY CURSOR FOR SELECT AsBinary(p1,'XDR'),AsBinary(p2,'XDR') 
> FROM geom_table FOR READ ONLY
> FETCH ALL FROM zot
> 
> About 50% of the time the result is in XDR and 50% in NDR. I shall probably 
> write my parser to deal with both versions but it does seam strange.
> 
> Richard
> 
> - -- 
> Jabber: RichardTaylor at jabber.org
> PGPKey:
> http://search.keyserver.net:11371/pks/lookup?op=get&search=0xA7DA9FD9
> Key fingerprint = D051 A121 E7C3 485F 3C0E  1593 ED9E D868 A7DA 9FD9
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.1 (GNU/Linux)
> 
> iD8DBQE/eSyn7Z7YaKfan9kRAnsuAKDwgeUj2B75e6pBVRP2TJQiZGC7pACdG6iX
> vMTSMxtxaG6tER/X9UxmcaY=
> =PHwd
> -----END PGP SIGNATURE-----
> 
> 
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
> 





More information about the postgis-users mailing list