[postgis-users] Problem with PostGIS 1.0.0 RC1
schabios at logi-track.com
Mon Jan 24 01:33:22 PST 2005
Mark Cave-Ayland schrieb:
> I think that a cast would be the easiest way as it would then only be
> necessary to write a simple cast function which we can then use with WKB and
> EWKB geometries.
I did not talk aobut the difference between WKB and EWKB, but about the
different handling of "binary" (E)WKB and "hex encoded" (E)WKB.
But maybe I missed the point of the original discussion.
>>Another way would be to simply have the parser method
>>input formats, using if() or ?: to distinguish both methods of source.
> Given that PostgreSQL is strongly typed, I think this is a really bad idea -
> if there are two different types being fed into a function then PostgreSQL
> really should be aware of it IMHO.
Yes, this is what I wanted. For PostgreSQL, this are two differend
functions that use two different entry points in the C lib.
But the C lib may _internally_ use a single function that knows how to
deal with both binary and hex-encoded representations, as well as both
WKB and EWKB.
markus schaber | dipl. informatiker
logi-track ag | rennweg 14-16 | ch 8001 zürich
phone +41-43-888 62 52 | fax +41-43-888 62 53
mailto:schabios at logi-track.com | www.logi-track.com
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 256 bytes
Desc: OpenPGP digital signature
More information about the postgis-users