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

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


The following commit(s) were added to refs/heads/stream-exception by this push:
     new 134eb2f5 Add support for PMTiles (#794)
134eb2f5 is described below

commit 134eb2f5058782325d016f11dde5e3547b395c0d
Author: Bertil Chapuis <[email protected]>
AuthorDate: Sun Nov 26 13:51:28 2023 +0100

    Add support for PMTiles (#794)
    
    Enable the export of vector tiles in the PMTiles format. Most of the 
necessary functions have been ported from 
[go-pmtiles](https://github.com/protomaps/go-pmtiles) to Java.
---
 .../org/apache/baremaps/tilestore/postgres/PostgresTileStore.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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 3244765d..cc436116 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
@@ -175,7 +175,7 @@ public class PostgresTileStore implements TileStore {
       }
 
       // Add the tail of the layer sql
-      var layerQueryTail = ") AS mvtgeom)";
+      var layerQueryTail = ") AS mvtGeom)";
       layerSql.append(layerQueryTail);
 
       // Only include the layer sql if queries were included for this layer
@@ -195,7 +195,7 @@ public class PostgresTileStore implements TileStore {
     }
 
     // Add the tail of the tile sql
-    var tileQueryTail = " mvttile";
+    var tileQueryTail = " AS mvtTile";
     tileSql.append(tileQueryTail);
 
     // Format the sql query

Reply via email to