[postgis-users] AsBinary not honouring the endianess parameter

Richard Taylor r.taylor at bcs.org.uk
Tue Sep 30 10:33:00 PDT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

David

Many thanks. 

I have worked around it by dynamically supporting both endiannesses.

BTW, I owe you thanks also because I have borrowed quite a lot from the 
approach you have taken in wkb4j in the python parser that I am writing.

Regards

Richard

On Tuesday 30 September 2003 6:07 pm, david.garnier at etudier-online.com wrote:
> 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

- -- 
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.3 (GNU/Linux)

iD8DBQE/eb5U7Z7YaKfan9kRAn8nAKDfycus/JGrdC/Plo5/WhmYEUH6hQCg6rQv
PbYpt6HChkVDSGtMi4ckwAA=
=YzFs
-----END PGP SIGNATURE-----




More information about the postgis-users mailing list