[postgis-devel] RE: [postgis-users] Problem with PostGIS 1.0.0 RC1

Markus Schaber schabios at logi-track.com
Tue Jan 25 06:37:55 PST 2005

Hi, strk,

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
> this
> WARNING:  OGC WKB expected, EWKB provided - use GeometryFromEWKB() for
> this



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...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20050125/0110fb9f/attachment.sig>

More information about the postgis-devel mailing list