Re: [mapserver-users] Mapcache support for multiple format types
Tom, The client supplied format is mostly ignored by mapcache, so you should not have issues with your existing services. The only case where it is not ignored (and is irrelevant with the current issue of multiple formats per tileset) is if you have set inside your wms service definition, *and* the current request could not be processed by directly returning a cached tile (i.e. assembling tiles was requested) -- thomas On Wed, Nov 23, 2016 at 9:41 AM tellettwrote: > I can't really think of a compelling usecase Thomas to be honest, for us it > was more an ease of use issue given our existing services :) However, I > hadn't been aware of the mixed format possibilities with mapcache (should > of > read all documentation of course instead of just the oncfiguration file > page!!), that will probably solve our issues nicely meaning we can store 1 > tileset and reduce network bandwidth issues whilst still retaining the > important transparency. Thanks for the help! > > Tom > > > > -- > View this message in context: > http://osgeo-org.1560.x6.nabble.com/Mapcache-support-for-multiple-format-types-tp5296486p5297064.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapcache support for multiple format types
I can't really think of a compelling usecase Thomas to be honest, for us it was more an ease of use issue given our existing services :) However, I hadn't been aware of the mixed format possibilities with mapcache (should of read all documentation of course instead of just the oncfiguration file page!!), that will probably solve our issues nicely meaning we can store 1 tileset and reduce network bandwidth issues whilst still retaining the important transparency. Thanks for the help! Tom -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapcache-support-for-multiple-format-types-tp5296486p5297064.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapcache support for multiple format types
A compelling situation could be a layer that has uses cases where you want it have transparency or not, making it an “overlay” or “base layer” respectively. Though, if you’re serving it as 24+1bit PNG with transparency, you’re gonna lose quality in JPEG, so you would probably want to return a 24bit PNG. And at that point, you would have to have separate layers because the mime type is the same. As an aside, a member of our team did work on a JPNG approach where tiles that require transparency are PNG and those that do not are JPEG. The devil is in the details of quality mapping with that though. Matt . Matthew Cechini Contractor, Science Systems and Applications, Inc. NASA GIBS Systems/Software Engineer 410.205.6272 From: mapserver-users <mapserver-users-boun...@lists.osgeo.org<mailto:mapserver-users-boun...@lists.osgeo.org>> on behalf of thomas bonfort <thomas.bonf...@gmail.com<mailto:thomas.bonf...@gmail.com>> Date: Tuesday, November 22, 2016 at 1:28 PM To: tellett <thomas.ell...@statkart.no<mailto:thomas.ell...@statkart.no>>, "mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>" <mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>> Subject: Re: [mapserver-users] Mapcache support for multiple format types Hi Tom, My question wasn't clear, or you did not answer my question ;-) I was looking for a compelling *use-case* where the solution requires a tile server to support both jpeg and png for a given tileset. My stance for mapcache is that the data producer (i.e. you as the mapcache administrator) knows his data and therefore which format (*singular*) is best suited for a given tileset. I'd be happy to revisit my judgment if presented with a scenario where more than one format per tileset is actually needed. Cheers, Thomas On Tue, Nov 22, 2016 at 12:19 PM tellett <thomas.ell...@statkart.no<mailto:thomas.ell...@statkart.no>> wrote: Hi Thomas, Really, its just so that we don't need to have 2 separate layers in the service for each format type. The norwegian mapping authority has about 25 cache 'services' and so its a bit messy in the config and WMTS capabilities file if we have to have 50 tilesets instead of 25. Its no problem technically having 2 tilesets called 'topo2_png' and 'topo2_jpeg' for example (they would have the same title and abstract), it just would have been preferable for us to have 1 layer support multiple formats so that the client could call the same service/layer/tileset and choose the format type through the kvp parameter. Not a show-stopper for us, we just have to change our way of thinking :) Tom -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapcache-support-for-multiple-format-types-tp5296486p5296917.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org> http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapcache support for multiple format types
Hi Tom, My question wasn't clear, or you did not answer my question ;-) I was looking for a compelling *use-case* where the solution requires a tile server to support both jpeg and png for a given tileset. My stance for mapcache is that the data producer (i.e. you as the mapcache administrator) knows his data and therefore which format (*singular*) is best suited for a given tileset. I'd be happy to revisit my judgment if presented with a scenario where more than one format per tileset is actually needed. Cheers, Thomas On Tue, Nov 22, 2016 at 12:19 PM tellettwrote: Hi Thomas, Really, its just so that we don't need to have 2 separate layers in the service for each format type. The norwegian mapping authority has about 25 cache 'services' and so its a bit messy in the config and WMTS capabilities file if we have to have 50 tilesets instead of 25. Its no problem technically having 2 tilesets called 'topo2_png' and 'topo2_jpeg' for example (they would have the same title and abstract), it just would have been preferable for us to have 1 layer support multiple formats so that the client could call the same service/layer/tileset and choose the format type through the kvp parameter. Not a show-stopper for us, we just have to change our way of thinking :) Tom -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapcache-support-for-multiple-format-types-tp5296486p5296917.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapcache support for multiple format types
Hi Thomas, Really, its just so that we don't need to have 2 separate layers in the service for each format type. The norwegian mapping authority has about 25 cache 'services' and so its a bit messy in the config and WMTS capabilities file if we have to have 50 tilesets instead of 25. Its no problem technically having 2 tilesets called 'topo2_png' and 'topo2_jpeg' for example (they would have the same title and abstract), it just would have been preferable for us to have 1 layer support multiple formats so that the client could call the same service/layer/tileset and choose the format type through the kvp parameter. Not a show-stopper for us, we just have to change our way of thinking :) Tom -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapcache-support-for-multiple-format-types-tp5296486p5296917.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapcache support for multiple format types
There is no support for multiple formats per tileset (yet?), as I could not imagine a compelling use-case that would warrant it. Would you care to explain why this would be needed? -- thomas On Fri, Nov 18, 2016 at 3:41 PM tellettwrote: > Hi all, > > I'm wondering if theres any other way in mapcache to support multiple > formats (png and jpeg for example) than to create a new tileset? > > For example if I have a wms 'source' called topo2_wms (that supports png > and > jpeg), and a tileset called topo2cache, whats the best ways to create tiles > in both png and jpeg? Is it really necessary to create 2 tilesets, 1 called > topo2cache_png and one topo2cache_jpeg? > > > > -- > View this message in context: > http://osgeo-org.1560.x6.nabble.com/Mapcache-support-for-multiple-format-types-tp5296486.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Mapcache support for multiple format types
Hi all, I'm wondering if theres any other way in mapcache to support multiple formats (png and jpeg for example) than to create a new tileset? For example if I have a wms 'source' called topo2_wms (that supports png and jpeg), and a tileset called topo2cache, whats the best ways to create tiles in both png and jpeg? Is it really necessary to create 2 tilesets, 1 called topo2cache_png and one topo2cache_jpeg? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapcache-support-for-multiple-format-types-tp5296486.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users