[postgis-users] binary cursor returning truncated data

Eric Mauvière e.mauviere at geoclip.fr
Fri Apr 14 13:09:48 PDT 2006


i am trying to retrieve binary content of a bytea field (or postgis geometry field) with a binary cursor with PHP :

$sql="BEGIN;DECLARE mycursor BINARY CURSOR FOR SELECT shape FROM $layerName; fetch all in mycursor;"

But my shape field shows only two bytes of data.

Does someone know if it is a current PHP restriction ?

Thanks by advance,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20060414/f84a5577/attachment.html>

More information about the postgis-users mailing list