[MapProxy] Decoding Error
jaykayone at gmail.com
Mon Jul 2 07:15:19 PDT 2012
Upgrading Mapproxy and PIL to 1.4.0 resp 1.1.7 did not help either :(
Some more information: After upgrading, the error message is a bit more
unable to load tile <mapproxy.image.ImageSource object at 0x7fac30036750>,
removing it (reason was: broken data stream when reading image file)
I still have no idea how to fix this, as I can't reproduce the error when I
try to access the same file with PIL from command-line.
Here is my test yaml:
# needs no arguments
# metadata used in capabilities documents
title: MapProxy WMS Proxy
abstract: This is the fantastic MapProxy.
person: Your Name Here
position: Technical Director
address: Fakestreet 123
email: info at omniscale.de
This service is intended for private and evaluation use only.
The data is licensed as Creative Commons Attribution-Share Alike 2.0
- name: OSM_MQ
# # coordinate transformation options
# # WMS 1.3.0 requires all coordiates in the correct axis order,
# # i.e. lon/lat or lat/lon. Use the following settings to
# # explicitly set a CRS to either North/East or East/North
# # ordering.
# axis_order_ne: ['EPSG:9999', 'EPSG:9998']
# axis_order_en: ['EPSG:0000', 'EPSG:0001']
# # you can set the proj4 data dir here, if you need custom
# # epsg definitions. the path must contain a file named 'epsg'
# # the format of the file is:
# # <4326> +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs <>
# image/transformation options
# resampling_method: bilinear
# jpeg_quality: 90
# # stretch cached images by this factor before
# # using the next level
# stretch_factor: 1.15
# # shrink cached images up to this factor before
# # returning an empty image (for the first level)
# max_shrink_factor: 4.0
and the test request:
Thanks in advance
On Fri, Jun 29, 2012 at 11:42 AM, Jeff Konnen <jaykayone at gmail.com> wrote:
> 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("
> 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:
> type: tile
> url: http://otile1.mqcdn.com/tiles/1.0.0/osm/%(tms_path)s.png
> grid: global_mercator_osm
> response: transparent
> cache: True
> and my wms definition:
> srs: ['EPSG:2169','EPSG:310024802']
> image_formats: ['image/jpeg','image/png']
> my test-request:
> I've been using this WMS for a while now and it seems to be only that one
> Any idea?
> 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:
>>> 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..
>>> 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...
More information about the MapProxy