
jbe@0: 
jbe@0: ------------------------------------------------------------
jbe@0: -- dummy input/output functions for dummy index key types --
jbe@0: ------------------------------------------------------------
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION ekey_point_in_dummy(cstring)
jbe@0:   RETURNS ekey_point
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_notimpl';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION ekey_point_out_dummy(ekey_point)
jbe@0:   RETURNS cstring
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_notimpl';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION ekey_area_in_dummy(cstring)
jbe@0:   RETURNS ekey_area
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_notimpl';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION ekey_area_out_dummy(ekey_area)
jbe@0:   RETURNS cstring
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_notimpl';
jbe@0: 
jbe@0: 
jbe@0: --------------------------
jbe@0: -- text input functions --
jbe@0: --------------------------
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION epoint_in(cstring)
jbe@0:   RETURNS epoint
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_epoint_in';
jbe@46: 
jbe@69: CREATE OR REPLACE FUNCTION epoint_with_sample_count_in(cstring)
jbe@46:   RETURNS epoint_with_sample_count
jbe@46:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_epoint_with_sample_count_in';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION ebox_in(cstring)
jbe@0:   RETURNS ebox
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_ebox_in';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION ecircle_in(cstring)
jbe@0:   RETURNS ecircle
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_ecircle_in';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION ecluster_in(cstring)
jbe@0:   RETURNS ecluster
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_ecluster_in';
jbe@0: 
jbe@0: 
jbe@0: ---------------------------
jbe@0: -- text output functions --
jbe@0: ---------------------------
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION epoint_out(epoint)
jbe@0:   RETURNS cstring
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_epoint_out';
jbe@46: 
jbe@69: CREATE OR REPLACE FUNCTION epoint_with_sample_count_out(epoint_with_sample_count)
jbe@46:   RETURNS cstring
jbe@46:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_epoint_with_sample_count_out';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION ebox_out(ebox)
jbe@0:   RETURNS cstring
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_ebox_out';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION ecircle_out(ecircle)
jbe@0:   RETURNS cstring
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_ecircle_out';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION ecluster_out(ecluster)
jbe@0:   RETURNS cstring
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_ecluster_out';
jbe@0: 
jbe@0: 
jbe@0: --------------------------
jbe@0: -- binary I/O functions --
jbe@0: --------------------------
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION epoint_recv(internal)
jbe@0:   RETURNS epoint
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_epoint_recv';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION ebox_recv(internal)
jbe@0:   RETURNS ebox
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_ebox_recv';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION ecircle_recv(internal)
jbe@0:   RETURNS ecircle
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_ecircle_recv';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION epoint_send(epoint)
jbe@0:   RETURNS bytea
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_epoint_send';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION ebox_send(ebox)
jbe@69:   RETURNS bytea
jbe@69:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_ebox_send';
jbe@46: 
jbe@69: CREATE OR REPLACE FUNCTION ecircle_send(ecircle)
jbe@69:   RETURNS bytea
jbe@69:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_ecircle_send';
jbe@0: 
jbe@0: 
jbe@0: --------------------
jbe@0: -- B-tree support --
jbe@0: --------------------
jbe@0: 
jbe@0: -- begin of B-tree support for epoint
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION epoint_btree_lt(epoint, epoint)
jbe@0:   RETURNS boolean
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_btree_epoint_lt';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION epoint_btree_le(epoint, epoint)
jbe@0:   RETURNS boolean
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_btree_epoint_le';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION epoint_btree_eq(epoint, epoint)
jbe@0:   RETURNS boolean
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_btree_epoint_eq';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION epoint_btree_ne(epoint, epoint)
jbe@69:   RETURNS boolean
jbe@69:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_btree_epoint_ne';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION epoint_btree_ge(epoint, epoint)
jbe@69:   RETURNS boolean
jbe@69:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_btree_epoint_ge';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION epoint_btree_gt(epoint, epoint)
jbe@69:   RETURNS boolean
jbe@69:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_btree_epoint_gt';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION epoint_btree_cmp(epoint, epoint)
jbe@0:   RETURNS int4
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_btree_epoint_cmp';
jbe@0: 
jbe@0: -- end of B-tree support for epoint
jbe@0: 
jbe@0: -- begin of B-tree support for ebox
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION ebox_btree_lt(ebox, ebox)
jbe@0:   RETURNS boolean
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_btree_ebox_lt';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION ebox_btree_le(ebox, ebox)
jbe@0:   RETURNS boolean
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_btree_ebox_le';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION ebox_btree_eq(ebox, ebox)
jbe@0:   RETURNS boolean
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_btree_ebox_eq';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION ebox_btree_ne(ebox, ebox)
jbe@69:   RETURNS boolean
jbe@69:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_btree_ebox_ne';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION ebox_btree_ge(ebox, ebox)
jbe@69:   RETURNS boolean
jbe@69:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_btree_ebox_ge';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION ebox_btree_gt(ebox, ebox)
jbe@69:   RETURNS boolean
jbe@69:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_btree_ebox_gt';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION ebox_btree_cmp(ebox, ebox)
jbe@0:   RETURNS int4
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_btree_ebox_cmp';
jbe@0: 
jbe@0: -- end of B-tree support for ebox
jbe@0: 
jbe@0: -- begin of B-tree support for ecircle
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION ecircle_btree_lt(ecircle, ecircle)
jbe@0:   RETURNS boolean
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_btree_ecircle_lt';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION ecircle_btree_le(ecircle, ecircle)
jbe@0:   RETURNS boolean
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_btree_ecircle_le';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION ecircle_btree_eq(ecircle, ecircle)
jbe@0:   RETURNS boolean
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_btree_ecircle_eq';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION ecircle_btree_ne(ecircle, ecircle)
jbe@69:   RETURNS boolean
jbe@69:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_btree_ecircle_ne';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION ecircle_btree_ge(ecircle, ecircle)
jbe@69:   RETURNS boolean
jbe@69:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_btree_ecircle_ge';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION ecircle_btree_gt(ecircle, ecircle)
jbe@69:   RETURNS boolean
jbe@69:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_btree_ecircle_gt';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION ecircle_btree_cmp(ecircle, ecircle)
jbe@0:   RETURNS int4
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_btree_ecircle_cmp';
jbe@0: 
jbe@0: -- end of B-tree support for ecircle
jbe@0: 
jbe@0: 
jbe@0: ----------------
jbe@0: -- type casts --
jbe@0: ----------------
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION cast_epoint_to_ebox(epoint)
jbe@0:   RETURNS ebox
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_epoint_to_ebox';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION cast_epoint_to_ecircle(epoint)
jbe@0:   RETURNS ecircle
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_epoint_to_ecircle';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION cast_epoint_to_ecluster(epoint)
jbe@0:   RETURNS ecluster
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_epoint_to_ecluster';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION cast_ebox_to_ecluster(ebox)
jbe@0:   RETURNS ecluster
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_ebox_to_ecluster';
jbe@0: 
jbe@0: 
jbe@0: ---------------------------
jbe@0: -- constructor functions --
jbe@0: ---------------------------
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION epoint(float8, float8)
jbe@0:   RETURNS epoint
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_create_epoint';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION epoint_with_sample_count(epoint, int4)
jbe@46:   RETURNS epoint_with_sample_count
jbe@46:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_create_epoint_with_sample_count';
jbe@46: 
jbe@69: CREATE OR REPLACE FUNCTION empty_ebox()
jbe@0:   RETURNS ebox
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_create_empty_ebox';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION ebox(float8, float8, float8, float8)
jbe@0:   RETURNS ebox
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_create_ebox';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION ebox(epoint, epoint)
jbe@69:   RETURNS ebox
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_create_ebox_from_epoints';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION ecircle(float8, float8, float8)
jbe@0:   RETURNS ecircle
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_create_ecircle';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION ecircle(epoint, float8)
jbe@69:   RETURNS ecircle
jbe@69:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_create_ecircle_from_epoint';
jbe@0: 
jbe@0: 
jbe@0: ----------------------
jbe@0: -- getter functions --
jbe@0: ----------------------
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION latitude(epoint)
jbe@0:   RETURNS float8
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_epoint_lat';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION longitude(epoint)
jbe@0:   RETURNS float8
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_epoint_lon';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION min_latitude(ebox)
jbe@0:   RETURNS float8
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_ebox_lat_min';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION max_latitude(ebox)
jbe@0:   RETURNS float8
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_ebox_lat_max';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION min_longitude(ebox)
jbe@69:   RETURNS float8
jbe@69:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_ebox_lon_min';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION max_longitude(ebox)
jbe@69:   RETURNS float8
jbe@69:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_ebox_lon_max';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION center(ecircle)
jbe@69:   RETURNS epoint
jbe@69:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_ecircle_center';
jbe@69: 
jbe@69: CREATE OR REPLACE FUNCTION radius(ecircle)
jbe@69:   RETURNS float8
jbe@69:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_ecircle_radius';
jbe@0: 
jbe@0: 
jbe@0: ---------------
jbe@0: -- operators --
jbe@0: ---------------
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION epoint_ebox_overlap_proc(epoint, ebox)
jbe@0:   RETURNS boolean
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_epoint_ebox_overlap';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION epoint_ecircle_overlap_proc(epoint, ecircle)
jbe@0:   RETURNS boolean
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_epoint_ecircle_overlap';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION epoint_ecluster_overlap_proc(epoint, ecluster)
jbe@0:   RETURNS boolean
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_epoint_ecluster_overlap';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION epoint_ecluster_may_overlap_proc(epoint, ecluster)
jbe@10:   RETURNS boolean
jbe@10:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_epoint_ecluster_may_overlap';
jbe@10: 
jbe@69: CREATE OR REPLACE FUNCTION ebox_overlap_proc(ebox, ebox)
jbe@0:   RETURNS boolean
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_ebox_overlap';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION ebox_ecircle_may_overlap_proc(ebox, ecircle)
jbe@0:   RETURNS boolean
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_ebox_ecircle_may_overlap';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION ebox_ecluster_may_overlap_proc(ebox, ecluster)
jbe@10:   RETURNS boolean
jbe@10:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_ebox_ecluster_may_overlap';
jbe@10: 
jbe@69: CREATE OR REPLACE FUNCTION ecircle_overlap_proc(ecircle, ecircle)
jbe@16:   RETURNS boolean
jbe@16:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_ecircle_overlap';
jbe@16: 
jbe@69: CREATE OR REPLACE FUNCTION ecircle_ecluster_overlap_proc(ecircle, ecluster)
jbe@10:   RETURNS boolean
jbe@10:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_ecircle_ecluster_overlap';
jbe@10: 
jbe@69: CREATE OR REPLACE FUNCTION ecircle_ecluster_may_overlap_proc(ecircle, ecluster)
jbe@16:   RETURNS boolean
jbe@16:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_ecircle_ecluster_may_overlap';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION ecluster_overlap_proc(ecluster, ecluster)
jbe@69:   RETURNS boolean
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_ecluster_overlap';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION ecluster_may_overlap_proc(ecluster, ecluster)
jbe@69:   RETURNS boolean
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_ecluster_may_overlap';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION ecluster_contains_proc(ecluster, ecluster)
jbe@69:   RETURNS boolean
jbe@16:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_ecluster_contains';
jbe@46: 
jbe@69: CREATE OR REPLACE FUNCTION epoint_distance_proc(epoint, epoint)
jbe@46:   RETURNS float8
jbe@46:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_epoint_distance';
jbe@16: 
jbe@69: CREATE OR REPLACE FUNCTION epoint_ecircle_distance_proc(epoint, ecircle)
jbe@69:   RETURNS float8
jbe@69:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_epoint_ecircle_distance';
jbe@10: 
jbe@69: CREATE OR REPLACE FUNCTION epoint_ecluster_distance_proc(epoint, ecluster)
jbe@69:   RETURNS float8
jbe@69:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_epoint_ecluster_distance';
jbe@16: 
jbe@69: CREATE OR REPLACE FUNCTION ecircle_distance_proc(ecircle, ecircle)
jbe@69:   RETURNS float8
jbe@69:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_ecircle_distance';
jbe@20: 
jbe@69: CREATE OR REPLACE FUNCTION ecircle_ecluster_distance_proc(ecircle, ecluster)
jbe@69:   RETURNS float8
jbe@69:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_ecircle_ecluster_distance';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION ecluster_distance_proc(ecluster, ecluster)
jbe@0:   RETURNS float8
jbe@69:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_ecluster_distance';
jbe@16: 
jbe@69: CREATE OR REPLACE FUNCTION fair_distance_operator_proc(ecluster, epoint_with_sample_count)
jbe@16:   RETURNS float8
jbe@69:   LANGUAGE C IMMUTABLE STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_ecluster_epoint_sc_fair_distance';
jbe@42: 
jbe@42: 
jbe@0: ----------------
jbe@0: -- GiST index --
jbe@0: ----------------
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION pgl_gist_consistent(internal, internal, smallint, oid, internal)
jbe@0:   RETURNS boolean
jbe@0:   LANGUAGE C STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_gist_consistent';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION pgl_gist_union(internal, internal)
jbe@0:   RETURNS internal
jbe@0:   LANGUAGE C STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_gist_union';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION pgl_gist_compress_epoint(internal)
jbe@0:   RETURNS internal
jbe@0:   LANGUAGE C STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_gist_compress_epoint';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION pgl_gist_compress_ecircle(internal)
jbe@0:   RETURNS internal
jbe@0:   LANGUAGE C STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_gist_compress_ecircle';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION pgl_gist_compress_ecluster(internal)
jbe@0:   RETURNS internal
jbe@0:   LANGUAGE C STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_gist_compress_ecluster';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION pgl_gist_decompress(internal)
jbe@69:   RETURNS internal
jbe@69:   LANGUAGE C STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_gist_decompress';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION pgl_gist_penalty(internal, internal, internal)
jbe@69:   RETURNS internal
jbe@69:   LANGUAGE C STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_gist_penalty';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION pgl_gist_picksplit(internal, internal)
jbe@69:   RETURNS internal
jbe@69:   LANGUAGE C STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_gist_picksplit';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION pgl_gist_same(internal, internal, internal)
jbe@69:   RETURNS internal
jbe@69:   LANGUAGE C STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_gist_same';
jbe@0: 
jbe@69: CREATE OR REPLACE FUNCTION pgl_gist_distance(internal, internal, smallint, oid)
jbe@69:   RETURNS internal
jbe@69:   LANGUAGE C STRICT
jbe@69:   AS '$libdir/latlon-v0010', 'pgl_gist_distance';
jbe@69: 




