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

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


The following commit(s) were added to refs/heads/fix-stream-exceptions by this 
push:
     new b4e5e07a Remove id from tags to prevent clashes
b4e5e07a is described below

commit b4e5e07a2437613198486e399bbf2638d8189616
Author: Bertil Chapuis <[email protected]>
AuthorDate: Sat Dec 2 18:46:09 2023 +0100

    Remove id from tags to prevent clashes
---
 .../java/org/apache/baremaps/tilestore/postgres/PostgresTileStore.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/baremaps-core/src/main/java/org/apache/baremaps/tilestore/postgres/PostgresTileStore.java
 
b/baremaps-core/src/main/java/org/apache/baremaps/tilestore/postgres/PostgresTileStore.java
index 60cceffd..eb28b5cc 100644
--- 
a/baremaps-core/src/main/java/org/apache/baremaps/tilestore/postgres/PostgresTileStore.java
+++ 
b/baremaps-core/src/main/java/org/apache/baremaps/tilestore/postgres/PostgresTileStore.java
@@ -163,7 +163,7 @@ public class PostgresTileStore implements TileStore {
               .replace("?", "??")
               .replace("$zoom", String.valueOf(zoom));
           var querySqlWithParams = String.format(
-              "SELECT ST_AsMVTGeom(t.geom, ST_TileEnvelope(?, ?, ?)) AS geom, 
t.tags, t.id " +
+              "SELECT ST_AsMVTGeom(t.geom, ST_TileEnvelope(?, ?, ?)) AS geom, 
t.tags - 'id' AS tags, t.id AS id" +
                   "FROM (%s) AS t WHERE t.geom IS NOT NULL AND t.geom && 
ST_TileEnvelope(?, ?, ?, margin => (64.0/4096))",
               querySql);
           layerSql.append(querySqlWithParams);

Reply via email to