[prev in list] [next in list] [prev in thread] [next in thread] 

List:       postgis-users
Subject:    Re: [postgis-users] AsBinary not honouring the endianess parameter
From:       Richard Taylor <r.taylor () bcs ! org ! uk>
Date:       2003-09-30 17:33:00
Message-ID: 200309301833.09067.r.taylor () bcs ! org ! uk
[Download RAW message or body]

-----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@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@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@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@postgis.refractions.net
> > http://postgis.refractions.net/mailman/listinfo/postgis-users

- -- 
Jabber: RichardTaylor@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-----


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic