[MapProxy] Decoding Error

Jeff Konnen jaykayone at gmail.com
Fri Jun 29 02:42:02 PDT 2012


This is weird, if I try to open the file in python, it seems to be ok:

import urllib2
import Image
from cStringIO import StringIO
im = Image.open(StringIO(urllib2.urlopen("
http://otile2.mqcdn.com/tiles/1.0.0/osm/9/264/174.png").read()))
print im.format, im.size, im.mode

but when using mapproxy I still get this message:

[2012-06-29 11:24:26,823] mapproxy.image.tile - WARNING - unable to load
tile <mapproxy.image.ImageSource object at 0x7fc9f0034ad0>, removing it
(reason was: decoding error when reading image file)

fyi, this is my source:
  osm_tms_mq:
    type: tile
    url: http://otile1.mqcdn.com/tiles/1.0.0/osm/%(tms_path)s.png
    grid: global_mercator_osm
    on_error:
        202:
          response: transparent
          cache: True

and my wms definition:
 wms:
    srs: ['EPSG:2169','EPSG:310024802']
    image_formats: ['image/jpeg','image/png']

my test-request:
http://mapproxy:8080/service?VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:2169&BBOX=-5492.29987506387,969.790037458326,168537.735685007,192859.236316351&WIDTH=877&HEIGHT=967&LAYERS=OSM_MQ&STYLES=&EXCEPTIONS=application/vnd.ogc.se_xml&FORMAT=image/png&BGCOLOR=0xFEFFFF&TRANSPARENT=TRUE

I've been using this WMS for a while now and it seems to be only that one
tile
Any idea?
Jeff


On Wed, Jun 27, 2012 at 11:56 AM, Jeff Konnen <jaykayone at gmail.com> wrote:

>
>
> On Wed, Jun 27, 2012 at 11:50 AM, Oliver Tonnhofer <olt at omniscale.de>wrote:
>
>>
>> On 27.06.2012, at 11:36, Jeff Konnen wrote:
>> > I've found this error in my logs: [2012-06-27 11:33:57,623]
>> mapproxy.image.tile - WARNING - unable to load tile
>> <mapproxy.image.ImageSource object at 0x7f52bc03e350>, removing it (reason
>> was: decoding error when reading image file)
>> >
>> > It's about this tile:
>> http://otile2.mqcdn.com/tiles/1.0.0/osm/9/264/174.png
>>
>> Are you sure that this is the right file? MapProxy removes the tile when
>> you see this warning and will re-request it from the source.
>>
>> > Does anyone have an idea about what this could be about?
>>
>> MapProxy/PIL could somehow not read the tile.
>>
>> BTW: The tile is a JPEG and not a PNG.
>>
>>
> That's correct, but the neighbouring tiles are all JPEGs called PNG too
> and PIL can read them, it's weird..
>
>
>> Regards,
>> Oliver
>>
>> --
>> Oliver Tonnhofer    | Omniscale GmbH & Co KG    | http://omniscale.de
>> http://mapproxy.org | https://bitbucket.org/olt | @oltonn
>>
>>
>>
>>
>>
>
>
> --
> Jeff Konnen
>
>


-- 
Jeff Konnen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20120629/0fec5da7/attachment.html>


More information about the MapProxy mailing list