postgresql/contrib/earthdistance/earthdistance.sql.in

20 lines
427 B
MySQL
Raw Normal View History

-- Adjust this setting to control where the objects get created.
SET search_path = public;
SET autocommit TO 'on';
2000-06-15 21:05:22 +02:00
--------------- geo_distance
CREATE OR REPLACE FUNCTION geo_distance (point, point)
RETURNS float8
LANGUAGE 'C' IMMUTABLE STRICT AS 'MODULE_PATHNAME';
2000-06-15 21:05:22 +02:00
--------------- geo_distance as operator <@>
CREATE OPERATOR <@> (
LEFTARG = point,
RIGHTARG = point,
PROCEDURE = geo_distance,
COMMUTATOR = <@>
2000-06-15 21:05:22 +02:00
);