[postgis-devel] WKB type
strk at refractions.net
strk at refractions.net
Fri Sep 10 00:34:18 PDT 2004
On Thu, Sep 09, 2004 at 03:31:01PM -0700, Paul Ramsey wrote:
>
> >And what about OGC conformance... do you think the binary transfer
> >format should be strict WKB (if such a thing exists) or a
> >postgis-custom format ?
> >
> >I'm thinking about:
> > - SRID extension
> > - 2d/3d/4d specification
> > - optional BBOX
> >
> >--strk;
>
> AcK! No, AsBinary *must* return OGC WKB.
> If people want to get into a postgis-specific binary return type, they
> can fill their boots using binary cursors and pulling the native objects
> back directly.
Ok. So this would be:
bytea AsBinary(geom, [endiannes]);
geometry GeomFromWKB(bytea, [SRID]);
GeomFromWKB(AsBinary('SRID=14;POINT(0 0)'));
-- will loose srid
GeomFromWKB(AsBinary('SRID=32;POINT(0 0)'), 14);
-- will change SRID
Note that current postgis WKB output contains custom 3d extension,
and LWGEOM will have the 4d extension.
--strk;
>
>
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel
More information about the postgis-devel
mailing list