[postgis-devel] Minor fix in distance_sphere
Charlie Savage
cfis at savagexi.com
Sat Sep 22 18:05:36 PDT 2007
Try this:
select distance_sphere('SRID=4326;POINT(-104.9664 39.7055)'::geometry,
'SRID=4326;GEOMETRYCOLLECTION(EMPTY)'::geometry)
And the result is this:
ERROR: lwpoint_deserialize: attempt to deserialize a point which is
really a Invalid type
The error message is incorrect, besides being a bit worrisome. The
correct error message should be:
ERROR: lwpoint_deserialize: attempt to deserialize a point which is
really a GeometryCollection
Patch attached,
Charlie
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: postgis_point_deserialize.patch
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20070922/343dbc4c/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20070922/343dbc4c/attachment.bin>
More information about the postgis-devel
mailing list