[postgis-users] Problem with PostGIS 1.0.0 RC1

David Blasby dblasby at gmail.com
Sun Jan 23 10:25:52 PST 2005


> CREATE OR REPLACE FUNCTION GeomFromWKB(text)
> RETURNS geometry as
> 'select geomFromWKB($1::geometry::bytea)'
> LANGUAGE 'SQL';

Why are you running the conversion twice (WKB->GEOMETRY->WKB->GEOMETRY)?

 CREATE OR REPLACE FUNCTION GeomFromWKB(text)
 RETURNS geometry as
 'select ($1::geometry)'
 LANGUAGE 'SQL';



More information about the postgis-users mailing list