geo/db/mysql_spatial.inc, line 196
- Versions
- 6
_geo_fromtext($string, $table, $field)
Code
<?php
function _geo_fromtext($string, $table, $field) {
$srid = db_result(db_query("SELECT srid FROM {gis_sources}
WHERE table = '%s' AND field = '%s'"));
return "GeomFromText('$string', $srid)";
}
?> 