[MapProxy] 16bit integer tiff

Noriyuki Kushida nkushi at gmail.com
Mon Sep 3 08:58:37 PDT 2018


Dear All,

Finally I find a way to circumvent this problem.
I have just written my experience in my blog:
https://nk-wien.blogspot.com/2018/09/cache-elevation-data-of-world-wind-java.html

https://nk-wien.blogspot.com/2018/09/minicondapython27-modwsgi-on-centos6.html


I am happy if this is helpful for someone.

Best regards,
Noriyuki Kushida

On Sun, 26 Aug 2018 at 16:51, Noriyuki Kushida <nkushi at gmail.com> wrote:

> Dear all,
>
> If you can help me, please give me advise.
> I am trying to cache 16 bit integer tiff image, which is provided at
>
> https://worldwind26.arc.nasa.gov/elev?EXCEPTIONS=application/vnd.ogc.se_exml&REQUEST=GetCapabilities&SERVICE=WMS
>
> However, it seems that this tiff image cannot be handled by MapProxy
> (pillow) because I got the following error:
>   File "/usr/lib64/python2.6/site-packages/PIL/Image.py", line 1028, in
> crop
>     self.load()
>   File "/usr/lib64/python2.6/site-packages/PIL/TiffImagePlugin.py", line
> 1018, in load
>     return super(TiffImageFile, self).load()
>   File "/usr/lib64/python2.6/site-packages/PIL/ImageFile.py", line 176, in
> load
>     self.load_prepare()
>   File "/usr/lib64/python2.6/site-packages/PIL/ImageFile.py", line 256, in
> load_prepare
>     self.im = Image.core.new(self.mode, self.size)
> ValueError: unrecognized mode
>
> My environment is:
> MapProxy==1.9.1
> Pillow==3.3.1
> Python 2.6 at Centos6 (there is a reason to stick to this version, but it is
> possible to upgrade)
>
> Thank you in advance.
>
> Best regards,
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20180903/f3ced2f4/attachment.html>


More information about the MapProxy mailing list