geo/geo.inc, line 202
- Versions
- 6
geo_geo_from_wkt($wkt, $srid = GEO_DEFAULT_SRID)
Insert a geometry object into the database on the specified row
Parameters
$table The name of the table that currently holds the geometry information.
$field_name The name of the field in which to insert the data.
Return value
void
Code
<?php
function geo_geo_from_wkt($wkt, $srid = GEO_DEFAULT_SRID) {
return " GeomFromText('". $wkt ."') ";
}
?> 