remove unused nearfeature types

Also move the remaining nearfeaturecentr type close to the
function that is using it.
This commit is contained in:
Sarah Hoffmann
2020-02-26 10:42:30 +01:00
parent 8a4c7f6e2b
commit bdaa39573f
2 changed files with 12 additions and 27 deletions

View File

@@ -1,3 +1,15 @@
DROP TYPE IF EXISTS nearfeaturecentr CASCADE;
CREATE TYPE nearfeaturecentr AS (
place_id BIGINT,
keywords int[],
rank_address smallint,
rank_search smallint,
distance float,
isguess boolean,
postcode TEXT,
centroid GEOMETRY
);
create or replace function getNearFeatures(in_partition INTEGER, feature GEOMETRY, maxrank INTEGER, isin_tokens INT[]) RETURNS setof nearfeaturecentr AS $$
DECLARE
r nearfeaturecentr%rowtype;