[postgis-devel] RE: [postgis-users] Problem with PostGIS 1.0.0 RC1
schabios at logi-track.com
Tue Jan 25 06:37:55 PST 2005
strk at refractions.net schrieb:
>>> GeomFromWKB(geometry); <-- autocast to bytea
>>> GeomFromText(geometry); <-- autocast to text (needs (E)WKT to work)
>>Strange, I cannot imagine any use-case for this, at least in my apps.
> It came to mind to check OGC compliance of a given geometry, does not
> sound as a clean way anyway...
Well, as calling GeomFromWKB(geometry) is not OGC compliant, this is
PostGIS specfic anyways. Then our user could do
GeomFromWKB(asEWKB(geometry)) as well.
>> I think that both variants would issue parser warnings in GeomFrom*()
>> when we have a 3D, M or 3D/M geometry?
> Yes, with these massages:
> WARNING: OGC WKT expected, EWKT provided - use GeomFromEWKT() for
> WARNING: OGC WKB expected, EWKB provided - use GeometryFromEWKB() for
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-devel