Hello Everybody,<br><br>Is it possible to use Perl DBI placeholders to insert a geometry into a table using GeomFromText.<br><br>When I try the following;<br><br>     $sth = $dbh->prepare("INSERT INTO table (gid, the_geom) VALUES (?,?)");<br>
     $sth->execute(1, GeomFromText('POINT(1 1)', 4326));<br><br>an error is produced:<br><br>     ERROR:  parse error - invalid geometry<br>     HINT:  You must specify a valid OGC WKT geometry type such as POINT, LINESTRING or POLYGON<br>
<br>The following statement works fine:<br><br>     INSERT INTO table (gid, the_geom) VALUES (1, GeomFromText('POINT(1 1)', 4326));<br><br><br>I am not entirely sure if this is more of a DBI question or a POSTGIS question, but maybe someone can help?<br>
<br>Thanks,<br><br>Stuart<br>