[MapProxy] configuring tiled WMS source

Stephan Knauss osm at stephans-server.de
Wed Mar 9 03:39:00 EST 2011


On 09.03.2011 08:40, Oliver Tonnhofer wrote:
>>>> I try to get the Landsat layers. http://onearth.jpl.nasa.gov/tiled.html
> You also need to set the meta_buffer to 0. Sorry, forgot to mention that.
ok, that worked. Now it requests width=512 as specified.

>> http://wms.jpl.nasa.gov/wms.cgi?request=GetMap&layers=global_mosaic&srs=EPSG
>> :4326&width=512&height=512&bbox=-180,-166,76,90&format=image/jpeg&version=1.
>> 1.1&styles=visual
> Hmmm, the first looks like 256 deegrees/px. So the complete BBOX is -180,-166,332,90?! Can you try that as the grid bbox?
yes, this seams to be the resolution. On the top level are two tiles 
with theses bounds. and zooming in with always dividing the coordinates 
by two. The next level has only 128 degrees/px, resulting in 4x2 tiles.

Now it requests URLS like these, which are still not matching the 
required syntax, I guess.

grids:
   nasa:
      tile_size: [512, 512]
      srs: 'EPSG:4326'
      bbox: [-180,-166,332,90]
      bbox_srs: 'EPSG:4326'

127.0.0.1 - - [09/Mar/2011:09:18:14 +0200] "GET 
/service?FORMAT=image/jpeg&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&Layers=osm&Styles=&bbox=
-13.8279192,26.6405443,0.0000000,38.2722038&srs=EPSG:4326&width=500&height=500 
HTTP/1.1" 200 332 "-" "JOSM/1.5 (3934 en)"
2011-03-09 09:18:16,075 - INFO - 4224:mapproxy.client.http.http:_log - 
wms.jpl.nasa.gov - - [09/Mar/2011:09:18:16 ] "GET /wms.cgi?layers=glo
bal_mosaic&styles=visual&service=WMS&format=image%2Fjpeg&request=GetMap&height=512&width=512&version=1.1.1&bbox=-4.0,34.0,4.0,42.0&srs=EPSG%
3A4326 HTTP/1.1" 200 300 "-" ""
2011-03-09 09:18:16,078 - INFO - 4224:mapproxy.client.http.http:_log - 
wms.jpl.nasa.gov - - [09/Mar/2011:09:18:16 ] "GET /wms.cgi?layers=glo
bal_mosaic&styles=visual&service=WMS&format=image%2Fjpeg&request=GetMap&height=512&width=512&version=1.1.1&bbox=12.0,42.0,20.0,50.0&srs=EPSG
%3A4326 HTTP/1.1" 200 300 "-" ""
2011-03-09 09:18:16,078 - WARNING - 4224:mapproxy.client.wms:_check_resp 
- expected image response, got: <?xml version='1.0' encoding="UTF-8
" standalone="no" ?>
<!DOCTYPE ServiceExceptionReport SYSTEM 
"http://wms.jpl.nasa.gov/exception_1_1_1.dtd ">
<ServiceExceptionReport version="1.1.1">
<ServiceException>
This server no longer provides full WMS services!
</ServiceException>
</ServiceExceptionReport>


I have played around a bit.

This is not working
http://wms.jpl.nasa.gov/wms.cgi?request=GetMap&layers=global_mosaic&srs=EPSG:4326&width=512&height=512&format=image/jpeg&version=1.1.1&styles=visual&bbox=-180,-166,76,90

while this works:
http://wms.jpl.nasa.gov/wms.cgi?request=GetMap&layers=global_mosaic&srs=EPSG:4326&width=512&height=512&bbox=-180,-166,76,90&format=image/jpeg&version=1.1.1&styles=visual

so the order of the parameters in the URL is important.
If I insert the bbox of the failing query into the right position of the 
URL, it also works. So the grid is right, but the request string is not 
constructed right.

How can I specify the request string? All mapproxy would need to modify 
is the bbox parameter, the order of the remaining parameters should 
remain unchanged.

Stephan


More information about the MapProxy mailing list