[MapProxy] Error on some zoom levels

Rahkonen Jukka jukka.rahkonen at mmmtike.fi
Fri Feb 8 00:57:57 PST 2013


Hi,

It is impossible to say anything sure about the speed in your environment.  There is two programs in a chain: Mapserver and Mapproxy.  Mapserver has always some base ballast when Mapserver handles a request and therefore at least in our environment the total throughput of data with 256x256 sized requests is less than with 1024x1024 requests.  On the other hand, throughput with 4000x4000 sized requests goes down again.  I suppose that there is in a similar way also some optimal image size for Mapproxy when it is splitting the WMS images into tiles and it may depend on the hardware.  I would recommend to make a controlled test with your own system.

-Jukka Rahkonen-

Максим Хитрин wrote:

With 4000x4000 limit it works well.
I wonder how it affect on speed of work.

2013/2/8 Rahkonen Jukka <jukka.rahkonen at mmmtike.fi<mailto:jukka.rahkonen at mmmtike.fi>>
Leave some marginal and set maxsize to 3000 or 4000.

-Jukka Rahkonen-

Lähettäjä: Максим Хитрин [mailto:hitrymax at gmail.com<mailto:hitrymax at gmail.com>]
Lähetetty: 8. helmikuuta 2013 9:54
Vastaanottaja: Rahkonen Jukka
Aihe: Re: [MapProxy] Error on some zoom levels

Hello,
I've rised the max size in the MapServer config up to 2072. But now MapProxy requests for 2073 height pixels.

Let's see if configuring MapProxy will help.

2013/2/8 Rahkonen Jukka <jukka.rahkonen at mmmtike.fi<mailto:jukka.rahkonen at mmmtike.fi>>
Hi,

Immediate reason is that Mapserver by default does not deliver bigger images than 2048 pixels.  The limit can be set higher on the server side with the MAP level setting MAXSIZE http://mapserver.org/mapfile/map.html

You can see from the log that MapProxy is asking for a 2072x1184 sized image.  If you cannot control Mapserver WMS then MapProxy should be configured to build smaller requests.  Perhaps it is done in Globals-cache-meta_size and meta_buffer http://mapproxy.org/docs/1.5.0/labeling.html#mapproxy-options

-Jukka Rahkonen-


?????? ?????? wrote:

I've run development server and there is such error:

[2013-02-08 17:14:04,877] mapproxy.source.request - INFO - GET http://85.143.48.160:1024/cgi-bin/mapserv.exe?map=C:/Map%20Files/test3857/test3857.map&styles=&format=image%2Fpng&height=2072&bbox=6832719.04785,7387742.86427,6837589.38965,7396267.00815&transparent=True&layers=QGIS-MAP&crs=EPSG%3A3857&service=WMS&width=1184&request=GetMap&version=1.3.0 200 - 106
[2013-02-08 17:14:04,880] mapproxy.source.wms - WARNING - expected image response, got: <?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
<ServiceExceptionReport version="1.3.0" xmlns="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/ogc http://schemas.opengis.net/wms/1.3.0/exceptions_1_3_0.xsd">
<ServiceException>
msWMSLoadGetMapParams(): WMS server error. Image size out of range, WIDTH and HEIGHT must be between 1 and 2048 pixels.
msOutputFormatValidate(): General error message. OUTPUTFORMAT png has IMAGEMODE RGB/RGBA, which is not supported for GD drivers.
</ServiceException>
</ServiceExceptionReport>
Is it a mapproxy side problem?

2013/2/7 Denis Rykov <rykovd at gmail.com<mailto:rykovd at gmail.com>>
If you are using default MapProxy development server you can see HTTP requests which your client sends to WMS server in terminal.

On Thu, Feb 7, 2013 at 3:23 PM, Denis Rykov <rykovd at gmail.com<mailto:rykovd at gmail.com>> wrote:
Hi Maxim!

Could you share output of the following command:

    tail /var/log/apache2/error.log

It could give any clues about your issue.
On Thu, Feb 7, 2013 at 2:33 PM, Максим Хитрин <hitrymax at gmail.com<mailto:hitrymax at gmail.com>> wrote:
Dear Sir or Madam,

I've got a problem when I'm trying to zoom in MapProxy.
It works well for about 2 or 3 zoom levels but then I got an error "Could not get any sources: no image returned from source WMS"
I'm trying to get data from a MapServer that is localed on another machine. There is no limit for max/min scale in its capabilities.

Here is my configuration:
sources:
  test3857:
    type: wms
    wms_opts:
      version: 1.3.0
    req:
      url: http://85.143.48.160:1024/cgi-bin/mapserv.exe?map=C:/Map%20Files/test3857/test3857.map
      layers: QGIS-MAP
      transparent: true
    supported_srs: ['EPSG:3857']
    coverage:
      bbox: [6807775, 7373595, 6875170, 7422370]
      bbox_srs: 'EPSG:3857'

grids:
  test3857_grid:
    base: GLOBAL_GEODETIC
    bbox: [6807775, 7373595, 6875170, 7422370]
    bbox_srs: 'EPSG:3857'

caches:
  test3857_cache:
    sources: [test3857]
    grids: [test3857_grid]

layers:
  - name: test3857
    title: test3857
    sources: [test3857_cache]

Why am I getting this error?
Thank you for your prompt help.
--

Yours faithfully,

Maxim Khitrin

_______________________________________________
MapProxy mailing list
MapProxy at lists.osgeo.org<mailto:MapProxy at lists.osgeo.org>
http://lists.osgeo.org/mailman/listinfo/mapproxy





--
С уважением,
Хитрин Максим




--
С уважением,
Хитрин Максим




--
С уважением,
Хитрин Максим

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20130208/fe9a2910/attachment-0001.html>


More information about the MapProxy mailing list