This is an automated email from the ASF dual-hosted git repository.

bchapuis pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-baremaps.git


The following commit(s) were added to refs/heads/main by this push:
     new 8dce39f7 Fix query in extrusion example (#885)
8dce39f7 is described below

commit 8dce39f7d87bdc932c832df5418cc2fdcd1add7f
Author: yagagagaga <[email protected]>
AuthorDate: Wed Jul 3 17:40:05 2024 +0800

    Fix query in extrusion example (#885)
    
    ERROR: column t.tags does not exist
---
 examples/extrusion/tileset.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/extrusion/tileset.json b/examples/extrusion/tileset.json
index cef4a9b3..5af76cec 100644
--- a/examples/extrusion/tileset.json
+++ b/examples/extrusion/tileset.json
@@ -24,7 +24,7 @@
         {
           "minzoom": 12,
           "maxzoom": 20,
-          "sql": "SELECT id, tags || jsonb_build_object('building:height', 
(CASE WHEN tags ->> 'building:levels' ~ '^[0-9\\\\.]+$' THEN tags ->> 
'building:levels' ELSE '1' END)::real * 3), geom FROM osm_ways WHERE tags ? 
'building'"
+          "sql": "SELECT id, tags || jsonb_build_object('building:height', 
(CASE WHEN tags ->> 'building:levels' ~ '^[0-9\\\\.]+$' THEN tags ->> 
'building:levels' ELSE '1' END)::real * 3) as tags, geom FROM osm_ways WHERE 
tags ? 'building'"
         }
       ]
     }

Reply via email to