Skip to content

Commit

Permalink
Remove id from tags to prevent clashes
Browse files Browse the repository at this point in the history
  • Loading branch information
bchapuis committed Dec 2, 2023
1 parent 4be9294 commit 9941fd3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ protected static Query prepareQuery(Tileset tileset, int zoom) {
.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);
Expand Down

0 comments on commit 9941fd3

Please sign in to comment.