mysql_spatial.inc

Version 1.12 (checked in on 2009/05/30 at 04:21:15 by vauxia)

MySQL Spatial Extensions backend for the geo field module

@package geo

Functions

NameDescription
geo_mysql_spatial_add_fieldAdds a geometry column to the specified table.
geo_mysql_spatial_drop_fieldRemove a geometry column from the specified table.
geo_mysql_spatial_query_distanceCalculate the distance using the Pythagorean theorem. It's cheaper than the spherical versions, but less accurate. TODO only works for points - the X() and Y() functions should be supplanted by something that's cognizant of other geometries.
geo_mysql_spatial_query_distance_sphereCalculate the distance using the Great Circle Distance Formula. TODO only works for points - the X() and Y() functions should be supplanted by something that's cognizant of other geometries.
geo_mysql_spatial_query_function
geo_mysql_spatial_tablesReturn a list of fields, keyed by table, of geo tables.
geo_mysql_spatial_table_descParse out the table descriptions from the geometry information stored in the table.
geo_mysql_spatial_version
_geo_fromtext
_geo_latlonfrompoint