bchapuis commented on issue #573:
URL: 
https://github.com/apache/incubator-baremaps/issues/573#issuecomment-1407692299

   Thanks, I think I found the origin of the bug. The tileset.json file used in 
the openstreetmap exemple only describes layers for low zoom levels (12 to 20). 
Therefore, when zooming out the `PostgresTileStore` tries to generate a query 
with an empty list of layers.
   
   
https://github.com/apache/incubator-baremaps/blob/48b1ce7a85a1701c37433a3bbac5044244261788/baremaps-core/src/main/java/org/apache/baremaps/database/tile/PostgresTileStore.java#L132
   
   As a result, the generated query that only contains `WITH `, which throws 
the `ERROR: syntax error at end of input` exception when hitting the database.
   
   Help is always welcome. It can take many forms: reporting bugs and issues, 
fixing bugs as this one (let me know if you want to take care of it), adding 
new features, improving the documentation, describing your needs and use cases, 
etc. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to