On Wed, Jan 4, 2012 at 23:11, Enzmann, Alexander R. <xan...@mitre.org> wrote: > It appears that mapcache has exactly two supported storage formats, JPEG and > PNG. Is there any way to have it store something else (e.g., TIFF, BIL) > without adding explicit code like that in imageio_jpeg.c and imageio_png.c? Explicit code would have to be added. In the general case, the imageio functions take in an array of raw pixels (8bit unsigned rgba quadruplets) and return the encoded data ready to be written to disk. Conversely, they input an encoded stream of data and return an 8bit rgba array.
> > Any thoughts to having mapcache handle whatever formats GDAL supports, much > like mapserver itself? Can you help me think out of the box and give me a bit of context on what you are trying to achieve? Mapcache serves image tiles to be displayed on a browser, so any format other than png/jpg/gif is currently out of scope. That said, there would be no technical limitation in adding any other image format for specific use-cases, provided the image data remains 8bit rgba. If you are aiming for supporting non 8bit data, the task will become more involved as it will impact all the image manipulating operations coded into mapcache (metatile chopping into single tiles, and tile merging/assembling for full wms support). -- thomas > > > > Xander > > > _______________________________________________ > 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