[MapProxy] publish ArcGIS Server cache as TMS and WMS

Duarte Carreira DCarreira at edia.pt
Mon Mar 7 12:42:09 EST 2011


Ok, I removed format, and the global_geodetic_sqrt2 grid. I have no warnings anymore.

I tried adding to QGIS directly, but keep banging my head against the wall...

If I add to QGIS like this (as a WMS-C):
http://192.168.2.47:8080/service?tiled=true

I get the question Do you want to use this URL, since the capsdoc advertises the GetMap as "http://192.168.2.47:8080/service", which is shorter from the one above. I tried Yes and No. Only "No" keeps sending requests. Yes stops everything (the layer is still added but is ignored by QGIS and no requests are made).

Doing a zoom, I see the following requests in the mapproxy console window:
192.168.8.116 - - [07/Mar/2011:17:33:59 +0100] "GET /service?tiled=true&SERVICE=
WMS&VERSION=1.1.1&REQUEST=GetMap&BBOX=-1580920.011005,4058656.715202,888265.4017
21,5368073.221951&SRS=OSGEO:41001&WIDTH=924&HEIGHT=490&LAYERS=agslayer&STYLES=&F
ORMAT=image/png&DPI=120&TRANSPARENT=true HTTP/1.1" 200 309 "-" "Mozilla/5.0"

As you can see, the request is for the whole map window, and not for tiles... (I'm using QGIS dev/trunk r15264M.)
I also think QGIS does not support TMS unless through gdal.

Thanks again,
Duarte

-----Mensagem original-----
De: Oliver Tonnhofer [mailto:tonnhofer at omniscale.de]
Enviada: segunda-feira, 7 de Março de 2011 17:38
Para: Duarte Carreira
Cc: mapproxy at lists.osgeo.org
Assunto: Re: [MapProxy] publish ArcGIS Server cache as TMS and WMS


On 07.03.2011, at 17:29, Duarte Carreira wrote:
> I have now been able to avoid the error. I only get a warning:
> 2011-03-07 16:27:43,187 - WARNING - 2644:mapproxy.config.loader:__init__ - unexp
> ected key format

Tile sources don't take a format option. The format of the cache is used.

> Also, I can only get to see the tiles with QGIS by using a GDAL WMS xml file, but tiles are not in the right place, or rather I get the wrong tiles, producing a garbled map (tiles are not in the correct sequence).

Your configuration looks good and the images look right in the demo client (http://localhost:8080/demo), so I guess your GDAL xml file is not correct. But of course, MapProxy works in QGIS without any GDAL hacks. Maybe it doesn't support EPSG:900913? Try to add EPSG:4326 to the srs in the wms services section of your mapproxy.yaml. And you should drop global_geodetic_sqrt2 from your cache, since this is not supported by your source.

Regards,
Oliver

--
Oliver Tonnhofer    | Omniscale GmbH & Co KG    | http://omniscale.de
http://mapproxy.org | https://bitbucket.org/olt




More information about the MapProxy mailing list