[postgis-users] where has the wkb type gone?
Richard Taylor
rjt-postgis-users at thegrindstone.me.uk
Wed Aug 24 01:00:37 PDT 2005
On Wednesday 24 Aug 2005 08:11, strk at refractions.net wrote:
> On Tue, Aug 23, 2005 at 10:29:28PM +0100, Richard Taylor wrote:
> ...
>
> I suggest you don't hook on function returns, but just on the
> geometry type.
>
> In a text cursor a 'geometry' would be EWKT for older postgis and
> EHEXWKB for newer one (you can detect the EWKT checking for first
> char in [SPLMG]).
> In a binary cursor a 'geometry' would be internal representation
> for older postgis and EWKB for newer postgis. This would be harder
> to detect.
That all makes sense. I don't need to support older versions of Postgis any
more. So I will just go for hooking into the cannonical format on the
'geometry' type.
Many thanks for the advice.
Richard
--
You can normally find me on Jabber as RichardTaylor at jabber.org
More information about the postgis-users
mailing list