
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION ekey_point_in_dummy(cstring)
jbe@0:   RETURNS ekey_point
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_notimpl';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION ekey_point_out_dummy(ekey_point)
jbe@0:   RETURNS cstring
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_notimpl';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION ekey_area_in_dummy(cstring)
jbe@0:   RETURNS ekey_area
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_notimpl';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION ekey_area_out_dummy(ekey_area)
jbe@0:   RETURNS cstring
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_notimpl';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION epoint_in(cstring)
jbe@0:   RETURNS epoint
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_epoint_in';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION ebox_in(cstring)
jbe@0:   RETURNS ebox
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_ebox_in';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION ecircle_in(cstring)
jbe@0:   RETURNS ecircle
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_ecircle_in';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION ecluster_in(cstring)
jbe@4:   RETURNS ecluster
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_ecluster_in';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION epoint_out(epoint)
jbe@4:   RETURNS cstring
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_epoint_out';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION ebox_out(ebox)
jbe@4:   RETURNS cstring
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_ebox_out';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION ecircle_out(ecircle)
jbe@4:   RETURNS cstring
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_ecircle_out';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION ecluster_out(ecluster)
jbe@4:   RETURNS cstring
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_ecluster_out';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION epoint_recv(internal)
jbe@4:   RETURNS epoint
jbe@4:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_epoint_recv';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION ebox_recv(internal)
jbe@0:   RETURNS ebox
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_ebox_recv';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION ecircle_recv(internal)
jbe@0:   RETURNS ecircle
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_ecircle_recv';
jbe@4: 
jbe@4: CREATE OR REPLACE FUNCTION epoint_send(epoint)
jbe@4:   RETURNS bytea
jbe@4:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_epoint_send';
jbe@4: 
jbe@4: CREATE OR REPLACE FUNCTION ebox_send(ebox)
jbe@4:   RETURNS bytea
jbe@4:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_ebox_send';
jbe@4: 
jbe@4: CREATE OR REPLACE FUNCTION ecircle_send(ecircle)
jbe@4:   RETURNS bytea
jbe@4:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_ecircle_send';
jbe@4: 
jbe@4: CREATE OR REPLACE FUNCTION epoint_btree_lt(epoint, epoint)
jbe@4:   RETURNS boolean
jbe@4:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_btree_epoint_lt';
jbe@4: 
jbe@4: CREATE OR REPLACE FUNCTION epoint_btree_le(epoint, epoint)
jbe@4:   RETURNS boolean
jbe@4:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_btree_epoint_le';
jbe@4: 
jbe@4: CREATE OR REPLACE FUNCTION epoint_btree_eq(epoint, epoint)
jbe@4:   RETURNS boolean
jbe@4:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_btree_epoint_eq';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION epoint_btree_ne(epoint, epoint)
jbe@4:   RETURNS boolean
jbe@4:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_btree_epoint_ne';
jbe@4: 
jbe@4: CREATE OR REPLACE FUNCTION epoint_btree_ge(epoint, epoint)
jbe@4:   RETURNS boolean
jbe@4:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_btree_epoint_ge';
jbe@4: 
jbe@4: CREATE OR REPLACE FUNCTION epoint_btree_gt(epoint, epoint)
jbe@4:   RETURNS boolean
jbe@4:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_btree_epoint_gt';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION epoint_btree_cmp(epoint, epoint)
jbe@4:   RETURNS int4
jbe@4:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_btree_epoint_cmp';
jbe@4: 
jbe@4: CREATE OR REPLACE FUNCTION ebox_btree_lt(ebox, ebox)
jbe@4:   RETURNS boolean
jbe@4:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_btree_ebox_lt';
jbe@4: 
jbe@4: CREATE OR REPLACE FUNCTION ebox_btree_le(ebox, ebox)
jbe@4:   RETURNS boolean
jbe@4:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_btree_ebox_le';
jbe@4: 
jbe@4: CREATE OR REPLACE FUNCTION ebox_btree_eq(ebox, ebox)
jbe@4:   RETURNS boolean
jbe@4:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_btree_ebox_eq';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION ebox_btree_ne(ebox, ebox)
jbe@4:   RETURNS boolean
jbe@4:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_btree_ebox_ne';
jbe@4: 
jbe@4: CREATE OR REPLACE FUNCTION ebox_btree_ge(ebox, ebox)
jbe@4:   RETURNS boolean
jbe@4:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_btree_ebox_ge';
jbe@4: 
jbe@4: CREATE OR REPLACE FUNCTION ebox_btree_gt(ebox, ebox)
jbe@4:   RETURNS boolean
jbe@4:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_btree_ebox_gt';
jbe@4: 
jbe@4: CREATE OR REPLACE FUNCTION ebox_btree_cmp(ebox, ebox)
jbe@4:   RETURNS int4
jbe@4:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_btree_ebox_cmp';
jbe@4: 
jbe@4: CREATE OR REPLACE FUNCTION ecircle_btree_lt(ecircle, ecircle)
jbe@4:   RETURNS boolean
jbe@4:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_btree_ecircle_lt';
jbe@4: 
jbe@4: CREATE OR REPLACE FUNCTION ecircle_btree_le(ecircle, ecircle)
jbe@4:   RETURNS boolean
jbe@4:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_btree_ecircle_le';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION ecircle_btree_eq(ecircle, ecircle)
jbe@4:   RETURNS boolean
jbe@4:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_btree_ecircle_eq';
jbe@4: 
jbe@4: CREATE OR REPLACE FUNCTION ecircle_btree_ne(ecircle, ecircle)
jbe@4:   RETURNS boolean
jbe@4:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_btree_ecircle_ne';
jbe@4: 
jbe@4: CREATE OR REPLACE FUNCTION ecircle_btree_ge(ecircle, ecircle)
jbe@4:   RETURNS boolean
jbe@4:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_btree_ecircle_ge';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION ecircle_btree_gt(ecircle, ecircle)
jbe@4:   RETURNS boolean
jbe@4:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_btree_ecircle_gt';
jbe@4: 
jbe@4: CREATE OR REPLACE FUNCTION ecircle_btree_cmp(ecircle, ecircle)
jbe@4:   RETURNS int4
jbe@4:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_btree_ecircle_cmp';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION cast_epoint_to_ebox(epoint)
jbe@4:   RETURNS ebox
jbe@4:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_epoint_to_ebox';
jbe@4: 
jbe@4: CREATE OR REPLACE FUNCTION cast_epoint_to_ecircle(epoint)
jbe@4:   RETURNS ecircle
jbe@4:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_epoint_to_ecircle';
jbe@4: 
jbe@4: CREATE OR REPLACE FUNCTION cast_epoint_to_ecluster(epoint)
jbe@0:   RETURNS ecluster
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_epoint_to_ecluster';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION cast_ebox_to_ecluster(ebox)
jbe@4:   RETURNS ecluster
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_ebox_to_ecluster';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION epoint(float8, float8)
jbe@0:   RETURNS epoint
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_create_epoint';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION empty_ebox()
jbe@4:   RETURNS ebox
jbe@4:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_create_empty_ebox';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION ebox(float8, float8, float8, float8)
jbe@4:   RETURNS ebox
jbe@4:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_create_ebox';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION ebox(epoint, epoint)
jbe@4:   RETURNS ebox
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_create_ebox_from_epoints';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION ecircle(float8, float8, float8)
jbe@4:   RETURNS ecircle
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_create_ecircle';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION ecircle(epoint, float8)
jbe@4:   RETURNS ecircle
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_create_ecircle_from_epoint';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION latitude(epoint)
jbe@0:   RETURNS float8
jbe@0:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_epoint_lat';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION longitude(epoint)
jbe@4:   RETURNS float8
jbe@4:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_epoint_lon';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION min_latitude(ebox)
jbe@4:   RETURNS float8
jbe@4:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_ebox_lat_min';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION max_latitude(ebox)
jbe@4:   RETURNS float8
jbe@4:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_ebox_lat_max';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION min_longitude(ebox)
jbe@4:   RETURNS float8
jbe@4:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_ebox_lon_min';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION max_longitude(ebox)
jbe@4:   RETURNS float8
jbe@4:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_ebox_lon_max';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION center(ecircle)
jbe@4:   RETURNS epoint
jbe@4:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_ecircle_center';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION radius(ecircle)
jbe@4:   RETURNS float8
jbe@4:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_ecircle_radius';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION epoint_ebox_overlap_proc(epoint, ebox)
jbe@4:   RETURNS boolean
jbe@4:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_epoint_ebox_overlap';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION epoint_ecircle_overlap_proc(epoint, ecircle)
jbe@4:   RETURNS boolean
jbe@4:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_epoint_ecircle_overlap';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION epoint_ecluster_overlap_proc(epoint, ecluster)
jbe@0:   RETURNS boolean
jbe@4:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_epoint_ecluster_overlap';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION ebox_overlap_proc(ebox, ebox)
jbe@4:   RETURNS boolean
jbe@4:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_ebox_overlap';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION ecircle_overlap_proc(ecircle, ecircle)
jbe@4:   RETURNS boolean
jbe@4:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_ecircle_overlap';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION ecircle_ecluster_overlap_proc(ecircle, ecluster)
jbe@4:   RETURNS boolean
jbe@4:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_ecircle_ecluster_overlap';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION epoint_distance_proc(epoint, epoint)
jbe@0:   RETURNS float8
jbe@4:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_epoint_distance';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION epoint_ecircle_distance_proc(epoint, ecircle)
jbe@4:   RETURNS float8
jbe@4:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_epoint_ecircle_distance';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION epoint_ecluster_distance_proc(epoint, ecluster)
jbe@0:   RETURNS float8
jbe@4:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_epoint_ecluster_distance';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION ecircle_distance_proc(ecircle, ecircle)
jbe@4:   RETURNS float8
jbe@4:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_ecircle_distance';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION ecircle_ecluster_distance_proc(ecircle, ecluster)
jbe@4:   RETURNS float8
jbe@4:   LANGUAGE C IMMUTABLE STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_ecircle_ecluster_distance';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION pgl_gist_consistent(internal, internal, smallint, oid, internal)
jbe@0:   RETURNS boolean
jbe@0:   LANGUAGE C STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_gist_consistent';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION pgl_gist_union(internal, internal)
jbe@0:   RETURNS internal
jbe@0:   LANGUAGE C STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_gist_union';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION pgl_gist_compress_epoint(internal)
jbe@0:   RETURNS internal
jbe@0:   LANGUAGE C STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_gist_compress_epoint';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION pgl_gist_compress_ecircle(internal)
jbe@0:   RETURNS internal
jbe@0:   LANGUAGE C STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_gist_compress_ecircle';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION pgl_gist_compress_ecluster(internal)
jbe@4:   RETURNS internal
jbe@4:   LANGUAGE C STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_gist_compress_ecluster';
jbe@4: 
jbe@4: CREATE OR REPLACE FUNCTION pgl_gist_decompress(internal)
jbe@0:   RETURNS internal
jbe@0:   LANGUAGE C STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_gist_decompress';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION pgl_gist_penalty(internal, internal, internal)
jbe@4:   RETURNS internal
jbe@4:   LANGUAGE C STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_gist_penalty';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION pgl_gist_picksplit(internal, internal)
jbe@4:   RETURNS internal
jbe@4:   LANGUAGE C STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_gist_picksplit';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION pgl_gist_same(internal, internal, internal)
jbe@4:   RETURNS internal
jbe@4:   LANGUAGE C STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_gist_same';
jbe@0: 
jbe@4: CREATE OR REPLACE FUNCTION pgl_gist_distance(internal, internal, smallint, oid)
jbe@4:   RETURNS internal
jbe@4:   LANGUAGE C STRICT
jbe@4:   AS '$libdir/latlon-v0002', 'pgl_gist_distance';
jbe@4: 




