-
-
Notifications
You must be signed in to change notification settings - Fork 364
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
Added support for the use of tile_map_edge_buffer when using WMS with… #5199
Conversation
… tiled=true vendor specific parameter (WMS-C)
| map->height += 2 * map_edge_buffer; | ||
|
|
||
| /* | ||
| ** Ensure the labelcache buffer is greater than the buffer. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure about this one, and I haven't tested it myself as I'm not using any labels in this setup.
But it's copied from maptile.c so It shouldn't be too wrong.
|
This is an interesting option that needs a bit more investigation:
|
|
Not sure where this one sits. @tbonfort references some refactoring should be done but I don't see that has been done. |
|
Refactoring has not been done. At the time it was beyond my Git-fu an C-fu to do the requested refactoring. Probably still is :-(. My assignment where this work took place has ended. If I were convinced that I could do the requested refactoring I would do so anyhow. As the reasoning behind this patch, in my opinion, is still very valid it would be nice if someone more knowledgeable than me could adopt this. For such a person these two issues:
probably are not that difficult to address. |
|
@deduikertjes would you mind rebasing this against master (instead of branch-7-0) ? |
… tiled=true vendor specific parameter (WMS-C) This is a rebase of MapServer#5199 on top of latest main, with the addition of a test. Comments of MapServer#5199 (comment) have been only adressed by adding appropriate TODOs in the code. Co-authored-by: deduikertjes <deduikertjes@xs4all.nl>
|
Superseded per #6233 |
… tiled=true vendor specific parameter (WMS-C)
The reasoning behind this:
I really prefer to use tiled request in combination with WMS above using the cgi tiled mode with the mode= parameter. I then can use all the nice WMS-goodies as user styling, getlegend, wms-dimensions, etc.
In an OpenLayers client I can set a gutter to prevent tiling artifacts, but that doesn't help if a user prefers a different client (like QGIS). Even OpenLayers recommends to remove tiling artifacts server side.
Besides that, mapserver is great as a back end to any cached tiling service. But all of these require an extra config to maintaing and extra software in the stack.
Nginx has a very nice LRU-cache which can be combined with operating mapserver in WMS-C mode by aligning the GetMap requests along a grid. By combining mapserver with nginx caching we have an auto configuring cached tiling service.
When operating mapserver in such a way it becomes important to add a buffer (just as in cgi tiling mode) to prevent tiling artifacts.
Comments on my code:
Future development: