-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generated tileset.json doesn't include queries
key for each layer
#766
Comments
It looks like the production concern was already addressed prior to this change, so bringing back the queries and database information in some format in dev would be really helpful. |
In your use case, do I understand correctly that you built around getting the SQL queries out of baremaps server by requesting the Going forward I see two possible paths for baremaps to provide an API with the SQL queries per layer:
|
Yes @Perdjesk, your understanding is exactly right. I built my own tile exporter that performs much faster than the baremaps exporter (we plan to open source it in the near future). It relies on getting the SQL queries for the tileset out of the baremaps tiles.json. Either option would be completely fine for our use case. |
@polastre I'm looking forward to learn more about this. Our exporter has been left a bit aside to focus on the basemap and it would be great if we can integrate your optimizations at some point. |
Thanks, #772 will help out a lot. We really need this, and I think the dev-mode-only is a reasonable compromise. |
Note that our exporter is not built in Java, so I'm not sure if it will be compatible with this Apache project. I'll post a link to it once we open source it. |
That would be awesome, as long as the license is compatible with Apache (MIT, BSD, ASL, etc.), we can probably port and integrate the optimization to Java. |
@bchapuis here is the |
This is awesome! The sql unioning looks really straight forward. The original PostgresTileStore was devised to make use of CTEs. I guess that with recent versions of postgis, this kind of optimization is not necessary anymore. I will try to update our code accordingly and see if we can implement a similar batching strategy. Thanks a lot for sharing. |
In
v0.7.2-rc1
, the generated tileset.json doesn't include thequeries
key anymore in thevector_tiles
section.We were using this key for post-processing activities. This is a serious problem for us.
Looks like #658 removed this data from the generated
tileset.json
file.I can see how this might be a security vulnerability if that is exposed in production, however it is really useful for intermediate processing in development.
Can we bring it back, please? cc @bchapuis @Perdjesk
The text was updated successfully, but these errors were encountered: