Function OBS_GetMCDOMVT must return jsonb
This commit is contained in:
parent
e2017d41cf
commit
23088efc91
@ -230,7 +230,7 @@ mastercard_category TEXT DEFAULT 'Total Retail',
|
|||||||
extent INTEGER DEFAULT 4096, buf INTEGER DEFAULT 256, clip_geom BOOLEAN DEFAULT True)
|
extent INTEGER DEFAULT 4096, buf INTEGER DEFAULT 256, clip_geom BOOLEAN DEFAULT True)
|
||||||
RETURNS TABLE (
|
RETURNS TABLE (
|
||||||
mvtgeom GEOMETRY,
|
mvtgeom GEOMETRY,
|
||||||
mvtdata JSON
|
mvtdata JSONB
|
||||||
)
|
)
|
||||||
AS $$
|
AS $$
|
||||||
DECLARE
|
DECLARE
|
||||||
@ -398,7 +398,7 @@ BEGIN
|
|||||||
RETURN QUERY EXECUTE format(
|
RETURN QUERY EXECUTE format(
|
||||||
$query$
|
$query$
|
||||||
SELECT mvtgeom,
|
SELECT mvtgeom,
|
||||||
(select row_to_json(_) from (select id, %13$s %3$s, area_ratio) as _) as mvtdata
|
(select row_to_json(_)::jsonb from (select id, %13$s %3$s, area_ratio) as _) as mvtdata
|
||||||
FROM (
|
FROM (
|
||||||
SELECT ST_AsMVTGeom(ST_Transform(the_geom, 3857), $1, $2, $3, $4) AS mvtgeom, %12$s as id, %10$s %11$s, area_ratio FROM (
|
SELECT ST_AsMVTGeom(ST_Transform(the_geom, 3857), $1, $2, $3, $4) AS mvtgeom, %12$s as id, %10$s %11$s, area_ratio FROM (
|
||||||
SELECT %1$s the_geom, %12$s, %2$s %3$s,
|
SELECT %1$s the_geom, %12$s, %2$s %3$s,
|
||||||
|
Loading…
Reference in New Issue
Block a user