fix dynamic tile arguments and implement in both layers

This commit is contained in:
Paul Bienkowski 2022-05-02 21:14:32 +02:00 committed by gluap
parent 0b3dde4172
commit 88af9a28fd
No known key found for this signature in database

View file

@ -48,7 +48,7 @@ DROP FUNCTION IF EXISTS {fname}(integer, integer, integer{extra_args_types});
CREATE FUNCTION {fname}(zoom integer, x integer, y integer{extra_args_definitions})
RETURNS {'TABLE(mvt bytea, key text)' if self.key_column else 'bytea'} AS $$
{self.generate_sql()};
$$ LANGUAGE SQL STABLE RETURNS NULL ON NULL INPUT;"""
$$ LANGUAGE SQL STABLE CALLED ON NULL INPUT;"""
EXTRA_ARGS = [
# name, type, default