[postgis-users] XDR or NDR

Paul Ramsey pramsey at refractions.net
Thu Sep 25 11:12:12 PDT 2003


It is either. By default, AsBinary(geom) will return in the endianness 
of the machine it is running on. But you can force it to a particular 
endianness by specifying. AsBinary(geom,'XDR') or AsBinary(geom,'NDR').

Richard Taylor wrote:

> Hi,
> 
> I am new to the list and to PostGIS. I am in the process of writing GeoTypes,
> a python package that implements the geometric types on top of Psycopg.
> 
> Does anyone know if the WKB format produced by PostGIS is in NDR or XDR
> format?
> 
> Many thanks.
> 
> 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
> 
> 
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users


-- 
       __
      /
      | Paul Ramsey
      | Refractions Research
      | Email: pramsey at refractions.net
      | Phone: (250) 885-0632
      \_




More information about the postgis-users mailing list